Skip to content

Commit

Permalink
Improved statements of is_int_thm
Browse files Browse the repository at this point in the history
  • Loading branch information
binghe authored and mn200 committed Jul 24, 2023
1 parent 5f06cfc commit b449637
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/real/intrealScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ Proof
>> METIS_TAC [REAL_LT_IMP_NE, INT_FLOOR_BOUNDS, real_of_int_add]
QED

Theorem is_int_thm :
Theorem is_int_thm_lemma[local] :
!x. is_int x <=> real_of_int (INT_FLOOR x) = real_of_int (INT_CEILING x)
Proof
Q.X_GEN_TAC ‘x’
Expand All @@ -562,6 +562,12 @@ Proof
>> rw [INT_LT_ADDR]
QED

Theorem is_int_thm :
!x. is_int x <=> INT_FLOOR x = INT_CEILING x
Proof
rw [is_int_thm_lemma, real_of_int_11]
QED

Theorem INT_CEILING_ADD_NUM :
INT_CEILING (x + &n) = INT_CEILING x + &n /\
INT_CEILING (&n + x) = INT_CEILING x + &n
Expand Down

0 comments on commit b449637

Please sign in to comment.