Description: The binary length of a power of 2 minus 1 is the exponent. (Contributed by AV, 31-May-2020)
Ref | Expression | ||
---|---|---|---|
Assertion | blenpw2m1 | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | 2nn0 | |
|
2 | 1 | a1i | |
3 | nnnn0 | |
|
4 | 2 3 | nn0expcld | |
5 | nnge1 | |
|
6 | 2cnd | |
|
7 | 6 | exp1d | |
8 | 7 | eqcomd | |
9 | 8 | breq1d | |
10 | 2re | |
|
11 | 10 | a1i | |
12 | 1zzd | |
|
13 | nnz | |
|
14 | 1lt2 | |
|
15 | 14 | a1i | |
16 | 11 12 13 15 | leexp2d | |
17 | 9 16 | bitr4d | |
18 | 5 17 | mpbird | |
19 | nn0ge2m1nn | |
|
20 | 4 18 19 | syl2anc | |
21 | blennn | |
|
22 | 20 21 | syl | |
23 | logbpw2m1 | |
|
24 | 23 | oveq1d | |
25 | nncn | |
|
26 | npcan1 | |
|
27 | 25 26 | syl | |
28 | 22 24 27 | 3eqtrd | |