equal
deleted
inserted
replaced
73 else |
73 else |
74 let val hyps' = filter (not o is_eq_thm) hyps |
74 let val hyps' = filter (not o is_eq_thm) hyps |
75 val goal = Logic.list_implies (map (#prop o Thm.rep_thm) hyps', |
75 val goal = Logic.list_implies (map (#prop o Thm.rep_thm) hyps', |
76 FOLogic.mk_Trueprop (mk_eq_iff (t, u))); |
76 FOLogic.mk_Trueprop (mk_eq_iff (t, u))); |
77 in Some (hyps' MRS Tactic.prove sg [] [] goal (K (EVERY tacs))) |
77 in Some (hyps' MRS Tactic.prove sg [] [] goal (K (EVERY tacs))) |
78 handle ERROR => |
78 handle ERROR_MESSAGE msg => |
79 (warning ("Cancellation failed: no typing information? (" ^ name ^ ")"); None) |
79 (warning (msg ^ "\nCancellation failed: no typing information? (" ^ name ^ ")"); None) |
80 end; |
80 end; |
81 |
81 |
82 fun prep_simproc (name, pats, proc) = Simplifier.mk_simproc name pats proc; |
82 fun prep_simproc (name, pats, proc) = Simplifier.mk_simproc name pats proc; |
83 fun prep_pat s = Thm.read_cterm (Theory.sign_of (the_context ())) |
83 fun prep_pat s = Thm.read_cterm (Theory.sign_of (the_context ())) |
84 (s, TypeInfer.anyT ["logic"]); |
84 (s, TypeInfer.anyT ["logic"]); |