Description: The binary length of an integer greater than 1 is the binary length of the integer divided by 2, increased by one. (Contributed by AV, 3-Jun-2020)
Ref | Expression | ||
---|---|---|---|
Assertion | blengt1fldiv2p1 | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | eluz2nn | |
|
2 | nneop | |
|
3 | 1 2 | syl | |
4 | nnnn0 | |
|
5 | blennn0em1 | |
|
6 | 4 5 | sylan2 | |
7 | 6 | ancoms | |
8 | 7 | oveq1d | |
9 | nnz | |
|
10 | flid | |
|
11 | 9 10 | syl | |
12 | 11 | eqcomd | |
13 | 12 | fveq2d | |
14 | 13 | oveq1d | |
15 | 14 | adantr | |
16 | blennnelnn | |
|
17 | 16 | nncnd | |
18 | npcan1 | |
|
19 | 17 18 | syl | |
20 | 19 | adantl | |
21 | 8 15 20 | 3eqtr3rd | |
22 | 21 | expcom | |
23 | 22 1 | syl11 | |
24 | nnnn0 | |
|
25 | blennngt2o2 | |
|
26 | 24 25 | sylan2 | |
27 | 26 | ancoms | |
28 | eluzge2nn0 | |
|
29 | nn0ofldiv2 | |
|
30 | 28 24 29 | syl2anr | |
31 | 30 | eqcomd | |
32 | 31 | fveq2d | |
33 | 32 | oveq1d | |
34 | 27 33 | eqtrd | |
35 | 34 | ex | |
36 | 23 35 | jaoi | |
37 | 3 36 | mpcom | |