Theorems
⊢ ∀r i. ⌈r⌉ = i ⇔ real_of_int (i − 1) < r ∧ r ≤ real_of_int i
⊢ ∀r i. ⌈r⌉ = i ⇔ r ≤ real_of_int i ∧ real_of_int i < r + 1
⊢ ⌈x + &n⌉ = ⌈x⌉ + &n ∧ ⌈&n + x⌉ = ⌈x⌉ + &n
⊢ ∀r. real_of_int (⌈r⌉ − 1) < r ∧ r ≤ real_of_int ⌈r⌉
⊢ ∀r. r ≤ real_of_int ⌈r⌉ ∧ real_of_int ⌈r⌉ < r + 1
⊢ ⌈0⌉ = 0 ∧
⌈&m⌉ = (let i = ⌊&m⌋ in if real_of_int i = &m then i else i + 1) ∧
⌈-&m⌉ = (let i = ⌊-&m⌋ in if real_of_int i = -&m then i else i + 1) ∧
(⌈&NUMERAL (BIT1 m) / &NUMERAL (BIT1 n)⌉ =
(let
i = ⌊&NUMERAL (BIT1 m) / &NUMERAL (BIT1 n)⌋
in
if real_of_int i = &NUMERAL (BIT1 m) / &NUMERAL (BIT1 n) then i
else i + 1) ∧
⌈&NUMERAL (BIT2 m) / &NUMERAL (BIT1 n)⌉ =
(let
i = ⌊&NUMERAL (BIT2 m) / &NUMERAL (BIT1 n)⌋
in
if real_of_int i = &NUMERAL (BIT2 m) / &NUMERAL (BIT1 n) then i
else i + 1) ∧
⌈&NUMERAL (BIT1 m) / &NUMERAL (BIT2 n)⌉ =
(let
i = ⌊&NUMERAL (BIT1 m) / &NUMERAL (BIT2 n)⌋
in
if real_of_int i = &NUMERAL (BIT1 m) / &NUMERAL (BIT2 n) then i
else i + 1) ∧
⌈&NUMERAL (BIT2 m) / &NUMERAL (BIT2 n)⌉ =
(let
i = ⌊&NUMERAL (BIT2 m) / &NUMERAL (BIT2 n)⌋
in
if real_of_int i = &NUMERAL (BIT2 m) / &NUMERAL (BIT2 n) then i
else i + 1)) ∧
⌈-&NUMERAL (BIT1 m) / &NUMERAL (BIT1 n)⌉ =
(let
i = ⌊-&NUMERAL (BIT1 m) / &NUMERAL (BIT1 n)⌋
in
if real_of_int i = -&NUMERAL (BIT1 m) / &NUMERAL (BIT1 n) then i
else i + 1) ∧
⌈-&NUMERAL (BIT2 m) / &NUMERAL (BIT1 n)⌉ =
(let
i = ⌊-&NUMERAL (BIT2 m) / &NUMERAL (BIT1 n)⌋
in
if real_of_int i = -&NUMERAL (BIT2 m) / &NUMERAL (BIT1 n) then i
else i + 1) ∧
⌈-&NUMERAL (BIT1 m) / &NUMERAL (BIT2 n)⌉ =
(let
i = ⌊-&NUMERAL (BIT1 m) / &NUMERAL (BIT2 n)⌋
in
if real_of_int i = -&NUMERAL (BIT1 m) / &NUMERAL (BIT2 n) then i
else i + 1) ∧
⌈-&NUMERAL (BIT2 m) / &NUMERAL (BIT2 n)⌉ =
(let
i = ⌊-&NUMERAL (BIT2 m) / &NUMERAL (BIT2 n)⌋
in
if real_of_int i = -&NUMERAL (BIT2 m) / &NUMERAL (BIT2 n) then i
else i + 1)
⊢ ∀r. ⌈r⌉ = (let i = ⌊r⌋ in if real_of_int i = r then i else i + 1)
⊢ ⌈x − &n⌉ = ⌈x⌉ − &n ∧ ⌈&n − x⌉ = ⌈-x⌉ + &n
⊢ ∀r i. ⌊r⌋ = i ⇔ real_of_int i ≤ r ∧ r < real_of_int (i + 1)
⊢ ∀r i. ⌊r⌋ = i ⇔ r − 1 < real_of_int i ∧ real_of_int i ≤ r
⊢ ⌊x + &n⌋ = ⌊x⌋ + &n ∧ ⌊&n + x⌋ = ⌊x⌋ + &n
⊢ ∀r. real_of_int ⌊r⌋ ≤ r ∧ r < real_of_int (⌊r⌋ + 1)
⊢ ∀r. r − 1 < real_of_int ⌊r⌋ ∧ real_of_int ⌊r⌋ ≤ r
⊢ (∀n. ⌊&n⌋ = &n) ∧ (∀n. ⌊-&n⌋ = -&n) ∧
(∀n m. 0 < m ⇒ ⌊&n / &m⌋ = &n / &m) ∧ ∀n m. 0 < m ⇒ ⌊-&n / &m⌋ = -&n / &m
⊢ ⌊x − &n⌋ = ⌊x⌋ − &n ∧ ⌊&n − x⌋ = ⌊-x⌋ + &n
⊢ ⌊x + real_of_int y⌋ = ⌊x⌋ + y ∧ ⌊real_of_int y + x⌋ = ⌊x⌋ + y
⊢ ⌊x + &n⌋ = ⌊x⌋ + &n ∧ ⌊&n + x⌋ = ⌊x⌋ + &n
⊢ ⌊&n⌋ = &n ∧ ⌊-&n⌋ = -&n ∧
(⌊&NUMERAL (BIT1 n) / &NUMERAL (BIT1 m)⌋ =
&NUMERAL (BIT1 n) / &NUMERAL (BIT1 m) ∧
⌊&NUMERAL (BIT1 n) / &NUMERAL (BIT2 m)⌋ =
&NUMERAL (BIT1 n) / &NUMERAL (BIT2 m) ∧
⌊&NUMERAL (BIT2 n) / &NUMERAL (BIT1 m)⌋ =
&NUMERAL (BIT2 n) / &NUMERAL (BIT1 m) ∧
⌊&NUMERAL (BIT2 n) / &NUMERAL (BIT2 m)⌋ =
&NUMERAL (BIT2 n) / &NUMERAL (BIT2 m)) ∧
⌊-&NUMERAL (BIT1 n) / &NUMERAL (BIT1 m)⌋ =
-&NUMERAL (BIT1 n) / &NUMERAL (BIT1 m) ∧
⌊-&NUMERAL (BIT1 n) / &NUMERAL (BIT2 m)⌋ =
-&NUMERAL (BIT1 n) / &NUMERAL (BIT2 m) ∧
⌊-&NUMERAL (BIT2 n) / &NUMERAL (BIT1 m)⌋ =
-&NUMERAL (BIT2 n) / &NUMERAL (BIT1 m) ∧
⌊-&NUMERAL (BIT2 n) / &NUMERAL (BIT2 m)⌋ =
-&NUMERAL (BIT2 n) / &NUMERAL (BIT2 m)
⊢ ∀r. 0 ≤ r ⇒ &clg r = ⌈r⌉
⊢ ∀r. 0 ≤ r ⇒ &flr r = ⌊r⌋
⊢ ⌊&n⌋ = &n ∧ ⌊-&n⌋ = -&n
⊢ ∀a b. a + 1 < b ⇒ ∃i. a < real_of_int i ∧ real_of_int i < b
⊢ ∀x. is_int x ⇔ x = real_of_int ⌈x⌉
⊢ ∀x. is_int x ⇔ frac x = 0
⊢ ∀x. is_int x ⇔ ⌊x⌋ = ⌈x⌉
⊢ real_of_int m = real_of_int n ⇔ m = n
⊢ (real_of_int i = &n ⇔ i = &n) ∧ (&n = real_of_int i ⇔ i = &n) ∧
(real_of_int i = -&n ⇔ i = -&n) ∧ (-&n = real_of_int i ⇔ i = -&n)
⊢ real_of_int (m + n) = real_of_int m + real_of_int n
⊢ ∀i. real_of_int i = if i < 0 then -&Num (-i) else &Num i
⊢ real_of_int m ≤ real_of_int n ⇔ m ≤ n
⊢ real_of_int m < real_of_int n ⇔ m < n
⊢ ∀i j. i < j ⇒ real_of_int i < real_of_int j
⊢ real_of_int (m * n) = real_of_int m * real_of_int n
⊢ real_of_int (-m) = -real_of_int m
⊢ real_of_int (m − n) = real_of_int m − real_of_int n