MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  nnmsucr Structured version   Visualization version   GIF version

Theorem nnmsucr 8353
Description: Multiplication with successor. Exercise 16 of [Enderton] p. 82. (Contributed by NM, 21-Sep-1995.) (Proof shortened by Andrew Salmon, 22-Oct-2011.)
Assertion
Ref Expression
nnmsucr ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (suc 𝐴 ·o 𝐵) = ((𝐴 ·o 𝐵) +o 𝐵))

Proof of Theorem nnmsucr
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 7221 . . . . 5 (𝑥 = 𝐵 → (suc 𝐴 ·o 𝑥) = (suc 𝐴 ·o 𝐵))
2 oveq2 7221 . . . . . 6 (𝑥 = 𝐵 → (𝐴 ·o 𝑥) = (𝐴 ·o 𝐵))
3 id 22 . . . . . 6 (𝑥 = 𝐵𝑥 = 𝐵)
42, 3oveq12d 7231 . . . . 5 (𝑥 = 𝐵 → ((𝐴 ·o 𝑥) +o 𝑥) = ((𝐴 ·o 𝐵) +o 𝐵))
51, 4eqeq12d 2753 . . . 4 (𝑥 = 𝐵 → ((suc 𝐴 ·o 𝑥) = ((𝐴 ·o 𝑥) +o 𝑥) ↔ (suc 𝐴 ·o 𝐵) = ((𝐴 ·o 𝐵) +o 𝐵)))
65imbi2d 344 . . 3 (𝑥 = 𝐵 → ((𝐴 ∈ ω → (suc 𝐴 ·o 𝑥) = ((𝐴 ·o 𝑥) +o 𝑥)) ↔ (𝐴 ∈ ω → (suc 𝐴 ·o 𝐵) = ((𝐴 ·o 𝐵) +o 𝐵))))
7 oveq2 7221 . . . . 5 (𝑥 = ∅ → (suc 𝐴 ·o 𝑥) = (suc 𝐴 ·o ∅))
8 oveq2 7221 . . . . . 6 (𝑥 = ∅ → (𝐴 ·o 𝑥) = (𝐴 ·o ∅))
9 id 22 . . . . . 6 (𝑥 = ∅ → 𝑥 = ∅)
108, 9oveq12d 7231 . . . . 5 (𝑥 = ∅ → ((𝐴 ·o 𝑥) +o 𝑥) = ((𝐴 ·o ∅) +o ∅))
117, 10eqeq12d 2753 . . . 4 (𝑥 = ∅ → ((suc 𝐴 ·o 𝑥) = ((𝐴 ·o 𝑥) +o 𝑥) ↔ (suc 𝐴 ·o ∅) = ((𝐴 ·o ∅) +o ∅)))
12 oveq2 7221 . . . . 5 (𝑥 = 𝑦 → (suc 𝐴 ·o 𝑥) = (suc 𝐴 ·o 𝑦))
13 oveq2 7221 . . . . . 6 (𝑥 = 𝑦 → (𝐴 ·o 𝑥) = (𝐴 ·o 𝑦))
14 id 22 . . . . . 6 (𝑥 = 𝑦𝑥 = 𝑦)
1513, 14oveq12d 7231 . . . . 5 (𝑥 = 𝑦 → ((𝐴 ·o 𝑥) +o 𝑥) = ((𝐴 ·o 𝑦) +o 𝑦))
1612, 15eqeq12d 2753 . . . 4 (𝑥 = 𝑦 → ((suc 𝐴 ·o 𝑥) = ((𝐴 ·o 𝑥) +o 𝑥) ↔ (suc 𝐴 ·o 𝑦) = ((𝐴 ·o 𝑦) +o 𝑦)))
17 oveq2 7221 . . . . 5 (𝑥 = suc 𝑦 → (suc 𝐴 ·o 𝑥) = (suc 𝐴 ·o suc 𝑦))
18 oveq2 7221 . . . . . 6 (𝑥 = suc 𝑦 → (𝐴 ·o 𝑥) = (𝐴 ·o suc 𝑦))
19 id 22 . . . . . 6 (𝑥 = suc 𝑦𝑥 = suc 𝑦)
2018, 19oveq12d 7231 . . . . 5 (𝑥 = suc 𝑦 → ((𝐴 ·o 𝑥) +o 𝑥) = ((𝐴 ·o suc 𝑦) +o suc 𝑦))
2117, 20eqeq12d 2753 . . . 4 (𝑥 = suc 𝑦 → ((suc 𝐴 ·o 𝑥) = ((𝐴 ·o 𝑥) +o 𝑥) ↔ (suc 𝐴 ·o suc 𝑦) = ((𝐴 ·o suc 𝑦) +o suc 𝑦)))
22 peano2 7668 . . . . . . 7 (𝐴 ∈ ω → suc 𝐴 ∈ ω)
23 nnm0 8333 . . . . . . 7 (suc 𝐴 ∈ ω → (suc 𝐴 ·o ∅) = ∅)
2422, 23syl 17 . . . . . 6 (𝐴 ∈ ω → (suc 𝐴 ·o ∅) = ∅)
25 nnm0 8333 . . . . . 6 (𝐴 ∈ ω → (𝐴 ·o ∅) = ∅)
2624, 25eqtr4d 2780 . . . . 5 (𝐴 ∈ ω → (suc 𝐴 ·o ∅) = (𝐴 ·o ∅))
27 peano1 7667 . . . . . . 7 ∅ ∈ ω
28 nnmcl 8340 . . . . . . 7 ((𝐴 ∈ ω ∧ ∅ ∈ ω) → (𝐴 ·o ∅) ∈ ω)
2927, 28mpan2 691 . . . . . 6 (𝐴 ∈ ω → (𝐴 ·o ∅) ∈ ω)
30 nna0 8332 . . . . . 6 ((𝐴 ·o ∅) ∈ ω → ((𝐴 ·o ∅) +o ∅) = (𝐴 ·o ∅))
3129, 30syl 17 . . . . 5 (𝐴 ∈ ω → ((𝐴 ·o ∅) +o ∅) = (𝐴 ·o ∅))
3226, 31eqtr4d 2780 . . . 4 (𝐴 ∈ ω → (suc 𝐴 ·o ∅) = ((𝐴 ·o ∅) +o ∅))
33 oveq1 7220 . . . . . 6 ((suc 𝐴 ·o 𝑦) = ((𝐴 ·o 𝑦) +o 𝑦) → ((suc 𝐴 ·o 𝑦) +o suc 𝐴) = (((𝐴 ·o 𝑦) +o 𝑦) +o suc 𝐴))
34 peano2b 7661 . . . . . . . 8 (𝐴 ∈ ω ↔ suc 𝐴 ∈ ω)
35 nnmsuc 8335 . . . . . . . 8 ((suc 𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (suc 𝐴 ·o suc 𝑦) = ((suc 𝐴 ·o 𝑦) +o suc 𝐴))
3634, 35sylanb 584 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (suc 𝐴 ·o suc 𝑦) = ((suc 𝐴 ·o 𝑦) +o suc 𝐴))
37 nnmcl 8340 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o 𝑦) ∈ ω)
38 peano2b 7661 . . . . . . . . . . . 12 (𝑦 ∈ ω ↔ suc 𝑦 ∈ ω)
39 nnaass 8350 . . . . . . . . . . . 12 (((𝐴 ·o 𝑦) ∈ ω ∧ 𝐴 ∈ ω ∧ suc 𝑦 ∈ ω) → (((𝐴 ·o 𝑦) +o 𝐴) +o suc 𝑦) = ((𝐴 ·o 𝑦) +o (𝐴 +o suc 𝑦)))
4038, 39syl3an3b 1407 . . . . . . . . . . 11 (((𝐴 ·o 𝑦) ∈ ω ∧ 𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·o 𝑦) +o 𝐴) +o suc 𝑦) = ((𝐴 ·o 𝑦) +o (𝐴 +o suc 𝑦)))
4137, 40syl3an1 1165 . . . . . . . . . 10 (((𝐴 ∈ ω ∧ 𝑦 ∈ ω) ∧ 𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·o 𝑦) +o 𝐴) +o suc 𝑦) = ((𝐴 ·o 𝑦) +o (𝐴 +o suc 𝑦)))
42413expb 1122 . . . . . . . . 9 (((𝐴 ∈ ω ∧ 𝑦 ∈ ω) ∧ (𝐴 ∈ ω ∧ 𝑦 ∈ ω)) → (((𝐴 ·o 𝑦) +o 𝐴) +o suc 𝑦) = ((𝐴 ·o 𝑦) +o (𝐴 +o suc 𝑦)))
4342anidms 570 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·o 𝑦) +o 𝐴) +o suc 𝑦) = ((𝐴 ·o 𝑦) +o (𝐴 +o suc 𝑦)))
44 nnmsuc 8335 . . . . . . . . 9 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o suc 𝑦) = ((𝐴 ·o 𝑦) +o 𝐴))
4544oveq1d 7228 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o suc 𝑦) +o suc 𝑦) = (((𝐴 ·o 𝑦) +o 𝐴) +o suc 𝑦))
46 nnaass 8350 . . . . . . . . . . . . . 14 (((𝐴 ·o 𝑦) ∈ ω ∧ 𝑦 ∈ ω ∧ suc 𝐴 ∈ ω) → (((𝐴 ·o 𝑦) +o 𝑦) +o suc 𝐴) = ((𝐴 ·o 𝑦) +o (𝑦 +o suc 𝐴)))
4734, 46syl3an3b 1407 . . . . . . . . . . . . 13 (((𝐴 ·o 𝑦) ∈ ω ∧ 𝑦 ∈ ω ∧ 𝐴 ∈ ω) → (((𝐴 ·o 𝑦) +o 𝑦) +o suc 𝐴) = ((𝐴 ·o 𝑦) +o (𝑦 +o suc 𝐴)))
4837, 47syl3an1 1165 . . . . . . . . . . . 12 (((𝐴 ∈ ω ∧ 𝑦 ∈ ω) ∧ 𝑦 ∈ ω ∧ 𝐴 ∈ ω) → (((𝐴 ·o 𝑦) +o 𝑦) +o suc 𝐴) = ((𝐴 ·o 𝑦) +o (𝑦 +o suc 𝐴)))
49483expb 1122 . . . . . . . . . . 11 (((𝐴 ∈ ω ∧ 𝑦 ∈ ω) ∧ (𝑦 ∈ ω ∧ 𝐴 ∈ ω)) → (((𝐴 ·o 𝑦) +o 𝑦) +o suc 𝐴) = ((𝐴 ·o 𝑦) +o (𝑦 +o suc 𝐴)))
5049an42s 661 . . . . . . . . . 10 (((𝐴 ∈ ω ∧ 𝑦 ∈ ω) ∧ (𝐴 ∈ ω ∧ 𝑦 ∈ ω)) → (((𝐴 ·o 𝑦) +o 𝑦) +o suc 𝐴) = ((𝐴 ·o 𝑦) +o (𝑦 +o suc 𝐴)))
5150anidms 570 . . . . . . . . 9 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·o 𝑦) +o 𝑦) +o suc 𝐴) = ((𝐴 ·o 𝑦) +o (𝑦 +o suc 𝐴)))
52 nnacom 8345 . . . . . . . . . . . 12 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 +o 𝑦) = (𝑦 +o 𝐴))
53 suceq 6278 . . . . . . . . . . . 12 ((𝐴 +o 𝑦) = (𝑦 +o 𝐴) → suc (𝐴 +o 𝑦) = suc (𝑦 +o 𝐴))
5452, 53syl 17 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → suc (𝐴 +o 𝑦) = suc (𝑦 +o 𝐴))
55 nnasuc 8334 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 +o suc 𝑦) = suc (𝐴 +o 𝑦))
56 nnasuc 8334 . . . . . . . . . . . 12 ((𝑦 ∈ ω ∧ 𝐴 ∈ ω) → (𝑦 +o suc 𝐴) = suc (𝑦 +o 𝐴))
5756ancoms 462 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝑦 +o suc 𝐴) = suc (𝑦 +o 𝐴))
5854, 55, 573eqtr4d 2787 . . . . . . . . . 10 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 +o suc 𝑦) = (𝑦 +o suc 𝐴))
5958oveq2d 7229 . . . . . . . . 9 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o 𝑦) +o (𝐴 +o suc 𝑦)) = ((𝐴 ·o 𝑦) +o (𝑦 +o suc 𝐴)))
6051, 59eqtr4d 2780 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·o 𝑦) +o 𝑦) +o suc 𝐴) = ((𝐴 ·o 𝑦) +o (𝐴 +o suc 𝑦)))
6143, 45, 603eqtr4d 2787 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o suc 𝑦) +o suc 𝑦) = (((𝐴 ·o 𝑦) +o 𝑦) +o suc 𝐴))
6236, 61eqeq12d 2753 . . . . . 6 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → ((suc 𝐴 ·o suc 𝑦) = ((𝐴 ·o suc 𝑦) +o suc 𝑦) ↔ ((suc 𝐴 ·o 𝑦) +o suc 𝐴) = (((𝐴 ·o 𝑦) +o 𝑦) +o suc 𝐴)))
6333, 62syl5ibr 249 . . . . 5 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → ((suc 𝐴 ·o 𝑦) = ((𝐴 ·o 𝑦) +o 𝑦) → (suc 𝐴 ·o suc 𝑦) = ((𝐴 ·o suc 𝑦) +o suc 𝑦)))
6463expcom 417 . . . 4 (𝑦 ∈ ω → (𝐴 ∈ ω → ((suc 𝐴 ·o 𝑦) = ((𝐴 ·o 𝑦) +o 𝑦) → (suc 𝐴 ·o suc 𝑦) = ((𝐴 ·o suc 𝑦) +o suc 𝑦))))
6511, 16, 21, 32, 64finds2 7678 . . 3 (𝑥 ∈ ω → (𝐴 ∈ ω → (suc 𝐴 ·o 𝑥) = ((𝐴 ·o 𝑥) +o 𝑥)))
666, 65vtoclga 3489 . 2 (𝐵 ∈ ω → (𝐴 ∈ ω → (suc 𝐴 ·o 𝐵) = ((𝐴 ·o 𝐵) +o 𝐵)))
6766impcom 411 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (suc 𝐴 ·o 𝐵) = ((𝐴 ·o 𝐵) +o 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399   = wceq 1543  wcel 2110  c0 4237  suc csuc 6215  (class class class)co 7213  ωcom 7644   +o coa 8199   ·o comu 8200
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2708  ax-sep 5192  ax-nul 5199  ax-pr 5322  ax-un 7523
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2816  df-nfc 2886  df-ne 2941  df-ral 3066  df-rex 3067  df-reu 3068  df-rab 3070  df-v 3410  df-sbc 3695  df-csb 3812  df-dif 3869  df-un 3871  df-in 3873  df-ss 3883  df-pss 3885  df-nul 4238  df-if 4440  df-pw 4515  df-sn 4542  df-pr 4544  df-tp 4546  df-op 4548  df-uni 4820  df-iun 4906  df-br 5054  df-opab 5116  df-mpt 5136  df-tr 5162  df-id 5455  df-eprel 5460  df-po 5468  df-so 5469  df-fr 5509  df-we 5511  df-xp 5557  df-rel 5558  df-cnv 5559  df-co 5560  df-dm 5561  df-rn 5562  df-res 5563  df-ima 5564  df-pred 6160  df-ord 6216  df-on 6217  df-lim 6218  df-suc 6219  df-iota 6338  df-fun 6382  df-fn 6383  df-f 6384  df-f1 6385  df-fo 6386  df-f1o 6387  df-fv 6388  df-ov 7216  df-oprab 7217  df-mpo 7218  df-om 7645  df-wrecs 8047  df-recs 8108  df-rdg 8146  df-oadd 8206  df-omul 8207
This theorem is referenced by:  nnmcom  8354
  Copyright terms: Public domain W3C validator