src/Pure/Isar/expression.ML
changeset 30781 7fb900cad123
parent 30725 c23a5b3cd1b9
child 30783 275577cefaa8
equal deleted inserted replaced
30780:c3f1e8a9e0b5 30781:7fb900cad123
   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) #>