Metamath Proof Explorer


Theorem decma

Description: Perform a multiply-add of two numerals M and N against a fixed multiplicand P (no carry). (Contributed by Mario Carneiro, 18-Feb-2014) (Revised by AV, 6-Sep-2021)

Ref Expression
Hypotheses decma.a โŠข ๐ด โˆˆ โ„•0
decma.b โŠข ๐ต โˆˆ โ„•0
decma.c โŠข ๐ถ โˆˆ โ„•0
decma.d โŠข ๐ท โˆˆ โ„•0
decma.m โŠข ๐‘€ = ๐ด ๐ต
decma.n โŠข ๐‘ = ๐ถ ๐ท
decma.p โŠข ๐‘ƒ โˆˆ โ„•0
decma.e โŠข ( ( ๐ด ยท ๐‘ƒ ) + ๐ถ ) = ๐ธ
decma.f โŠข ( ( ๐ต ยท ๐‘ƒ ) + ๐ท ) = ๐น
Assertion decma ( ( ๐‘€ ยท ๐‘ƒ ) + ๐‘ ) = ๐ธ ๐น

Proof

Step Hyp Ref Expression
1 decma.a โŠข ๐ด โˆˆ โ„•0
2 decma.b โŠข ๐ต โˆˆ โ„•0
3 decma.c โŠข ๐ถ โˆˆ โ„•0
4 decma.d โŠข ๐ท โˆˆ โ„•0
5 decma.m โŠข ๐‘€ = ๐ด ๐ต
6 decma.n โŠข ๐‘ = ๐ถ ๐ท
7 decma.p โŠข ๐‘ƒ โˆˆ โ„•0
8 decma.e โŠข ( ( ๐ด ยท ๐‘ƒ ) + ๐ถ ) = ๐ธ
9 decma.f โŠข ( ( ๐ต ยท ๐‘ƒ ) + ๐ท ) = ๐น
10 10nn0 โŠข 1 0 โˆˆ โ„•0
11 dfdec10 โŠข ๐ด ๐ต = ( ( 1 0 ยท ๐ด ) + ๐ต )
12 5 11 eqtri โŠข ๐‘€ = ( ( 1 0 ยท ๐ด ) + ๐ต )
13 dfdec10 โŠข ๐ถ ๐ท = ( ( 1 0 ยท ๐ถ ) + ๐ท )
14 6 13 eqtri โŠข ๐‘ = ( ( 1 0 ยท ๐ถ ) + ๐ท )
15 10 1 2 3 4 12 14 7 8 9 numma โŠข ( ( ๐‘€ ยท ๐‘ƒ ) + ๐‘ ) = ( ( 1 0 ยท ๐ธ ) + ๐น )
16 dfdec10 โŠข ๐ธ ๐น = ( ( 1 0 ยท ๐ธ ) + ๐น )
17 15 16 eqtr4i โŠข ( ( ๐‘€ ยท ๐‘ƒ ) + ๐‘ ) = ๐ธ ๐น