src/HOL/Real/RealInt.ML
changeset 13849 2584233cf3ef
parent 12613 279facb4253a
equal deleted inserted replaced
13848:12ffc04fee22 13849:2584233cf3ef
    93                                          real_of_int_Suc,real_of_nat_Suc])));
    93                                          real_of_int_Suc,real_of_nat_Suc])));
    94 by (Simp_tac 1);
    94 by (Simp_tac 1);
    95 qed "real_of_int_real_of_nat";
    95 qed "real_of_int_real_of_nat";
    96 
    96 
    97 Goal "~neg z ==> real (nat z) = real z";
    97 Goal "~neg z ==> real (nat z) = real z";
    98 by (asm_simp_tac (simpset() addsimps [not_neg_nat,
    98 by (asm_full_simp_tac (simpset() addsimps [not_neg_eq_ge_0, real_of_int_real_of_nat RS sym]) 1);
    99 				      real_of_int_real_of_nat RS sym]) 1);
       
   100 qed "real_of_nat_real_of_int";
    99 qed "real_of_nat_real_of_int";
   101 
   100 
   102 Goal "(real x = 0) = (x = int 0)";
   101 Goal "(real x = 0) = (x = int 0)";
   103 by (auto_tac (claset() addIs [inj_real_of_int RS injD],
   102 by (auto_tac (claset() addIs [inj_real_of_int RS injD],
   104 	      HOL_ss addsimps [real_of_int_zero]));
   103 	      HOL_ss addsimps [real_of_int_zero]));