Description: The binary length of a positive integer, doubled and increased by 1, is the binary length of the integer plus 1. (Contributed by AV, 30-May-2010)
Ref | Expression | ||
---|---|---|---|
Assertion | blennnt2 | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | 2nn | |
|
2 | 1 | a1i | |
3 | id | |
|
4 | 2 3 | nnmulcld | |
5 | blennn | |
|
6 | 4 5 | syl | |
7 | 2cn | |
|
8 | 7 | a1i | |
9 | nncn | |
|
10 | 8 9 | mulcomd | |
11 | 10 | oveq2d | |
12 | 2z | |
|
13 | uzid | |
|
14 | 12 13 | ax-mp | |
15 | eluz2cnn0n1 | |
|
16 | 14 15 | mp1i | |
17 | nnrp | |
|
18 | 2rp | |
|
19 | 18 | a1i | |
20 | relogbmul | |
|
21 | 16 17 19 20 | syl12anc | |
22 | 2ne0 | |
|
23 | 1ne2 | |
|
24 | 23 | necomi | |
25 | 7 22 24 | 3pm3.2i | |
26 | logbid1 | |
|
27 | 25 26 | mp1i | |
28 | 27 | oveq2d | |
29 | 11 21 28 | 3eqtrd | |
30 | 29 | fveq2d | |
31 | 24 | a1i | |
32 | relogbcl | |
|
33 | 19 17 31 32 | syl3anc | |
34 | 1zzd | |
|
35 | fladdz | |
|
36 | 33 34 35 | syl2anc | |
37 | 30 36 | eqtrd | |
38 | 37 | oveq1d | |
39 | blennn | |
|
40 | 39 | eqcomd | |
41 | 40 | oveq1d | |
42 | 6 38 41 | 3eqtrd | |