src/HOL/Tools/Quotient/quotient_def.ML
changeset 59157 949829bae42a
parent 57960 ee1ba4848896
child 59580 cbc38731d42f
equal deleted inserted replaced
59156:f09df2ac5d46 59157:949829bae42a
    79     val lthy'' = lthy'
    79     val lthy'' = lthy'
    80       |> Local_Theory.declaration {syntax = false, pervasive = true}
    80       |> Local_Theory.declaration {syntax = false, pervasive = true}
    81         (fn phi =>
    81         (fn phi =>
    82           (case Quotient_Info.transform_quotconsts phi qconst_data of
    82           (case Quotient_Info.transform_quotconsts phi qconst_data of
    83             qcinfo as {qconst = Const (c, _), ...} =>
    83             qcinfo as {qconst = Const (c, _), ...} =>
    84               Quotient_Info.update_quotconsts c qcinfo
    84               Quotient_Info.update_quotconsts (c, qcinfo)
    85           | _ => I))
    85           | _ => I))
    86       |> (snd oo Local_Theory.note) 
    86       |> (snd oo Local_Theory.note) 
    87         ((rsp_thm_name, @{attributes [quot_respect]}), [rsp_thm])
    87         ((rsp_thm_name, @{attributes [quot_respect]}), [rsp_thm])
    88   in
    88   in
    89     (qconst_data, lthy'')
    89     (qconst_data, lthy'')