src/HOL/Integ/Bin.ML
changeset 9945 a0efbd7c88dc
parent 9633 a71a83253997
child 9969 4753185f1dd2
equal deleted inserted replaced
9944:2a705d1af4dc 9945:a0efbd7c88dc
   327 
   327 
   328 Goal "(#0 = int k) = (k=0)";
   328 Goal "(#0 = int k) = (k=0)";
   329 by Auto_tac;
   329 by Auto_tac;
   330 qed "int_eq_0_conv'";
   330 qed "int_eq_0_conv'";
   331 
   331 
   332 Addsimps [int_less_0_conv, int_le_0_conv, int_eq_0_conv, int_eq_0_conv'];
   332 Goal "(#0 < int k) = (0<k)";
       
   333 by (Simp_tac 1);
       
   334 qed "zero_less_int_conv";
       
   335 
       
   336 Addsimps [int_less_0_conv, int_le_0_conv, int_eq_0_conv, int_eq_0_conv',
       
   337           zero_less_int_conv];
       
   338 
       
   339 Goal "(0 < nat z) = (#0 < z)";
       
   340 by (cut_inst_tac [("w","#0")] zless_nat_conj 1);
       
   341 by Auto_tac;  
       
   342 qed "zero_less_nat_eq";
       
   343 Addsimps [zero_less_nat_eq];
   333 
   344 
   334 
   345 
   335 (** Simplification rules for comparison of binary numbers (Norbert Voelker) **)
   346 (** Simplification rules for comparison of binary numbers (Norbert Voelker) **)
   336 
   347 
   337 (** Equals (=) **)
   348 (** Equals (=) **)