Skip to content

Commit b449637

Browse files
binghemn200
authored andcommitted
Improved statements of is_int_thm
1 parent 5f06cfc commit b449637

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/real/intrealScript.sml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ Proof
549549
>> METIS_TAC [REAL_LT_IMP_NE, INT_FLOOR_BOUNDS, real_of_int_add]
550550
QED
551551

552-
Theorem is_int_thm :
552+
Theorem is_int_thm_lemma[local] :
553553
!x. is_int x <=> real_of_int (INT_FLOOR x) = real_of_int (INT_CEILING x)
554554
Proof
555555
Q.X_GEN_TAC ‘x’
@@ -562,6 +562,12 @@ Proof
562562
>> rw [INT_LT_ADDR]
563563
QED
564564

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+
565571
Theorem INT_CEILING_ADD_NUM :
566572
INT_CEILING (x + &n) = INT_CEILING x + &n /\
567573
INT_CEILING (&n + x) = INT_CEILING x + &n

0 commit comments

Comments
 (0)