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

Theorem decma2c 9431
Description: Perform a multiply-add of two numerals ๐‘€ and ๐‘ against a fixed multiplier ๐‘ƒ (with carry). (Contributed by Mario Carneiro, 18-Feb-2014.) (Revised by AV, 6-Sep-2021.)
Hypotheses
Ref Expression
decma.a ๐ด โˆˆ โ„•0
decma.b ๐ต โˆˆ โ„•0
decma.c ๐ถ โˆˆ โ„•0
decma.d ๐ท โˆˆ โ„•0
decma.m ๐‘€ = ๐ด๐ต
decma.n ๐‘ = ๐ถ๐ท
decma2c.p ๐‘ƒ โˆˆ โ„•0
decma2c.f ๐น โˆˆ โ„•0
decma2c.g ๐บ โˆˆ โ„•0
decma2c.e ((๐‘ƒ ยท ๐ด) + (๐ถ + ๐บ)) = ๐ธ
decma2c.2 ((๐‘ƒ ยท ๐ต) + ๐ท) = ๐บ๐น
Assertion
Ref Expression
decma2c ((๐‘ƒ ยท ๐‘€) + ๐‘) = ๐ธ๐น

Proof of Theorem decma2c
StepHypRef Expression
1 10nn0 9396 . . 3 10 โˆˆ โ„•0
2 decma.a . . 3 ๐ด โˆˆ โ„•0
3 decma.b . . 3 ๐ต โˆˆ โ„•0
4 decma.c . . 3 ๐ถ โˆˆ โ„•0
5 decma.d . . 3 ๐ท โˆˆ โ„•0
6 decma.m . . . 4 ๐‘€ = ๐ด๐ต
7 dfdec10 9382 . . . 4 ๐ด๐ต = ((10 ยท ๐ด) + ๐ต)
86, 7eqtri 2198 . . 3 ๐‘€ = ((10 ยท ๐ด) + ๐ต)
9 decma.n . . . 4 ๐‘ = ๐ถ๐ท
10 dfdec10 9382 . . . 4 ๐ถ๐ท = ((10 ยท ๐ถ) + ๐ท)
119, 10eqtri 2198 . . 3 ๐‘ = ((10 ยท ๐ถ) + ๐ท)
12 decma2c.p . . 3 ๐‘ƒ โˆˆ โ„•0
13 decma2c.f . . 3 ๐น โˆˆ โ„•0
14 decma2c.g . . 3 ๐บ โˆˆ โ„•0
15 decma2c.e . . 3 ((๐‘ƒ ยท ๐ด) + (๐ถ + ๐บ)) = ๐ธ
16 decma2c.2 . . . 4 ((๐‘ƒ ยท ๐ต) + ๐ท) = ๐บ๐น
17 dfdec10 9382 . . . 4 ๐บ๐น = ((10 ยท ๐บ) + ๐น)
1816, 17eqtri 2198 . . 3 ((๐‘ƒ ยท ๐ต) + ๐ท) = ((10 ยท ๐บ) + ๐น)
191, 2, 3, 4, 5, 8, 11, 12, 13, 14, 15, 18numma2c 9424 . 2 ((๐‘ƒ ยท ๐‘€) + ๐‘) = ((10 ยท ๐ธ) + ๐น)
20 dfdec10 9382 . 2 ๐ธ๐น = ((10 ยท ๐ธ) + ๐น)
2119, 20eqtr4i 2201 1 ((๐‘ƒ ยท ๐‘€) + ๐‘) = ๐ธ๐น
Colors of variables: wff set class
Syntax hints:   = wceq 1353   โˆˆ wcel 2148  (class class class)co 5871  0cc0 7807  1c1 7808   + caddc 7810   ยท cmul 7812  โ„•0cn0 9171  cdc 9379
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 614  ax-in2 615  ax-io 709  ax-5 1447  ax-7 1448  ax-gen 1449  ax-ie1 1493  ax-ie2 1494  ax-8 1504  ax-10 1505  ax-11 1506  ax-i12 1507  ax-bndl 1509  ax-4 1510  ax-17 1526  ax-i9 1530  ax-ial 1534  ax-i5r 1535  ax-14 2151  ax-ext 2159  ax-sep 4120  ax-pow 4173  ax-pr 4208  ax-setind 4535  ax-cnex 7898  ax-resscn 7899  ax-1cn 7900  ax-1re 7901  ax-icn 7902  ax-addcl 7903  ax-addrcl 7904  ax-mulcl 7905  ax-addcom 7907  ax-mulcom 7908  ax-addass 7909  ax-mulass 7910  ax-distr 7911  ax-i2m1 7912  ax-1rid 7914  ax-0id 7915  ax-rnegex 7916  ax-cnre 7918
This theorem depends on definitions:  df-bi 117  df-3an 980  df-tru 1356  df-fal 1359  df-nf 1461  df-sb 1763  df-eu 2029  df-mo 2030  df-clab 2164  df-cleq 2170  df-clel 2173  df-nfc 2308  df-ne 2348  df-ral 2460  df-rex 2461  df-reu 2462  df-rab 2464  df-v 2739  df-sbc 2963  df-dif 3131  df-un 3133  df-in 3135  df-ss 3142  df-pw 3577  df-sn 3598  df-pr 3599  df-op 3601  df-uni 3810  df-int 3845  df-br 4003  df-opab 4064  df-id 4292  df-xp 4631  df-rel 4632  df-cnv 4633  df-co 4634  df-dm 4635  df-iota 5176  df-fun 5216  df-fv 5222  df-riota 5827  df-ov 5874  df-oprab 5875  df-mpo 5876  df-sub 8125  df-inn 8915  df-2 8973  df-3 8974  df-4 8975  df-5 8976  df-6 8977  df-7 8978  df-8 8979  df-9 8980  df-n0 9172  df-dec 9380
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator