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