equal
deleted
inserted
replaced
90 let |
90 let |
91 val thm = Local_Defs.meta_rewrite_rule (ProofContext.init_global thy) raw_thm; |
91 val thm = Local_Defs.meta_rewrite_rule (ProofContext.init_global thy) raw_thm; |
92 val thm_sym = Thm.symmetric thm; |
92 val thm_sym = Thm.symmetric thm; |
93 in |
93 in |
94 thy |> map_pre_post (fn (pre, post) => |
94 thy |> map_pre_post (fn (pre, post) => |
95 (pre |> MetaSimplifier.add_simp thm, post |> MetaSimplifier.del_simp thm_sym)) |
95 (pre |> MetaSimplifier.add_simp thm, post |> MetaSimplifier.add_simp thm_sym)) |
96 end; |
96 end; |
97 |
97 |
98 fun add_functrans (name, f) = (map_data o apsnd) |
98 fun add_functrans (name, f) = (map_data o apsnd) |
99 (AList.update (op =) (name, (serial (), f))); |
99 (AList.update (op =) (name, (serial (), f))); |
100 |
100 |