Description: A nonnegative integer can be represented as sum of its shifted bits. (Contributed by AV, 7-Jun-2020)
Ref | Expression | ||
---|---|---|---|
Assertion | nn0sumshdig | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | blennn0elnn | |
|
2 | nn0sumshdiglem2 | |
|
3 | eqid | |
|
4 | fveqeq2 | |
|
5 | id | |
|
6 | oveq2 | |
|
7 | 6 | oveq1d | |
8 | 7 | adantr | |
9 | 8 | sumeq2dv | |
10 | 5 9 | eqeq12d | |
11 | 4 10 | imbi12d | |
12 | 11 | rspcva | |
13 | 3 12 | mpi | |
14 | 13 | ex | |
15 | 2 14 | syl5 | |
16 | 1 15 | mpd | |