better simplification of the result of simprocs
authorpaulson
Mon, 08 May 2000 16:58:44 +0200
changeset 8834 074503906abf
parent 8833 d6122f13b8a6
child 8835 56187238220d
better simplification of the result of simprocs
src/HOL/Integ/IntArith.ML
--- a/src/HOL/Integ/IntArith.ML	Mon May 08 16:58:18 2000 +0200
+++ b/src/HOL/Integ/IntArith.ML	Mon May 08 16:58:44 2000 +0200
@@ -77,7 +77,7 @@
 qed "le_add_iff2";
 
 (*To tidy up the result of a simproc.  Only the RHS will be simplified.*)
-Goal "u = u' ==> (t=u) = (t=u')";
+Goal "u = u' ==> (t==u) == (t==u')";
 by Auto_tac;
 qed "eq_cong2";
 
@@ -200,7 +200,7 @@
 
 fun simplify_meta_eq rules =
     mk_meta_eq o
-    simplify (HOL_basic_ss addcongs[eq_cong2] addsimps rules)
+    simplify (HOL_basic_ss addeqcongs[eq_cong2] addsimps rules)
 
 fun prep_simproc (name, pats, proc) = Simplifier.mk_simproc name pats proc;
 fun prep_pat s = Thm.read_cterm (Theory.sign_of Int.thy) (s, HOLogic.termT);