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

Theorem numaddc 9663
Description: Add two decimal integers 𝑀 and 𝑁 (with carry). (Contributed by Mario Carneiro, 18-Feb-2014.)
Hypotheses
Ref Expression
numma.1 𝑇 ∈ ℕ0
numma.2 𝐴 ∈ ℕ0
numma.3 𝐵 ∈ ℕ0
numma.4 𝐶 ∈ ℕ0
numma.5 𝐷 ∈ ℕ0
numma.6 𝑀 = ((𝑇 · 𝐴) + 𝐵)
numma.7 𝑁 = ((𝑇 · 𝐶) + 𝐷)
numaddc.8 𝐹 ∈ ℕ0
numaddc.9 ((𝐴 + 𝐶) + 1) = 𝐸
numaddc.10 (𝐵 + 𝐷) = ((𝑇 · 1) + 𝐹)
Assertion
Ref Expression
numaddc (𝑀 + 𝑁) = ((𝑇 · 𝐸) + 𝐹)

Proof of Theorem numaddc
StepHypRef Expression
1 numma.6 . . . . . 6 𝑀 = ((𝑇 · 𝐴) + 𝐵)
2 numma.1 . . . . . . 7 𝑇 ∈ ℕ0
3 numma.2 . . . . . . 7 𝐴 ∈ ℕ0
4 numma.3 . . . . . . 7 𝐵 ∈ ℕ0
52, 3, 4numcl 9628 . . . . . 6 ((𝑇 · 𝐴) + 𝐵) ∈ ℕ0
61, 5eqeltri 2303 . . . . 5 𝑀 ∈ ℕ0
76nn0cni 9419 . . . 4 𝑀 ∈ ℂ
87mulridi 8186 . . 3 (𝑀 · 1) = 𝑀
98oveq1i 6033 . 2 ((𝑀 · 1) + 𝑁) = (𝑀 + 𝑁)
10 numma.4 . . 3 𝐶 ∈ ℕ0
11 numma.5 . . 3 𝐷 ∈ ℕ0
12 numma.7 . . 3 𝑁 = ((𝑇 · 𝐶) + 𝐷)
13 1nn0 9423 . . 3 1 ∈ ℕ0
14 numaddc.8 . . 3 𝐹 ∈ ℕ0
153nn0cni 9419 . . . . . 6 𝐴 ∈ ℂ
1615mulridi 8186 . . . . 5 (𝐴 · 1) = 𝐴
1716oveq1i 6033 . . . 4 ((𝐴 · 1) + (𝐶 + 1)) = (𝐴 + (𝐶 + 1))
1810nn0cni 9419 . . . . 5 𝐶 ∈ ℂ
19 ax-1cn 8130 . . . . 5 1 ∈ ℂ
2015, 18, 19addassi 8192 . . . 4 ((𝐴 + 𝐶) + 1) = (𝐴 + (𝐶 + 1))
21 numaddc.9 . . . 4 ((𝐴 + 𝐶) + 1) = 𝐸
2217, 20, 213eqtr2i 2257 . . 3 ((𝐴 · 1) + (𝐶 + 1)) = 𝐸
234nn0cni 9419 . . . . . 6 𝐵 ∈ ℂ
2423mulridi 8186 . . . . 5 (𝐵 · 1) = 𝐵
2524oveq1i 6033 . . . 4 ((𝐵 · 1) + 𝐷) = (𝐵 + 𝐷)
26 numaddc.10 . . . 4 (𝐵 + 𝐷) = ((𝑇 · 1) + 𝐹)
2725, 26eqtri 2251 . . 3 ((𝐵 · 1) + 𝐷) = ((𝑇 · 1) + 𝐹)
282, 3, 4, 10, 11, 1, 12, 13, 14, 13, 22, 27nummac 9660 . 2 ((𝑀 · 1) + 𝑁) = ((𝑇 · 𝐸) + 𝐹)
299, 28eqtr3i 2253 1 (𝑀 + 𝑁) = ((𝑇 · 𝐸) + 𝐹)
Colors of variables: wff set class
Syntax hints:   = wceq 1397  wcel 2201  (class class class)co 6023  1c1 8038   + caddc 8040   · cmul 8042  0cn0 9407
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 619  ax-in2 620  ax-io 716  ax-5 1495  ax-7 1496  ax-gen 1497  ax-ie1 1541  ax-ie2 1542  ax-8 1552  ax-10 1553  ax-11 1554  ax-i12 1555  ax-bndl 1557  ax-4 1558  ax-17 1574  ax-i9 1578  ax-ial 1582  ax-i5r 1583  ax-14 2204  ax-ext 2212  ax-sep 4208  ax-pow 4266  ax-pr 4301  ax-setind 4637  ax-cnex 8128  ax-resscn 8129  ax-1cn 8130  ax-1re 8131  ax-icn 8132  ax-addcl 8133  ax-addrcl 8134  ax-mulcl 8135  ax-addcom 8137  ax-mulcom 8138  ax-addass 8139  ax-mulass 8140  ax-distr 8141  ax-i2m1 8142  ax-1rid 8144  ax-0id 8145  ax-rnegex 8146  ax-cnre 8148
This theorem depends on definitions:  df-bi 117  df-3an 1006  df-tru 1400  df-fal 1403  df-nf 1509  df-sb 1810  df-eu 2081  df-mo 2082  df-clab 2217  df-cleq 2223  df-clel 2226  df-nfc 2362  df-ne 2402  df-ral 2514  df-rex 2515  df-reu 2516  df-rab 2518  df-v 2803  df-sbc 3031  df-dif 3201  df-un 3203  df-in 3205  df-ss 3212  df-pw 3655  df-sn 3676  df-pr 3677  df-op 3679  df-uni 3895  df-int 3930  df-br 4090  df-opab 4152  df-id 4392  df-xp 4733  df-rel 4734  df-cnv 4735  df-co 4736  df-dm 4737  df-iota 5288  df-fun 5330  df-fv 5336  df-riota 5976  df-ov 6026  df-oprab 6027  df-mpo 6028  df-sub 8357  df-inn 9149  df-n0 9408
This theorem is referenced by:  decaddc  9670
  Copyright terms: Public domain W3C validator