MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  numma Structured version   Unicode version

Theorem numma 11052
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.)
Hypotheses
Ref Expression
numma.1  |-  T  e. 
NN0
numma.2  |-  A  e. 
NN0
numma.3  |-  B  e. 
NN0
numma.4  |-  C  e. 
NN0
numma.5  |-  D  e. 
NN0
numma.6  |-  M  =  ( ( T  x.  A )  +  B
)
numma.7  |-  N  =  ( ( T  x.  C )  +  D
)
numma.8  |-  P  e. 
NN0
numma.9  |-  ( ( A  x.  P )  +  C )  =  E
numma.10  |-  ( ( B  x.  P )  +  D )  =  F
Assertion
Ref Expression
numma  |-  ( ( M  x.  P )  +  N )  =  ( ( T  x.  E )  +  F
)

Proof of Theorem numma
StepHypRef Expression
1 numma.6 . . . 4  |-  M  =  ( ( T  x.  A )  +  B
)
21oveq1i 6290 . . 3  |-  ( M  x.  P )  =  ( ( ( T  x.  A )  +  B )  x.  P
)
3 numma.7 . . 3  |-  N  =  ( ( T  x.  C )  +  D
)
42, 3oveq12i 6292 . 2  |-  ( ( M  x.  P )  +  N )  =  ( ( ( ( T  x.  A )  +  B )  x.  P )  +  ( ( T  x.  C
)  +  D ) )
5 numma.1 . . . . . . 7  |-  T  e. 
NN0
65nn0cni 10850 . . . . . 6  |-  T  e.  CC
7 numma.2 . . . . . . . 8  |-  A  e. 
NN0
87nn0cni 10850 . . . . . . 7  |-  A  e.  CC
9 numma.8 . . . . . . . 8  |-  P  e. 
NN0
109nn0cni 10850 . . . . . . 7  |-  P  e.  CC
118, 10mulcli 9633 . . . . . 6  |-  ( A  x.  P )  e.  CC
12 numma.4 . . . . . . 7  |-  C  e. 
NN0
1312nn0cni 10850 . . . . . 6  |-  C  e.  CC
146, 11, 13adddii 9638 . . . . 5  |-  ( T  x.  ( ( A  x.  P )  +  C ) )  =  ( ( T  x.  ( A  x.  P
) )  +  ( T  x.  C ) )
156, 8, 10mulassi 9637 . . . . . 6  |-  ( ( T  x.  A )  x.  P )  =  ( T  x.  ( A  x.  P )
)
1615oveq1i 6290 . . . . 5  |-  ( ( ( T  x.  A
)  x.  P )  +  ( T  x.  C ) )  =  ( ( T  x.  ( A  x.  P
) )  +  ( T  x.  C ) )
1714, 16eqtr4i 2436 . . . 4  |-  ( T  x.  ( ( A  x.  P )  +  C ) )  =  ( ( ( T  x.  A )  x.  P )  +  ( T  x.  C ) )
1817oveq1i 6290 . . 3  |-  ( ( T  x.  ( ( A  x.  P )  +  C ) )  +  ( ( B  x.  P )  +  D ) )  =  ( ( ( ( T  x.  A )  x.  P )  +  ( T  x.  C
) )  +  ( ( B  x.  P
)  +  D ) )
196, 8mulcli 9633 . . . . . 6  |-  ( T  x.  A )  e.  CC
20 numma.3 . . . . . . 7  |-  B  e. 
NN0
2120nn0cni 10850 . . . . . 6  |-  B  e.  CC
2219, 21, 10adddiri 9639 . . . . 5  |-  ( ( ( T  x.  A
)  +  B )  x.  P )  =  ( ( ( T  x.  A )  x.  P )  +  ( B  x.  P ) )
2322oveq1i 6290 . . . 4  |-  ( ( ( ( T  x.  A )  +  B
)  x.  P )  +  ( ( T  x.  C )  +  D ) )  =  ( ( ( ( T  x.  A )  x.  P )  +  ( B  x.  P
) )  +  ( ( T  x.  C
)  +  D ) )
2419, 10mulcli 9633 . . . . 5  |-  ( ( T  x.  A )  x.  P )  e.  CC
256, 13mulcli 9633 . . . . 5  |-  ( T  x.  C )  e.  CC
2621, 10mulcli 9633 . . . . 5  |-  ( B  x.  P )  e.  CC
27 numma.5 . . . . . 6  |-  D  e. 
NN0
2827nn0cni 10850 . . . . 5  |-  D  e.  CC
2924, 25, 26, 28add4i 9836 . . . 4  |-  ( ( ( ( T  x.  A )  x.  P
)  +  ( T  x.  C ) )  +  ( ( B  x.  P )  +  D ) )  =  ( ( ( ( T  x.  A )  x.  P )  +  ( B  x.  P
) )  +  ( ( T  x.  C
)  +  D ) )
3023, 29eqtr4i 2436 . . 3  |-  ( ( ( ( T  x.  A )  +  B
)  x.  P )  +  ( ( T  x.  C )  +  D ) )  =  ( ( ( ( T  x.  A )  x.  P )  +  ( T  x.  C
) )  +  ( ( B  x.  P
)  +  D ) )
3118, 30eqtr4i 2436 . 2  |-  ( ( T  x.  ( ( A  x.  P )  +  C ) )  +  ( ( B  x.  P )  +  D ) )  =  ( ( ( ( T  x.  A )  +  B )  x.  P )  +  ( ( T  x.  C
)  +  D ) )
32 numma.9 . . . 4  |-  ( ( A  x.  P )  +  C )  =  E
3332oveq2i 6291 . . 3  |-  ( T  x.  ( ( A  x.  P )  +  C ) )  =  ( T  x.  E
)
34 numma.10 . . 3  |-  ( ( B  x.  P )  +  D )  =  F
3533, 34oveq12i 6292 . 2  |-  ( ( T  x.  ( ( A  x.  P )  +  C ) )  +  ( ( B  x.  P )  +  D ) )  =  ( ( T  x.  E )  +  F
)
364, 31, 353eqtr2i 2439 1  |-  ( ( M  x.  P )  +  N )  =  ( ( T  x.  E )  +  F
)
Colors of variables: wff setvar class
Syntax hints:    = wceq 1407    e. wcel 1844  (class class class)co 6280    + caddc 9527    x. cmul 9529   NN0cn0 10838
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1641  ax-4 1654  ax-5 1727  ax-6 1773  ax-7 1816  ax-8 1846  ax-9 1848  ax-10 1863  ax-11 1868  ax-12 1880  ax-13 2028  ax-ext 2382  ax-sep 4519  ax-nul 4527  ax-pow 4574  ax-pr 4632  ax-un 6576  ax-resscn 9581  ax-1cn 9582  ax-icn 9583  ax-addcl 9584  ax-addrcl 9585  ax-mulcl 9586  ax-mulrcl 9587  ax-mulcom 9588  ax-addass 9589  ax-mulass 9590  ax-distr 9591  ax-i2m1 9592  ax-1ne0 9593  ax-1rid 9594  ax-rnegex 9595  ax-rrecex 9596  ax-cnre 9597  ax-pre-lttri 9598  ax-pre-lttrn 9599  ax-pre-ltadd 9600
This theorem depends on definitions:  df-bi 187  df-or 370  df-an 371  df-3or 977  df-3an 978  df-tru 1410  df-ex 1636  df-nf 1640  df-sb 1766  df-eu 2244  df-mo 2245  df-clab 2390  df-cleq 2396  df-clel 2399  df-nfc 2554  df-ne 2602  df-nel 2603  df-ral 2761  df-rex 2762  df-reu 2763  df-rab 2765  df-v 3063  df-sbc 3280  df-csb 3376  df-dif 3419  df-un 3421  df-in 3423  df-ss 3430  df-pss 3432  df-nul 3741  df-if 3888  df-pw 3959  df-sn 3975  df-pr 3977  df-tp 3979  df-op 3981  df-uni 4194  df-iun 4275  df-br 4398  df-opab 4456  df-mpt 4457  df-tr 4492  df-eprel 4736  df-id 4740  df-po 4746  df-so 4747  df-fr 4784  df-we 4786  df-xp 4831  df-rel 4832  df-cnv 4833  df-co 4834  df-dm 4835  df-rn 4836  df-res 4837  df-ima 4838  df-pred 5369  df-ord 5415  df-on 5416  df-lim 5417  df-suc 5418  df-iota 5535  df-fun 5573  df-fn 5574  df-f 5575  df-f1 5576  df-fo 5577  df-f1o 5578  df-fv 5579  df-ov 6283  df-om 6686  df-wrecs 7015  df-recs 7077  df-rdg 7115  df-er 7350  df-en 7557  df-dom 7558  df-sdom 7559  df-pnf 9662  df-mnf 9663  df-ltxr 9665  df-nn 10579  df-n0 10839
This theorem is referenced by:  nummac  11053  numadd  11055  decma  11059
  Copyright terms: Public domain W3C validator