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 xxx𝑂1

Proof

Step Hyp Ref Expression
1 ssidd
2 reflcl xx
3 resubcl xxxx
4 2 3 mpdan xxx
5 4 recnd xxx
6 5 adantl xxx
7 1red 1
8 id xx
9 flle xxx
10 2 8 9 abssubge0d xxx=xx
11 fracle1 xxx1
12 10 11 eqbrtrd xxx1
13 12 ad2antrl x1xxx1
14 1 6 7 7 13 elo1d xxx𝑂1
15 14 mptru xxx𝑂1