Metamath Proof Explorer


Theorem fllogbd

Description: A real number is between the base of a logarithm to the power of the floor of the logarithm of the number and the base of the logarithm to the power of the floor of the logarithm of the number plus one. (Contributed by AV, 23-May-2020)

Ref Expression
Hypotheses fllogbd.b φ B 2
fllogbd.x φ X +
fllogbd.e E = log B X
Assertion fllogbd φ B E X X < B E + 1

Proof

Step Hyp Ref Expression
1 fllogbd.b φ B 2
2 fllogbd.x φ X +
3 fllogbd.e E = log B X
4 relogbzcl B 2 X + log B X
5 1 2 4 syl2anc φ log B X
6 flle log B X log B X log B X
7 5 6 syl φ log B X log B X
8 3 7 eqbrtrid φ E log B X
9 eluzelz B 2 B
10 1 9 syl φ B
11 10 zred φ B
12 eluz2b1 B 2 B 1 < B
13 12 simprbi B 2 1 < B
14 1 13 syl φ 1 < B
15 5 flcld φ log B X
16 3 15 eqeltrid φ E
17 16 zred φ E
18 11 14 17 5 cxpled φ E log B X B E B log B X
19 8 18 mpbid φ B E B log B X
20 10 zcnd φ B
21 eluz2nn B 2 B
22 1 21 syl φ B
23 22 nnne0d φ B 0
24 20 23 16 cxpexpzd φ B E = B E
25 eluz2cnn0n1 B 2 B 0 1
26 1 25 syl φ B 0 1
27 rpcnne0 X + X X 0
28 eldifsn X 0 X X 0
29 27 28 sylibr X + X 0
30 2 29 syl φ X 0
31 cxplogb B 0 1 X 0 B log B X = X
32 26 30 31 syl2anc φ B log B X = X
33 19 24 32 3brtr3d φ B E X
34 flltp1 log B X log B X < log B X + 1
35 5 34 syl φ log B X < log B X + 1
36 3 a1i φ E = log B X
37 36 oveq1d φ E + 1 = log B X + 1
38 35 37 breqtrrd φ log B X < E + 1
39 16 peano2zd φ E + 1
40 39 zred φ E + 1
41 11 14 5 40 cxpltd φ log B X < E + 1 B log B X < B E + 1
42 38 41 mpbid φ B log B X < B E + 1
43 20 23 39 cxpexpzd φ B E + 1 = B E + 1
44 42 32 43 3brtr3d φ X < B E + 1
45 33 44 jca φ B E X X < B E + 1