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

Theorem nnmass 8530
Description: Multiplication of natural numbers is associative. Theorem 4K(4) of [Enderton] p. 81. (Contributed by NM, 20-Sep-1995.) (Revised by Mario Carneiro, 15-Nov-2014.)
Assertion
Ref Expression
nnmass ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶)))

Proof of Theorem nnmass
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 7349 . . . . . 6 (𝑥 = 𝐶 → ((𝐴 ·o 𝐵) ·o 𝑥) = ((𝐴 ·o 𝐵) ·o 𝐶))
2 oveq2 7349 . . . . . . 7 (𝑥 = 𝐶 → (𝐵 ·o 𝑥) = (𝐵 ·o 𝐶))
32oveq2d 7357 . . . . . 6 (𝑥 = 𝐶 → (𝐴 ·o (𝐵 ·o 𝑥)) = (𝐴 ·o (𝐵 ·o 𝐶)))
41, 3eqeq12d 2753 . . . . 5 (𝑥 = 𝐶 → (((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥)) ↔ ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶))))
54imbi2d 341 . . . 4 (𝑥 = 𝐶 → (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥))) ↔ ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶)))))
6 oveq2 7349 . . . . . 6 (𝑥 = ∅ → ((𝐴 ·o 𝐵) ·o 𝑥) = ((𝐴 ·o 𝐵) ·o ∅))
7 oveq2 7349 . . . . . . 7 (𝑥 = ∅ → (𝐵 ·o 𝑥) = (𝐵 ·o ∅))
87oveq2d 7357 . . . . . 6 (𝑥 = ∅ → (𝐴 ·o (𝐵 ·o 𝑥)) = (𝐴 ·o (𝐵 ·o ∅)))
96, 8eqeq12d 2753 . . . . 5 (𝑥 = ∅ → (((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥)) ↔ ((𝐴 ·o 𝐵) ·o ∅) = (𝐴 ·o (𝐵 ·o ∅))))
10 oveq2 7349 . . . . . 6 (𝑥 = 𝑦 → ((𝐴 ·o 𝐵) ·o 𝑥) = ((𝐴 ·o 𝐵) ·o 𝑦))
11 oveq2 7349 . . . . . . 7 (𝑥 = 𝑦 → (𝐵 ·o 𝑥) = (𝐵 ·o 𝑦))
1211oveq2d 7357 . . . . . 6 (𝑥 = 𝑦 → (𝐴 ·o (𝐵 ·o 𝑥)) = (𝐴 ·o (𝐵 ·o 𝑦)))
1310, 12eqeq12d 2753 . . . . 5 (𝑥 = 𝑦 → (((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥)) ↔ ((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦))))
14 oveq2 7349 . . . . . 6 (𝑥 = suc 𝑦 → ((𝐴 ·o 𝐵) ·o 𝑥) = ((𝐴 ·o 𝐵) ·o suc 𝑦))
15 oveq2 7349 . . . . . . 7 (𝑥 = suc 𝑦 → (𝐵 ·o 𝑥) = (𝐵 ·o suc 𝑦))
1615oveq2d 7357 . . . . . 6 (𝑥 = suc 𝑦 → (𝐴 ·o (𝐵 ·o 𝑥)) = (𝐴 ·o (𝐵 ·o suc 𝑦)))
1714, 16eqeq12d 2753 . . . . 5 (𝑥 = suc 𝑦 → (((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥)) ↔ ((𝐴 ·o 𝐵) ·o suc 𝑦) = (𝐴 ·o (𝐵 ·o suc 𝑦))))
18 nnmcl 8518 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o 𝐵) ∈ ω)
19 nnm0 8511 . . . . . . 7 ((𝐴 ·o 𝐵) ∈ ω → ((𝐴 ·o 𝐵) ·o ∅) = ∅)
2018, 19syl 17 . . . . . 6 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o ∅) = ∅)
21 nnm0 8511 . . . . . . . 8 (𝐵 ∈ ω → (𝐵 ·o ∅) = ∅)
2221oveq2d 7357 . . . . . . 7 (𝐵 ∈ ω → (𝐴 ·o (𝐵 ·o ∅)) = (𝐴 ·o ∅))
23 nnm0 8511 . . . . . . 7 (𝐴 ∈ ω → (𝐴 ·o ∅) = ∅)
2422, 23sylan9eqr 2799 . . . . . 6 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o (𝐵 ·o ∅)) = ∅)
2520, 24eqtr4d 2780 . . . . 5 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o ∅) = (𝐴 ·o (𝐵 ·o ∅)))
26 oveq1 7348 . . . . . . . . 9 (((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦)) → (((𝐴 ·o 𝐵) ·o 𝑦) +o (𝐴 ·o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))
27 nnmsuc 8513 . . . . . . . . . . 11 (((𝐴 ·o 𝐵) ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (((𝐴 ·o 𝐵) ·o 𝑦) +o (𝐴 ·o 𝐵)))
2818, 27stoic3 1778 . . . . . . . . . 10 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (((𝐴 ·o 𝐵) ·o 𝑦) +o (𝐴 ·o 𝐵)))
29 nnmsuc 8513 . . . . . . . . . . . . 13 ((𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 ·o suc 𝑦) = ((𝐵 ·o 𝑦) +o 𝐵))
30293adant1 1130 . . . . . . . . . . . 12 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 ·o suc 𝑦) = ((𝐵 ·o 𝑦) +o 𝐵))
3130oveq2d 7357 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o (𝐵 ·o suc 𝑦)) = (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)))
32 nnmcl 8518 . . . . . . . . . . . . . . . . 17 ((𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 ·o 𝑦) ∈ ω)
33 nndi 8529 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ω ∧ (𝐵 ·o 𝑦) ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))
3432, 33syl3an2 1164 . . . . . . . . . . . . . . . 16 ((𝐴 ∈ ω ∧ (𝐵 ∈ ω ∧ 𝑦 ∈ ω) ∧ 𝐵 ∈ ω) → (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))
35343exp 1119 . . . . . . . . . . . . . . 15 (𝐴 ∈ ω → ((𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 ∈ ω → (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))))
3635expd 417 . . . . . . . . . . . . . 14 (𝐴 ∈ ω → (𝐵 ∈ ω → (𝑦 ∈ ω → (𝐵 ∈ ω → (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵))))))
3736com34 91 . . . . . . . . . . . . 13 (𝐴 ∈ ω → (𝐵 ∈ ω → (𝐵 ∈ ω → (𝑦 ∈ ω → (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵))))))
3837pm2.43d 53 . . . . . . . . . . . 12 (𝐴 ∈ ω → (𝐵 ∈ ω → (𝑦 ∈ ω → (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))))
39383imp 1111 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))
4031, 39eqtrd 2777 . . . . . . . . . 10 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o (𝐵 ·o suc 𝑦)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))
4128, 40eqeq12d 2753 . . . . . . . . 9 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·o 𝐵) ·o suc 𝑦) = (𝐴 ·o (𝐵 ·o suc 𝑦)) ↔ (((𝐴 ·o 𝐵) ·o 𝑦) +o (𝐴 ·o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵))))
4226, 41syl5ibr 246 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦)) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (𝐴 ·o (𝐵 ·o suc 𝑦))))
43423exp 1119 . . . . . . 7 (𝐴 ∈ ω → (𝐵 ∈ ω → (𝑦 ∈ ω → (((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦)) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (𝐴 ·o (𝐵 ·o suc 𝑦))))))
4443com3r 87 . . . . . 6 (𝑦 ∈ ω → (𝐴 ∈ ω → (𝐵 ∈ ω → (((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦)) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (𝐴 ·o (𝐵 ·o suc 𝑦))))))
4544impd 412 . . . . 5 (𝑦 ∈ ω → ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦)) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (𝐴 ·o (𝐵 ·o suc 𝑦)))))
469, 13, 17, 25, 45finds2 7819 . . . 4 (𝑥 ∈ ω → ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥))))
475, 46vtoclga 3525 . . 3 (𝐶 ∈ ω → ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶))))
4847expdcom 416 . 2 (𝐴 ∈ ω → (𝐵 ∈ ω → (𝐶 ∈ ω → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶)))))
49483imp 1111 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 397  w3a 1087   = wceq 1541  wcel 2106  c0 4273  suc csuc 6308  (class class class)co 7341  ωcom 7784   +o coa 8368   ·o comu 8369
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2708  ax-sep 5247  ax-nul 5254  ax-pr 5376  ax-un 7654
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 846  df-3or 1088  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2815  df-nfc 2887  df-ne 2942  df-ral 3063  df-rex 3072  df-reu 3351  df-rab 3405  df-v 3444  df-sbc 3731  df-csb 3847  df-dif 3904  df-un 3906  df-in 3908  df-ss 3918  df-pss 3920  df-nul 4274  df-if 4478  df-pw 4553  df-sn 4578  df-pr 4580  df-op 4584  df-uni 4857  df-iun 4947  df-br 5097  df-opab 5159  df-mpt 5180  df-tr 5214  df-id 5522  df-eprel 5528  df-po 5536  df-so 5537  df-fr 5579  df-we 5581  df-xp 5630  df-rel 5631  df-cnv 5632  df-co 5633  df-dm 5634  df-rn 5635  df-res 5636  df-ima 5637  df-pred 6242  df-ord 6309  df-on 6310  df-lim 6311  df-suc 6312  df-iota 6435  df-fun 6485  df-fn 6486  df-f 6487  df-f1 6488  df-fo 6489  df-f1o 6490  df-fv 6491  df-ov 7344  df-oprab 7345  df-mpo 7346  df-om 7785  df-2nd 7904  df-frecs 8171  df-wrecs 8202  df-recs 8276  df-rdg 8315  df-oadd 8375  df-omul 8376
This theorem is referenced by:  mulasspi  10758
  Copyright terms: Public domain W3C validator