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

Theorem decma 9133
Description: Perform a multiply-add of two numerals 𝑀 and 𝑁 against a fixed multiplicand 𝑃 (no 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 𝑁 = 𝐶𝐷
decma.p 𝑃 ∈ ℕ0
decma.e ((𝐴 · 𝑃) + 𝐶) = 𝐸
decma.f ((𝐵 · 𝑃) + 𝐷) = 𝐹
Assertion
Ref Expression
decma ((𝑀 · 𝑃) + 𝑁) = 𝐸𝐹

Proof of Theorem decma
StepHypRef Expression
1 10nn0 9100 . . 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 9086 . . . 4 𝐴𝐵 = ((10 · 𝐴) + 𝐵)
86, 7eqtri 2135 . . 3 𝑀 = ((10 · 𝐴) + 𝐵)
9 decma.n . . . 4 𝑁 = 𝐶𝐷
10 dfdec10 9086 . . . 4 𝐶𝐷 = ((10 · 𝐶) + 𝐷)
119, 10eqtri 2135 . . 3 𝑁 = ((10 · 𝐶) + 𝐷)
12 decma.p . . 3 𝑃 ∈ ℕ0
13 decma.e . . 3 ((𝐴 · 𝑃) + 𝐶) = 𝐸
14 decma.f . . 3 ((𝐵 · 𝑃) + 𝐷) = 𝐹
151, 2, 3, 4, 5, 8, 11, 12, 13, 14numma 9126 . 2 ((𝑀 · 𝑃) + 𝑁) = ((10 · 𝐸) + 𝐹)
16 dfdec10 9086 . 2 𝐸𝐹 = ((10 · 𝐸) + 𝐹)
1715, 16eqtr4i 2138 1 ((𝑀 · 𝑃) + 𝑁) = 𝐸𝐹
Colors of variables: wff set class
Syntax hints:   = wceq 1314  wcel 1463  (class class class)co 5728  0cc0 7544  1c1 7545   + caddc 7547   · cmul 7549  0cn0 8878  cdc 9083
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 586  ax-in2 587  ax-io 681  ax-5 1406  ax-7 1407  ax-gen 1408  ax-ie1 1452  ax-ie2 1453  ax-8 1465  ax-10 1466  ax-11 1467  ax-i12 1468  ax-bndl 1469  ax-4 1470  ax-14 1475  ax-17 1489  ax-i9 1493  ax-ial 1497  ax-i5r 1498  ax-ext 2097  ax-sep 4006  ax-pow 4058  ax-pr 4091  ax-setind 4412  ax-cnex 7633  ax-resscn 7634  ax-1cn 7635  ax-1re 7636  ax-icn 7637  ax-addcl 7638  ax-addrcl 7639  ax-mulcl 7640  ax-addcom 7642  ax-mulcom 7643  ax-addass 7644  ax-mulass 7645  ax-distr 7646  ax-i2m1 7647  ax-1rid 7649  ax-0id 7650  ax-rnegex 7651  ax-cnre 7653
This theorem depends on definitions:  df-bi 116  df-3an 947  df-tru 1317  df-fal 1320  df-nf 1420  df-sb 1719  df-eu 1978  df-mo 1979  df-clab 2102  df-cleq 2108  df-clel 2111  df-nfc 2244  df-ne 2283  df-ral 2395  df-rex 2396  df-reu 2397  df-rab 2399  df-v 2659  df-sbc 2879  df-dif 3039  df-un 3041  df-in 3043  df-ss 3050  df-pw 3478  df-sn 3499  df-pr 3500  df-op 3502  df-uni 3703  df-int 3738  df-br 3896  df-opab 3950  df-id 4175  df-xp 4505  df-rel 4506  df-cnv 4507  df-co 4508  df-dm 4509  df-iota 5046  df-fun 5083  df-fv 5089  df-riota 5684  df-ov 5731  df-oprab 5732  df-mpo 5733  df-sub 7855  df-inn 8628  df-2 8686  df-3 8687  df-4 8688  df-5 8689  df-6 8690  df-7 8691  df-8 8692  df-9 8693  df-n0 8879  df-dec 9084
This theorem is referenced by:  decrmanc  9139
  Copyright terms: Public domain W3C validator