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

Theorem nnmsucr 7859
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 𝐴 ·𝑜 𝐵) = ((𝐴 ·𝑜 𝐵) +𝑜 𝐵))

Proof of Theorem nnmsucr
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 6801 . . . . 5 (𝑥 = 𝐵 → (suc 𝐴 ·𝑜 𝑥) = (suc 𝐴 ·𝑜 𝐵))
2 oveq2 6801 . . . . . 6 (𝑥 = 𝐵 → (𝐴 ·𝑜 𝑥) = (𝐴 ·𝑜 𝐵))
3 id 22 . . . . . 6 (𝑥 = 𝐵𝑥 = 𝐵)
42, 3oveq12d 6811 . . . . 5 (𝑥 = 𝐵 → ((𝐴 ·𝑜 𝑥) +𝑜 𝑥) = ((𝐴 ·𝑜 𝐵) +𝑜 𝐵))
51, 4eqeq12d 2786 . . . 4 (𝑥 = 𝐵 → ((suc 𝐴 ·𝑜 𝑥) = ((𝐴 ·𝑜 𝑥) +𝑜 𝑥) ↔ (suc 𝐴 ·𝑜 𝐵) = ((𝐴 ·𝑜 𝐵) +𝑜 𝐵)))
65imbi2d 329 . . 3 (𝑥 = 𝐵 → ((𝐴 ∈ ω → (suc 𝐴 ·𝑜 𝑥) = ((𝐴 ·𝑜 𝑥) +𝑜 𝑥)) ↔ (𝐴 ∈ ω → (suc 𝐴 ·𝑜 𝐵) = ((𝐴 ·𝑜 𝐵) +𝑜 𝐵))))
7 oveq2 6801 . . . . 5 (𝑥 = ∅ → (suc 𝐴 ·𝑜 𝑥) = (suc 𝐴 ·𝑜 ∅))
8 oveq2 6801 . . . . . 6 (𝑥 = ∅ → (𝐴 ·𝑜 𝑥) = (𝐴 ·𝑜 ∅))
9 id 22 . . . . . 6 (𝑥 = ∅ → 𝑥 = ∅)
108, 9oveq12d 6811 . . . . 5 (𝑥 = ∅ → ((𝐴 ·𝑜 𝑥) +𝑜 𝑥) = ((𝐴 ·𝑜 ∅) +𝑜 ∅))
117, 10eqeq12d 2786 . . . 4 (𝑥 = ∅ → ((suc 𝐴 ·𝑜 𝑥) = ((𝐴 ·𝑜 𝑥) +𝑜 𝑥) ↔ (suc 𝐴 ·𝑜 ∅) = ((𝐴 ·𝑜 ∅) +𝑜 ∅)))
12 oveq2 6801 . . . . 5 (𝑥 = 𝑦 → (suc 𝐴 ·𝑜 𝑥) = (suc 𝐴 ·𝑜 𝑦))
13 oveq2 6801 . . . . . 6 (𝑥 = 𝑦 → (𝐴 ·𝑜 𝑥) = (𝐴 ·𝑜 𝑦))
14 id 22 . . . . . 6 (𝑥 = 𝑦𝑥 = 𝑦)
1513, 14oveq12d 6811 . . . . 5 (𝑥 = 𝑦 → ((𝐴 ·𝑜 𝑥) +𝑜 𝑥) = ((𝐴 ·𝑜 𝑦) +𝑜 𝑦))
1612, 15eqeq12d 2786 . . . 4 (𝑥 = 𝑦 → ((suc 𝐴 ·𝑜 𝑥) = ((𝐴 ·𝑜 𝑥) +𝑜 𝑥) ↔ (suc 𝐴 ·𝑜 𝑦) = ((𝐴 ·𝑜 𝑦) +𝑜 𝑦)))
17 oveq2 6801 . . . . 5 (𝑥 = suc 𝑦 → (suc 𝐴 ·𝑜 𝑥) = (suc 𝐴 ·𝑜 suc 𝑦))
18 oveq2 6801 . . . . . 6 (𝑥 = suc 𝑦 → (𝐴 ·𝑜 𝑥) = (𝐴 ·𝑜 suc 𝑦))
19 id 22 . . . . . 6 (𝑥 = suc 𝑦𝑥 = suc 𝑦)
2018, 19oveq12d 6811 . . . . 5 (𝑥 = suc 𝑦 → ((𝐴 ·𝑜 𝑥) +𝑜 𝑥) = ((𝐴 ·𝑜 suc 𝑦) +𝑜 suc 𝑦))
2117, 20eqeq12d 2786 . . . 4 (𝑥 = suc 𝑦 → ((suc 𝐴 ·𝑜 𝑥) = ((𝐴 ·𝑜 𝑥) +𝑜 𝑥) ↔ (suc 𝐴 ·𝑜 suc 𝑦) = ((𝐴 ·𝑜 suc 𝑦) +𝑜 suc 𝑦)))
22 peano2 7233 . . . . . . 7 (𝐴 ∈ ω → suc 𝐴 ∈ ω)
23 nnm0 7839 . . . . . . 7 (suc 𝐴 ∈ ω → (suc 𝐴 ·𝑜 ∅) = ∅)
2422, 23syl 17 . . . . . 6 (𝐴 ∈ ω → (suc 𝐴 ·𝑜 ∅) = ∅)
25 nnm0 7839 . . . . . 6 (𝐴 ∈ ω → (𝐴 ·𝑜 ∅) = ∅)
2624, 25eqtr4d 2808 . . . . 5 (𝐴 ∈ ω → (suc 𝐴 ·𝑜 ∅) = (𝐴 ·𝑜 ∅))
27 peano1 7232 . . . . . . 7 ∅ ∈ ω
28 nnmcl 7846 . . . . . . 7 ((𝐴 ∈ ω ∧ ∅ ∈ ω) → (𝐴 ·𝑜 ∅) ∈ ω)
2927, 28mpan2 671 . . . . . 6 (𝐴 ∈ ω → (𝐴 ·𝑜 ∅) ∈ ω)
30 nna0 7838 . . . . . 6 ((𝐴 ·𝑜 ∅) ∈ ω → ((𝐴 ·𝑜 ∅) +𝑜 ∅) = (𝐴 ·𝑜 ∅))
3129, 30syl 17 . . . . 5 (𝐴 ∈ ω → ((𝐴 ·𝑜 ∅) +𝑜 ∅) = (𝐴 ·𝑜 ∅))
3226, 31eqtr4d 2808 . . . 4 (𝐴 ∈ ω → (suc 𝐴 ·𝑜 ∅) = ((𝐴 ·𝑜 ∅) +𝑜 ∅))
33 oveq1 6800 . . . . . 6 ((suc 𝐴 ·𝑜 𝑦) = ((𝐴 ·𝑜 𝑦) +𝑜 𝑦) → ((suc 𝐴 ·𝑜 𝑦) +𝑜 suc 𝐴) = (((𝐴 ·𝑜 𝑦) +𝑜 𝑦) +𝑜 suc 𝐴))
34 peano2b 7228 . . . . . . . 8 (𝐴 ∈ ω ↔ suc 𝐴 ∈ ω)
35 nnmsuc 7841 . . . . . . . 8 ((suc 𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (suc 𝐴 ·𝑜 suc 𝑦) = ((suc 𝐴 ·𝑜 𝑦) +𝑜 suc 𝐴))
3634, 35sylanb 570 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (suc 𝐴 ·𝑜 suc 𝑦) = ((suc 𝐴 ·𝑜 𝑦) +𝑜 suc 𝐴))
37 nnmcl 7846 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·𝑜 𝑦) ∈ ω)
38 peano2b 7228 . . . . . . . . . . . 12 (𝑦 ∈ ω ↔ suc 𝑦 ∈ ω)
39 nnaass 7856 . . . . . . . . . . . 12 (((𝐴 ·𝑜 𝑦) ∈ ω ∧ 𝐴 ∈ ω ∧ suc 𝑦 ∈ ω) → (((𝐴 ·𝑜 𝑦) +𝑜 𝐴) +𝑜 suc 𝑦) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝐴 +𝑜 suc 𝑦)))
4038, 39syl3an3b 1511 . . . . . . . . . . 11 (((𝐴 ·𝑜 𝑦) ∈ ω ∧ 𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·𝑜 𝑦) +𝑜 𝐴) +𝑜 suc 𝑦) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝐴 +𝑜 suc 𝑦)))
4137, 40syl3an1 1166 . . . . . . . . . 10 (((𝐴 ∈ ω ∧ 𝑦 ∈ ω) ∧ 𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·𝑜 𝑦) +𝑜 𝐴) +𝑜 suc 𝑦) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝐴 +𝑜 suc 𝑦)))
42413expb 1113 . . . . . . . . 9 (((𝐴 ∈ ω ∧ 𝑦 ∈ ω) ∧ (𝐴 ∈ ω ∧ 𝑦 ∈ ω)) → (((𝐴 ·𝑜 𝑦) +𝑜 𝐴) +𝑜 suc 𝑦) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝐴 +𝑜 suc 𝑦)))
4342anidms 556 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·𝑜 𝑦) +𝑜 𝐴) +𝑜 suc 𝑦) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝐴 +𝑜 suc 𝑦)))
44 nnmsuc 7841 . . . . . . . . 9 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·𝑜 suc 𝑦) = ((𝐴 ·𝑜 𝑦) +𝑜 𝐴))
4544oveq1d 6808 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·𝑜 suc 𝑦) +𝑜 suc 𝑦) = (((𝐴 ·𝑜 𝑦) +𝑜 𝐴) +𝑜 suc 𝑦))
46 nnaass 7856 . . . . . . . . . . . . . 14 (((𝐴 ·𝑜 𝑦) ∈ ω ∧ 𝑦 ∈ ω ∧ suc 𝐴 ∈ ω) → (((𝐴 ·𝑜 𝑦) +𝑜 𝑦) +𝑜 suc 𝐴) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝑦 +𝑜 suc 𝐴)))
4734, 46syl3an3b 1511 . . . . . . . . . . . . 13 (((𝐴 ·𝑜 𝑦) ∈ ω ∧ 𝑦 ∈ ω ∧ 𝐴 ∈ ω) → (((𝐴 ·𝑜 𝑦) +𝑜 𝑦) +𝑜 suc 𝐴) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝑦 +𝑜 suc 𝐴)))
4837, 47syl3an1 1166 . . . . . . . . . . . 12 (((𝐴 ∈ ω ∧ 𝑦 ∈ ω) ∧ 𝑦 ∈ ω ∧ 𝐴 ∈ ω) → (((𝐴 ·𝑜 𝑦) +𝑜 𝑦) +𝑜 suc 𝐴) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝑦 +𝑜 suc 𝐴)))
49483expb 1113 . . . . . . . . . . 11 (((𝐴 ∈ ω ∧ 𝑦 ∈ ω) ∧ (𝑦 ∈ ω ∧ 𝐴 ∈ ω)) → (((𝐴 ·𝑜 𝑦) +𝑜 𝑦) +𝑜 suc 𝐴) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝑦 +𝑜 suc 𝐴)))
5049an42s 640 . . . . . . . . . 10 (((𝐴 ∈ ω ∧ 𝑦 ∈ ω) ∧ (𝐴 ∈ ω ∧ 𝑦 ∈ ω)) → (((𝐴 ·𝑜 𝑦) +𝑜 𝑦) +𝑜 suc 𝐴) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝑦 +𝑜 suc 𝐴)))
5150anidms 556 . . . . . . . . 9 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·𝑜 𝑦) +𝑜 𝑦) +𝑜 suc 𝐴) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝑦 +𝑜 suc 𝐴)))
52 nnacom 7851 . . . . . . . . . . . 12 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 +𝑜 𝑦) = (𝑦 +𝑜 𝐴))
53 suceq 5933 . . . . . . . . . . . 12 ((𝐴 +𝑜 𝑦) = (𝑦 +𝑜 𝐴) → suc (𝐴 +𝑜 𝑦) = suc (𝑦 +𝑜 𝐴))
5452, 53syl 17 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → suc (𝐴 +𝑜 𝑦) = suc (𝑦 +𝑜 𝐴))
55 nnasuc 7840 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 +𝑜 suc 𝑦) = suc (𝐴 +𝑜 𝑦))
56 nnasuc 7840 . . . . . . . . . . . 12 ((𝑦 ∈ ω ∧ 𝐴 ∈ ω) → (𝑦 +𝑜 suc 𝐴) = suc (𝑦 +𝑜 𝐴))
5756ancoms 455 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝑦 +𝑜 suc 𝐴) = suc (𝑦 +𝑜 𝐴))
5854, 55, 573eqtr4d 2815 . . . . . . . . . 10 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 +𝑜 suc 𝑦) = (𝑦 +𝑜 suc 𝐴))
5958oveq2d 6809 . . . . . . . . 9 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·𝑜 𝑦) +𝑜 (𝐴 +𝑜 suc 𝑦)) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝑦 +𝑜 suc 𝐴)))
6051, 59eqtr4d 2808 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·𝑜 𝑦) +𝑜 𝑦) +𝑜 suc 𝐴) = ((𝐴 ·𝑜 𝑦) +𝑜 (𝐴 +𝑜 suc 𝑦)))
6143, 45, 603eqtr4d 2815 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·𝑜 suc 𝑦) +𝑜 suc 𝑦) = (((𝐴 ·𝑜 𝑦) +𝑜 𝑦) +𝑜 suc 𝐴))
6236, 61eqeq12d 2786 . . . . . 6 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → ((suc 𝐴 ·𝑜 suc 𝑦) = ((𝐴 ·𝑜 suc 𝑦) +𝑜 suc 𝑦) ↔ ((suc 𝐴 ·𝑜 𝑦) +𝑜 suc 𝐴) = (((𝐴 ·𝑜 𝑦) +𝑜 𝑦) +𝑜 suc 𝐴)))
6333, 62syl5ibr 236 . . . . 5 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → ((suc 𝐴 ·𝑜 𝑦) = ((𝐴 ·𝑜 𝑦) +𝑜 𝑦) → (suc 𝐴 ·𝑜 suc 𝑦) = ((𝐴 ·𝑜 suc 𝑦) +𝑜 suc 𝑦)))
6463expcom 398 . . . 4 (𝑦 ∈ ω → (𝐴 ∈ ω → ((suc 𝐴 ·𝑜 𝑦) = ((𝐴 ·𝑜 𝑦) +𝑜 𝑦) → (suc 𝐴 ·𝑜 suc 𝑦) = ((𝐴 ·𝑜 suc 𝑦) +𝑜 suc 𝑦))))
6511, 16, 21, 32, 64finds2 7241 . . 3 (𝑥 ∈ ω → (𝐴 ∈ ω → (suc 𝐴 ·𝑜 𝑥) = ((𝐴 ·𝑜 𝑥) +𝑜 𝑥)))
666, 65vtoclga 3423 . 2 (𝐵 ∈ ω → (𝐴 ∈ ω → (suc 𝐴 ·𝑜 𝐵) = ((𝐴 ·𝑜 𝐵) +𝑜 𝐵)))
6766impcom 394 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (suc 𝐴 ·𝑜 𝐵) = ((𝐴 ·𝑜 𝐵) +𝑜 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 382   = wceq 1631  wcel 2145  c0 4063  suc csuc 5868  (class class class)co 6793  ωcom 7212   +𝑜 coa 7710   ·𝑜 comu 7711
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1870  ax-4 1885  ax-5 1991  ax-6 2057  ax-7 2093  ax-8 2147  ax-9 2154  ax-10 2174  ax-11 2190  ax-12 2203  ax-13 2408  ax-ext 2751  ax-sep 4915  ax-nul 4923  ax-pow 4974  ax-pr 5034  ax-un 7096
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 835  df-3or 1072  df-3an 1073  df-tru 1634  df-ex 1853  df-nf 1858  df-sb 2050  df-eu 2622  df-mo 2623  df-clab 2758  df-cleq 2764  df-clel 2767  df-nfc 2902  df-ne 2944  df-ral 3066  df-rex 3067  df-reu 3068  df-rab 3070  df-v 3353  df-sbc 3588  df-csb 3683  df-dif 3726  df-un 3728  df-in 3730  df-ss 3737  df-pss 3739  df-nul 4064  df-if 4226  df-pw 4299  df-sn 4317  df-pr 4319  df-tp 4321  df-op 4323  df-uni 4575  df-iun 4656  df-br 4787  df-opab 4847  df-mpt 4864  df-tr 4887  df-id 5157  df-eprel 5162  df-po 5170  df-so 5171  df-fr 5208  df-we 5210  df-xp 5255  df-rel 5256  df-cnv 5257  df-co 5258  df-dm 5259  df-rn 5260  df-res 5261  df-ima 5262  df-pred 5823  df-ord 5869  df-on 5870  df-lim 5871  df-suc 5872  df-iota 5994  df-fun 6033  df-fn 6034  df-f 6035  df-f1 6036  df-fo 6037  df-f1o 6038  df-fv 6039  df-ov 6796  df-oprab 6797  df-mpt2 6798  df-om 7213  df-wrecs 7559  df-recs 7621  df-rdg 7659  df-oadd 7717  df-omul 7718
This theorem is referenced by:  nnmcom  7860
  Copyright terms: Public domain W3C validator