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

Theorem numadd 9592
Description: Add two decimal integers 𝑀 and 𝑁 (no 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 𝑁 = ((𝑇 · 𝐶) + 𝐷)
numadd.8 (𝐴 + 𝐶) = 𝐸
numadd.9 (𝐵 + 𝐷) = 𝐹
Assertion
Ref Expression
numadd (𝑀 + 𝑁) = ((𝑇 · 𝐸) + 𝐹)

Proof of Theorem numadd
StepHypRef Expression
1 numma.6 . . . . . 6 𝑀 = ((𝑇 · 𝐴) + 𝐵)
2 numma.1 . . . . . . 7 𝑇 ∈ ℕ0
3 numma.2 . . . . . . 7 𝐴 ∈ ℕ0
4 numma.3 . . . . . . 7 𝐵 ∈ ℕ0
52, 3, 4numcl 9558 . . . . . 6 ((𝑇 · 𝐴) + 𝐵) ∈ ℕ0
61, 5eqeltri 2282 . . . . 5 𝑀 ∈ ℕ0
76nn0cni 9349 . . . 4 𝑀 ∈ ℂ
87mulridi 8116 . . 3 (𝑀 · 1) = 𝑀
98oveq1i 5984 . 2 ((𝑀 · 1) + 𝑁) = (𝑀 + 𝑁)
10 numma.4 . . 3 𝐶 ∈ ℕ0
11 numma.5 . . 3 𝐷 ∈ ℕ0
12 numma.7 . . 3 𝑁 = ((𝑇 · 𝐶) + 𝐷)
13 1nn0 9353 . . 3 1 ∈ ℕ0
143nn0cni 9349 . . . . . 6 𝐴 ∈ ℂ
1514mulridi 8116 . . . . 5 (𝐴 · 1) = 𝐴
1615oveq1i 5984 . . . 4 ((𝐴 · 1) + 𝐶) = (𝐴 + 𝐶)
17 numadd.8 . . . 4 (𝐴 + 𝐶) = 𝐸
1816, 17eqtri 2230 . . 3 ((𝐴 · 1) + 𝐶) = 𝐸
194nn0cni 9349 . . . . . 6 𝐵 ∈ ℂ
2019mulridi 8116 . . . . 5 (𝐵 · 1) = 𝐵
2120oveq1i 5984 . . . 4 ((𝐵 · 1) + 𝐷) = (𝐵 + 𝐷)
22 numadd.9 . . . 4 (𝐵 + 𝐷) = 𝐹
2321, 22eqtri 2230 . . 3 ((𝐵 · 1) + 𝐷) = 𝐹
242, 3, 4, 10, 11, 1, 12, 13, 18, 23numma 9589 . 2 ((𝑀 · 1) + 𝑁) = ((𝑇 · 𝐸) + 𝐹)
259, 24eqtr3i 2232 1 (𝑀 + 𝑁) = ((𝑇 · 𝐸) + 𝐹)
Colors of variables: wff set class
Syntax hints:   = wceq 1375  wcel 2180  (class class class)co 5974  1c1 7968   + caddc 7970   · cmul 7972  0cn0 9337
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 617  ax-in2 618  ax-io 713  ax-5 1473  ax-7 1474  ax-gen 1475  ax-ie1 1519  ax-ie2 1520  ax-8 1530  ax-10 1531  ax-11 1532  ax-i12 1533  ax-bndl 1535  ax-4 1536  ax-17 1552  ax-i9 1556  ax-ial 1560  ax-i5r 1561  ax-14 2183  ax-ext 2191  ax-sep 4181  ax-pow 4237  ax-pr 4272  ax-setind 4606  ax-cnex 8058  ax-resscn 8059  ax-1cn 8060  ax-1re 8061  ax-icn 8062  ax-addcl 8063  ax-addrcl 8064  ax-mulcl 8065  ax-addcom 8067  ax-mulcom 8068  ax-addass 8069  ax-mulass 8070  ax-distr 8071  ax-i2m1 8072  ax-1rid 8074  ax-0id 8075  ax-rnegex 8076  ax-cnre 8078
This theorem depends on definitions:  df-bi 117  df-3an 985  df-tru 1378  df-fal 1381  df-nf 1487  df-sb 1789  df-eu 2060  df-mo 2061  df-clab 2196  df-cleq 2202  df-clel 2205  df-nfc 2341  df-ne 2381  df-ral 2493  df-rex 2494  df-reu 2495  df-rab 2497  df-v 2781  df-sbc 3009  df-dif 3179  df-un 3181  df-in 3183  df-ss 3190  df-pw 3631  df-sn 3652  df-pr 3653  df-op 3655  df-uni 3868  df-int 3903  df-br 4063  df-opab 4125  df-id 4361  df-xp 4702  df-rel 4703  df-cnv 4704  df-co 4705  df-dm 4706  df-iota 5254  df-fun 5296  df-fv 5302  df-riota 5927  df-ov 5977  df-oprab 5978  df-mpo 5979  df-sub 8287  df-inn 9079  df-n0 9338
This theorem is referenced by:  decadd  9599
  Copyright terms: Public domain W3C validator