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

Theorem numsucc 9833
Description: The successor of a decimal integer (with carry). (Contributed by Mario Carneiro, 18-Feb-2014.)
Hypotheses
Ref Expression
numsucc.1 𝑌 ∈ ℕ0
numsucc.2 𝑇 = (𝑌 + 1)
numsucc.3 𝐴 ∈ ℕ0
numsucc.4 (𝐴 + 1) = 𝐵
numsucc.5 𝑁 = ((𝑇 · 𝐴) + 𝑌)
Assertion
Ref Expression
numsucc (𝑁 + 1) = ((𝑇 · 𝐵) + 0)

Proof of Theorem numsucc
StepHypRef Expression
1 numsucc.2 . . . . . . 7 𝑇 = (𝑌 + 1)
2 numsucc.1 . . . . . . . 8 𝑌 ∈ ℕ0
3 1nn0 9591 . . . . . . . 8 1 ∈ ℕ0
42, 3nn0addcli 9612 . . . . . . 7 (𝑌 + 1) ∈ ℕ0
51, 4eqeltri 2311 . . . . . 6 𝑇 ∈ ℕ0
65nn0cni 9587 . . . . 5 𝑇 ∈ ℂ
76mulridi 8335 . . . 4 (𝑇 · 1) = 𝑇
87oveq2i 6099 . . 3 ((𝑇 · 𝐴) + (𝑇 · 1)) = ((𝑇 · 𝐴) + 𝑇)
9 numsucc.3 . . . . 5 𝐴 ∈ ℕ0
109nn0cni 9587 . . . 4 𝐴 ∈ ℂ
11 ax-1cn 8279 . . . 4 1 ∈ ℂ
126, 10, 11adddii 8343 . . 3 (𝑇 · (𝐴 + 1)) = ((𝑇 · 𝐴) + (𝑇 · 1))
131eqcomi 2242 . . . 4 (𝑌 + 1) = 𝑇
14 numsucc.5 . . . 4 𝑁 = ((𝑇 · 𝐴) + 𝑌)
155, 9, 2, 13, 14numsuc 9802 . . 3 (𝑁 + 1) = ((𝑇 · 𝐴) + 𝑇)
168, 12, 153eqtr4ri 2270 . 2 (𝑁 + 1) = (𝑇 · (𝐴 + 1))
17 numsucc.4 . . 3 (𝐴 + 1) = 𝐵
1817oveq2i 6099 . 2 (𝑇 · (𝐴 + 1)) = (𝑇 · 𝐵)
199, 3nn0addcli 9612 . . . 4 (𝐴 + 1) ∈ ℕ0
2017, 19eqeltrri 2312 . . 3 𝐵 ∈ ℕ0
215, 20num0u 9799 . 2 (𝑇 · 𝐵) = ((𝑇 · 𝐵) + 0)
2216, 18, 213eqtri 2263 1 (𝑁 + 1) = ((𝑇 · 𝐵) + 0)
Colors of variables:    wff set class
This proof depends on syntax axioms:   = wceq 1402   ∈ wcel 2209  (class class class)co 6088  0cc0 8186  1c1 8187   + caddc 8189   · cmul 8191  ℕ0cn0 9575
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 623  ax-in2 624  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-14 2212  ax-ext 2220  ax-sep 4251  ax-pow 4313  ax-pr 4348  ax-setind 4686  ax-cnex 8277  ax-resscn 8278  ax-1cn 8279  ax-1re 8280  ax-icn 8281  ax-addcl 8282  ax-addrcl 8283  ax-mulcl 8284  ax-addcom 8286  ax-mulcom 8287  ax-addass 8288  ax-mulass 8289  ax-distr 8290  ax-i2m1 8291  ax-1rid 8293  ax-0id 8294  ax-rnegex 8295  ax-cnre 8297
This proof depends on definitions:  df-bi 117  df-3an 1011  df-tru 1405  df-fal 1408  df-nf 1514  df-sb 1816  df-eu 2089  df-mo 2090  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ne 2421  df-ral 2533  df-rex 2534  df-reu 2535  df-rab 2537  df-v 2823  df-sbc 3052  df-dif 3222  df-un 3224  df-in 3226  df-ss 3233  df-pw 3690  df-sn 3715  df-pr 3716  df-op 3718  df-uni 3936  df-int 3971  df-br 4132  df-opab 4194  df-id 4440  df-xp 4782  df-rel 4783  df-cnv 4784  df-co 4785  df-dm 4786  df-iota 5340  df-fun 5382  df-fv 5388  df-riota 6041  df-ov 6091  df-oprab 6092  df-mpo 6093  df-sub 8507  df-inn 9315  df-n0 9576
This theorem is used by:  decsucc  9834
  Copyright terms: Public domain W3C validator