merged
authorhuffman
Thu, 26 Feb 2009 06:39:06 -0800
changeset 30104 b094999e1d33
parent 30103 32effb2a8168 (diff)
parent 30100 e1c714d33c5c (current diff)
child 30105 37f47ea6fed1
child 30128 365ee7319b86
merged
--- a/src/HOL/Archimedean_Field.thy	Thu Feb 26 11:21:29 2009 +0000
+++ b/src/HOL/Archimedean_Field.thy	Thu Feb 26 06:39:06 2009 -0800
@@ -391,10 +391,10 @@
 
 subsection {* Negation *}
 
-lemma floor_minus [simp]: "floor (- x) = - ceiling x"
+lemma floor_minus: "floor (- x) = - ceiling x"
   unfolding ceiling_def by simp
 
-lemma ceiling_minus [simp]: "ceiling (- x) = - floor x"
+lemma ceiling_minus: "ceiling (- x) = - floor x"
   unfolding ceiling_def by simp
 
 end
--- a/src/HOL/Decision_Procs/MIR.thy	Thu Feb 26 11:21:29 2009 +0000
+++ b/src/HOL/Decision_Procs/MIR.thy	Thu Feb 26 06:39:06 2009 -0800
@@ -5926,7 +5926,7 @@
 apply mir
 done
 
-lemma "ALL x y. \<lfloor>x\<rfloor> = \<lfloor>y\<rfloor> \<longrightarrow> 0 \<le> abs (y - x) \<and> abs (y - x) \<le> 1"
+lemma "ALL (x::real) (y::real). \<lfloor>x\<rfloor> = \<lfloor>y\<rfloor> \<longrightarrow> 0 \<le> abs (y - x) \<and> abs (y - x) \<le> 1"
 apply mir
 done
 
--- a/src/HOL/RComplete.thy	Thu Feb 26 11:21:29 2009 +0000
+++ b/src/HOL/RComplete.thy	Thu Feb 26 06:39:06 2009 -0800
@@ -501,13 +501,13 @@
 unfolding real_of_nat_def by simp
 
 lemma floor_minus_real_of_nat [simp]: "floor (- real (n::nat)) = - int n"
-unfolding real_of_nat_def by simp
+unfolding real_of_nat_def by (simp add: floor_minus)
 
 lemma floor_real_of_int [simp]: "floor (real (n::int)) = n"
 unfolding real_of_int_def by simp
 
 lemma floor_minus_real_of_int [simp]: "floor (- real (n::int)) = - n"
-unfolding real_of_int_def by simp
+unfolding real_of_int_def by (simp add: floor_minus)
 
 lemma real_lb_ub_int: " \<exists>n::int. real n \<le> r & r < real (n+1)"
 unfolding real_of_int_def by (rule floor_exists)