equal
deleted
inserted
replaced
831 thy |
831 thy |
832 |> fold (fn (name, morph) => |
832 |> fold (fn (name, morph) => |
833 Locale.activate_global_facts (name, morph $> export)) regs |
833 Locale.activate_global_facts (name, morph $> export)) regs |
834 | store_eqns_activate regs eqs thy = |
834 | store_eqns_activate regs eqs thy = |
835 let |
835 let |
836 val eqs' = eqs |> map (Morphism.thm (export' $> export) #> |
836 val eqs' = eqs |> map (Morphism.thm (export' $> export)); |
837 LocalDefs.meta_rewrite_rule (ProofContext.init thy) #> |
837 val morph_eqs = eqs' |> map (LocalDefs.meta_rewrite_rule (ProofContext.init thy) #> |
838 Drule.abs_def); |
838 Drule.abs_def); |
839 val eq_morph = Element.eq_morphism thy eqs'; |
839 val eq_morph = Element.eq_morphism thy morph_eqs; |
840 val eq_attns' = map ((apsnd o map) (Attrib.attribute_i thy)) eq_attns; |
840 val eq_attns' = map ((apsnd o map) (Attrib.attribute_i thy)) eq_attns; |
841 in |
841 in |
842 thy |
842 thy |
843 |> fold (fn (name, morph) => |
843 |> fold (fn (name, morph) => |
844 Locale.amend_registration eq_morph (name, morph) #> |
844 Locale.amend_registration eq_morph (name, morph) #> |