Metamath Proof Explorer


Theorem flsqrt5

Description: The floor of the square root of a nonnegative number is 5 iff the number is between 25 and 35. (Contributed by AV, 17-Aug-2021)

Ref Expression
Assertion flsqrt5 X0X25XX<36X=5

Proof

Step Hyp Ref Expression
1 5nn0 50
2 flsqrt X0X50X=552XX<5+12
3 1 2 mpan2 X0XX=552XX<5+12
4 5cn 5
5 4 sqvali 52=55
6 5t5e25 55=25
7 5 6 eqtri 52=25
8 7 breq1i 52X25X
9 8 a1i X0X52X25X
10 5p1e6 5+1=6
11 10 oveq1i 5+12=62
12 6cn 6
13 12 sqvali 62=66
14 6t6e36 66=36
15 13 14 eqtri 62=36
16 11 15 eqtri 5+12=36
17 16 breq2i X<5+12X<36
18 17 a1i X0XX<5+12X<36
19 9 18 anbi12d X0X52XX<5+1225XX<36
20 3 19 bitr2d X0X25XX<36X=5