Description: Define the addition of two bit sequences, using df-had and df-cad bit operations. (Contributed by Mario Carneiro, 5-Sep-2016)
Ref | Expression | ||
---|---|---|---|
Assertion | df-sad | |
Step | Hyp | Ref | Expression |
---|---|---|---|
0 | csad | |
|
1 | vx | |
|
2 | cn0 | |
|
3 | 2 | cpw | |
4 | vy | |
|
5 | vk | |
|
6 | 5 | cv | |
7 | 1 | cv | |
8 | 6 7 | wcel | |
9 | 4 | cv | |
10 | 6 9 | wcel | |
11 | c0 | |
|
12 | cc0 | |
|
13 | vc | |
|
14 | c2o | |
|
15 | vm | |
|
16 | 15 | cv | |
17 | 16 7 | wcel | |
18 | 16 9 | wcel | |
19 | 13 | cv | |
20 | 11 19 | wcel | |
21 | 17 18 20 | wcad | |
22 | c1o | |
|
23 | 21 22 11 | cif | |
24 | 13 15 14 2 23 | cmpo | |
25 | vn | |
|
26 | 25 | cv | |
27 | 26 12 | wceq | |
28 | cmin | |
|
29 | c1 | |
|
30 | 26 29 28 | co | |
31 | 27 11 30 | cif | |
32 | 25 2 31 | cmpt | |
33 | 24 32 12 | cseq | |
34 | 6 33 | cfv | |
35 | 11 34 | wcel | |
36 | 8 10 35 | whad | |
37 | 36 5 2 | crab | |
38 | 1 4 3 3 37 | cmpo | |
39 | 0 38 | wceq | |