Description: Add two decimal integers M and N (with carry). (Contributed by Mario Carneiro, 18-Feb-2014)
Ref | Expression | ||
---|---|---|---|
Hypotheses | numma.1 | |
|
numma.2 | |
||
numma.3 | |
||
numma.4 | |
||
numma.5 | |
||
numma.6 | |
||
numma.7 | |
||
numaddc.8 | |
||
numaddc.9 | |
||
numaddc.10 | |
||
Assertion | numaddc | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | numma.1 | |
|
2 | numma.2 | |
|
3 | numma.3 | |
|
4 | numma.4 | |
|
5 | numma.5 | |
|
6 | numma.6 | |
|
7 | numma.7 | |
|
8 | numaddc.8 | |
|
9 | numaddc.9 | |
|
10 | numaddc.10 | |
|
11 | 1 2 3 | numcl | |
12 | 6 11 | eqeltri | |
13 | 12 | nn0cni | |
14 | 13 | mulridi | |
15 | 14 | oveq1i | |
16 | 1nn0 | |
|
17 | 2 | nn0cni | |
18 | 17 | mulridi | |
19 | 18 | oveq1i | |
20 | 4 | nn0cni | |
21 | ax-1cn | |
|
22 | 17 20 21 | addassi | |
23 | 19 22 9 | 3eqtr2i | |
24 | 3 | nn0cni | |
25 | 24 | mulridi | |
26 | 25 | oveq1i | |
27 | 26 10 | eqtri | |
28 | 1 2 3 4 5 6 7 16 8 16 23 27 | nummac | |
29 | 15 28 | eqtr3i | |