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

Theorem numma 9365
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 5852 . . 3  |-  ( M  x.  P )  =  ( ( ( T  x.  A )  +  B )  x.  P
)
3 numma.7 . . 3  |-  N  =  ( ( T  x.  C )  +  D
)
42, 3oveq12i 5854 . 2  |-  ( ( M  x.  P )  +  N )  =  ( ( ( ( T  x.  A )  +  B )  x.  P )  +  ( ( T  x.  C
)  +  D ) )
5 numma.1 . . . . . . 7  |-  T  e. 
NN0
65nn0cni 9126 . . . . . 6  |-  T  e.  CC
7 numma.2 . . . . . . . 8  |-  A  e. 
NN0
87nn0cni 9126 . . . . . . 7  |-  A  e.  CC
9 numma.8 . . . . . . . 8  |-  P  e. 
NN0
109nn0cni 9126 . . . . . . 7  |-  P  e.  CC
118, 10mulcli 7904 . . . . . 6  |-  ( A  x.  P )  e.  CC
12 numma.4 . . . . . . 7  |-  C  e. 
NN0
1312nn0cni 9126 . . . . . 6  |-  C  e.  CC
146, 11, 13adddii 7909 . . . . 5  |-  ( T  x.  ( ( A  x.  P )  +  C ) )  =  ( ( T  x.  ( A  x.  P
) )  +  ( T  x.  C ) )
156, 8, 10mulassi 7908 . . . . . 6  |-  ( ( T  x.  A )  x.  P )  =  ( T  x.  ( A  x.  P )
)
1615oveq1i 5852 . . . . 5  |-  ( ( ( T  x.  A
)  x.  P )  +  ( T  x.  C ) )  =  ( ( T  x.  ( A  x.  P
) )  +  ( T  x.  C ) )
1714, 16eqtr4i 2189 . . . 4  |-  ( T  x.  ( ( A  x.  P )  +  C ) )  =  ( ( ( T  x.  A )  x.  P )  +  ( T  x.  C ) )
1817oveq1i 5852 . . 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 7904 . . . . . 6  |-  ( T  x.  A )  e.  CC
20 numma.3 . . . . . . 7  |-  B  e. 
NN0
2120nn0cni 9126 . . . . . 6  |-  B  e.  CC
2219, 21, 10adddiri 7910 . . . . 5  |-  ( ( ( T  x.  A
)  +  B )  x.  P )  =  ( ( ( T  x.  A )  x.  P )  +  ( B  x.  P ) )
2322oveq1i 5852 . . . 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 7904 . . . . 5  |-  ( ( T  x.  A )  x.  P )  e.  CC
256, 13mulcli 7904 . . . . 5  |-  ( T  x.  C )  e.  CC
2621, 10mulcli 7904 . . . . 5  |-  ( B  x.  P )  e.  CC
27 numma.5 . . . . . 6  |-  D  e. 
NN0
2827nn0cni 9126 . . . . 5  |-  D  e.  CC
2924, 25, 26, 28add4i 8063 . . . 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 2189 . . 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 2189 . 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 5853 . . 3  |-  ( T  x.  ( ( A  x.  P )  +  C ) )  =  ( T  x.  E
)
34 numma.10 . . 3  |-  ( ( B  x.  P )  +  D )  =  F
3533, 34oveq12i 5854 . 2  |-  ( ( T  x.  ( ( A  x.  P )  +  C ) )  +  ( ( B  x.  P )  +  D ) )  =  ( ( T  x.  E )  +  F
)
364, 31, 353eqtr2i 2192 1  |-  ( ( M  x.  P )  +  N )  =  ( ( T  x.  E )  +  F
)
Colors of variables: wff set class
Syntax hints:    = wceq 1343    e. wcel 2136  (class class class)co 5842    + caddc 7756    x. cmul 7758   NN0cn0 9114
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 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-ext 2147  ax-sep 4100  ax-cnex 7844  ax-resscn 7845  ax-1re 7847  ax-addcl 7849  ax-addrcl 7850  ax-mulcl 7851  ax-addcom 7853  ax-mulcom 7854  ax-addass 7855  ax-mulass 7856  ax-distr 7857  ax-rnegex 7862
This theorem depends on definitions:  df-bi 116  df-3an 970  df-tru 1346  df-nf 1449  df-sb 1751  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ral 2449  df-rex 2450  df-v 2728  df-un 3120  df-in 3122  df-ss 3129  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-br 3983  df-iota 5153  df-fv 5196  df-ov 5845  df-inn 8858  df-n0 9115
This theorem is referenced by:  nummac  9366  numadd  9368  decma  9372
  Copyright terms: Public domain W3C validator