Description: Perform a multiply-add of two decimal integers M and N against a fixed multiplicand P (no 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 | |
||
numma.8 | |
||
numma.9 | |
||
numma.10 | |
||
Assertion | numma | |
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 | numma.8 | |
|
9 | numma.9 | |
|
10 | numma.10 | |
|
11 | 6 | oveq1i | |
12 | 11 7 | oveq12i | |
13 | 1 | nn0cni | |
14 | 2 | nn0cni | |
15 | 8 | nn0cni | |
16 | 14 15 | mulcli | |
17 | 4 | nn0cni | |
18 | 13 16 17 | adddii | |
19 | 13 14 15 | mulassi | |
20 | 19 | oveq1i | |
21 | 18 20 | eqtr4i | |
22 | 21 | oveq1i | |
23 | 13 14 | mulcli | |
24 | 3 | nn0cni | |
25 | 23 24 15 | adddiri | |
26 | 25 | oveq1i | |
27 | 23 15 | mulcli | |
28 | 13 17 | mulcli | |
29 | 24 15 | mulcli | |
30 | 5 | nn0cni | |
31 | 27 28 29 30 | add4i | |
32 | 26 31 | eqtr4i | |
33 | 22 32 | eqtr4i | |
34 | 9 | oveq2i | |
35 | 34 10 | oveq12i | |
36 | 12 33 35 | 3eqtr2i | |