We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f06cfc commit b449637Copy full SHA for b449637
src/real/intrealScript.sml
@@ -549,7 +549,7 @@ Proof
549
>> METIS_TAC [REAL_LT_IMP_NE, INT_FLOOR_BOUNDS, real_of_int_add]
550
QED
551
552
-Theorem is_int_thm :
+Theorem is_int_thm_lemma[local] :
553
!x. is_int x <=> real_of_int (INT_FLOOR x) = real_of_int (INT_CEILING x)
554
Proof
555
Q.X_GEN_TAC ‘x’
@@ -562,6 +562,12 @@ Proof
562
>> rw [INT_LT_ADDR]
563
564
565
+Theorem is_int_thm :
566
+ !x. is_int x <=> INT_FLOOR x = INT_CEILING x
567
+Proof
568
+ rw [is_int_thm_lemma, real_of_int_11]
569
+QED
570
+
571
Theorem INT_CEILING_ADD_NUM :
572
INT_CEILING (x + &n) = INT_CEILING x + &n /\
573
INT_CEILING (&n + x) = INT_CEILING x + &n
0 commit comments