equal
deleted
inserted
replaced
849 |> note Thm.lemmaK facts |
849 |> note Thm.lemmaK facts |
850 |-> meta_rewrite; |
850 |-> meta_rewrite; |
851 val dep_morphs = map2 (fn (dep, morph) => fn wits => |
851 val dep_morphs = map2 (fn (dep, morph) => fn wits => |
852 (dep, morph $> Element.satisfy_morphism (map (Element.transform_witness export') wits))) deps witss; |
852 (dep, morph $> Element.satisfy_morphism (map (Element.transform_witness export') wits))) deps witss; |
853 fun activate' dep_morph ctxt = activate dep_morph |
853 fun activate' dep_morph ctxt = activate dep_morph |
854 (Option.map (rpair true) (Element.eq_morphism (Proof_Context.theory_of ctxt) eqns')) export ctxt; |
854 (Option.map (rpair true) (Element.eq_morphism (Proof_Context.theory_of ctxt) eqns')) export ctxt; |
855 in |
855 in |
856 ctxt' |
856 ctxt' |
857 |> fold activate' dep_morphs |
857 |> fold activate' dep_morphs |
858 end; |
858 end; |
859 |
859 |