fixed problem with linear arith.
authornipkow
Mon, 01 Jul 2002 12:50:35 +0200
changeset 13261 a0460a450cf9
parent 13260 ea36a40c004f
child 13262 bbfc360db011
fixed problem with linear arith.
src/HOL/Integ/nat_bin.ML
--- a/src/HOL/Integ/nat_bin.ML	Sat Jun 29 22:46:56 2002 +0200
+++ b/src/HOL/Integ/nat_bin.ML	Mon Jul 01 12:50:35 2002 +0200
@@ -44,15 +44,6 @@
 Addsimps [int_nat_number_of];
 
 
-val nat_bin_arith_setup =
- [Fast_Arith.map_data 
-   (fn {add_mono_thms, mult_mono_thms, inj_thms, lessD, simpset} =>
-     {add_mono_thms = add_mono_thms, mult_mono_thms = mult_mono_thms,
-      inj_thms = inj_thms,
-      lessD = lessD,
-      simpset = simpset addsimps [int_nat_number_of, not_neg_number_of_Pls,
-                                  neg_number_of_Min,neg_number_of_BIT]})];
-
 (** Successor **)
 
 Goal "(0::int) <= z ==> Suc (nat z) = nat (1 + z)";
@@ -75,6 +66,16 @@
 qed "Suc_nat_number_of";
 Addsimps [Suc_nat_number_of];
 
+val nat_bin_arith_setup =
+ [Fast_Arith.map_data 
+   (fn {add_mono_thms, mult_mono_thms, inj_thms, lessD, simpset} =>
+     {add_mono_thms = add_mono_thms, mult_mono_thms = mult_mono_thms,
+      inj_thms = inj_thms,
+      lessD = lessD,
+      simpset = simpset addsimps [Suc_nat_number_of, int_nat_number_of,
+                                  not_neg_number_of_Pls,
+                                  neg_number_of_Min,neg_number_of_BIT]})];
+
 (** Addition **)
 
 Goal "[| (0::int) <= z;  0 <= z' |] ==> nat (z+z') = nat z + nat z'";