Metamath Proof Explorer


Theorem flo1

Description: The floor function satisfies |_ ( x ) = x + O(1) . (Contributed by Mario Carneiro, 21-May-2016)

Ref Expression
Assertion flo1 ⊢ x ∈ ℝ ⟼ x − x ∈ 𝑂⁡1

Proof

Step Hyp Ref Expression
1 ssidd ⊢ ⊤ → ℝ ⊆ ℝ
2 reflcl ⊢ x ∈ ℝ → x ∈ ℝ
3 resubcl ⊢ x ∈ ℝ ∧ x ∈ ℝ → x − x ∈ ℝ
4 2 3 mpdan ⊢ x ∈ ℝ → x − x ∈ ℝ
5 4 recnd ⊢ x ∈ ℝ → x − x ∈ ℂ
6 5 adantl ⊢ ⊤ ∧ x ∈ ℝ → x − x ∈ ℂ
7 1red ⊢ ⊤ → 1 ∈ ℝ
8 id ⊢ x ∈ ℝ → x ∈ ℝ
9 flle ⊢ x ∈ ℝ → x ≤ x
10 2 8 9 abssubge0d ⊢ x ∈ ℝ → x − x = x − x
11 fracle1 ⊢ x ∈ ℝ → x − x ≤ 1
12 10 11 eqbrtrd ⊢ x ∈ ℝ → x − x ≤ 1
13 12 ad2antrl ⊢ ⊤ ∧ x ∈ ℝ ∧ 1 ≤ x → x − x ≤ 1
14 1 6 7 7 13 elo1d ⊢ ⊤ → x ∈ ℝ ⟼ x − x ∈ 𝑂⁡1
15 14 mptru ⊢ x ∈ ℝ ⟼ x − x ∈ 𝑂⁡1