ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  numma Unicode version

Theorem numma 9357
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 5847 . . 3  |-  ( M  x.  P )  =  ( ( ( T  x.  A )  +  B )  x.  P
)
3 numma.7 . . 3  |-  N  =  ( ( T  x.  C )  +  D
)
42, 3oveq12i 5849 . 2  |-  ( ( M  x.  P )  +  N )  =  ( ( ( ( T  x.  A )  +  B )  x.  P )  +  ( ( T  x.  C
)  +  D ) )
5 numma.1 . . . . . . 7  |-  T  e. 
NN0
65nn0cni 9118 . . . . . 6  |-  T  e.  CC
7 numma.2 . . . . . . . 8  |-  A  e. 
NN0
87nn0cni 9118 . . . . . . 7  |-  A  e.  CC
9 numma.8 . . . . . . . 8  |-  P  e. 
NN0
109nn0cni 9118 . . . . . . 7  |-  P  e.  CC
118, 10mulcli 7896 . . . . . 6  |-  ( A  x.  P )  e.  CC
12 numma.4 . . . . . . 7  |-  C  e. 
NN0
1312nn0cni 9118 . . . . . 6  |-  C  e.  CC
146, 11, 13adddii 7901 . . . . 5  |-  ( T  x.  ( ( A  x.  P )  +  C ) )  =  ( ( T  x.  ( A  x.  P
) )  +  ( T  x.  C ) )
156, 8, 10mulassi 7900 . . . . . 6  |-  ( ( T  x.  A )  x.  P )  =  ( T  x.  ( A  x.  P )
)
1615oveq1i 5847 . . . . 5  |-  ( ( ( T  x.  A
)  x.  P )  +  ( T  x.  C ) )  =  ( ( T  x.  ( A  x.  P
) )  +  ( T  x.  C ) )
1714, 16eqtr4i 2188 . . . 4  |-  ( T  x.  ( ( A  x.  P )  +  C ) )  =  ( ( ( T  x.  A )  x.  P )  +  ( T  x.  C ) )
1817oveq1i 5847 . . 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 7896 . . . . . 6  |-  ( T  x.  A )  e.  CC
20 numma.3 . . . . . . 7  |-  B  e. 
NN0
2120nn0cni 9118 . . . . . 6  |-  B  e.  CC
2219, 21, 10adddiri 7902 . . . . 5  |-  ( ( ( T  x.  A
)  +  B )  x.  P )  =  ( ( ( T  x.  A )  x.  P )  +  ( B  x.  P ) )
2322oveq1i 5847 . . . 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 7896 . . . . 5  |-  ( ( T  x.  A )  x.  P )  e.  CC
256, 13mulcli 7896 . . . . 5  |-  ( T  x.  C )  e.  CC
2621, 10mulcli 7896 . . . . 5  |-  ( B  x.  P )  e.  CC
27 numma.5 . . . . . 6  |-  D  e. 
NN0
2827nn0cni 9118 . . . . 5  |-  D  e.  CC
2924, 25, 26, 28add4i 8055 . . . 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 2188 . . 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 2188 . 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 5848 . . 3  |-  ( T  x.  ( ( A  x.  P )  +  C ) )  =  ( T  x.  E
)
34 numma.10 . . 3  |-  ( ( B  x.  P )  +  D )  =  F
3533, 34oveq12i 5849 . 2  |-  ( ( T  x.  ( ( A  x.  P )  +  C ) )  +  ( ( B  x.  P )  +  D ) )  =  ( ( T  x.  E )  +  F
)
364, 31, 353eqtr2i 2191 1  |-  ( ( M  x.  P )  +  N )  =  ( ( T  x.  E )  +  F
)
Colors of variables: wff set class
Syntax hints:    = wceq 1342    e. wcel 2135  (class class class)co 5837    + caddc 7748    x. cmul 7750   NN0cn0 9106
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-io 699  ax-5 1434  ax-7 1435  ax-gen 1436  ax-ie1 1480  ax-ie2 1481  ax-8 1491  ax-10 1492  ax-11 1493  ax-i12 1494  ax-bndl 1496  ax-4 1497  ax-17 1513  ax-i9 1517  ax-ial 1521  ax-i5r 1522  ax-ext 2146  ax-sep 4095  ax-cnex 7836  ax-resscn 7837  ax-1re 7839  ax-addcl 7841  ax-addrcl 7842  ax-mulcl 7843  ax-addcom 7845  ax-mulcom 7846  ax-addass 7847  ax-mulass 7848  ax-distr 7849  ax-rnegex 7854
This theorem depends on definitions:  df-bi 116  df-3an 969  df-tru 1345  df-nf 1448  df-sb 1750  df-clab 2151  df-cleq 2157  df-clel 2160  df-nfc 2295  df-ral 2447  df-rex 2448  df-v 2724  df-un 3116  df-in 3118  df-ss 3125  df-sn 3577  df-pr 3578  df-op 3580  df-uni 3785  df-int 3820  df-br 3978  df-iota 5148  df-fv 5191  df-ov 5840  df-inn 8850  df-n0 9107
This theorem is referenced by:  nummac  9358  numadd  9360  decma  9364
  Copyright terms: Public domain W3C validator