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

Theorem nnmass 8662
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 7439 . . . . . 6 (𝑥 = 𝐶 → ((𝐴 ·o 𝐵) ·o 𝑥) = ((𝐴 ·o 𝐵) ·o 𝐶))
2 oveq2 7439 . . . . . . 7 (𝑥 = 𝐶 → (𝐵 ·o 𝑥) = (𝐵 ·o 𝐶))
32oveq2d 7447 . . . . . 6 (𝑥 = 𝐶 → (𝐴 ·o (𝐵 ·o 𝑥)) = (𝐴 ·o (𝐵 ·o 𝐶)))
41, 3eqeq12d 2753 . . . . 5 (𝑥 = 𝐶 → (((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥)) ↔ ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶))))
54imbi2d 340 . . . 4 (𝑥 = 𝐶 → (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥))) ↔ ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶)))))
6 oveq2 7439 . . . . . 6 (𝑥 = ∅ → ((𝐴 ·o 𝐵) ·o 𝑥) = ((𝐴 ·o 𝐵) ·o ∅))
7 oveq2 7439 . . . . . . 7 (𝑥 = ∅ → (𝐵 ·o 𝑥) = (𝐵 ·o ∅))
87oveq2d 7447 . . . . . 6 (𝑥 = ∅ → (𝐴 ·o (𝐵 ·o 𝑥)) = (𝐴 ·o (𝐵 ·o ∅)))
96, 8eqeq12d 2753 . . . . 5 (𝑥 = ∅ → (((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥)) ↔ ((𝐴 ·o 𝐵) ·o ∅) = (𝐴 ·o (𝐵 ·o ∅))))
10 oveq2 7439 . . . . . 6 (𝑥 = 𝑦 → ((𝐴 ·o 𝐵) ·o 𝑥) = ((𝐴 ·o 𝐵) ·o 𝑦))
11 oveq2 7439 . . . . . . 7 (𝑥 = 𝑦 → (𝐵 ·o 𝑥) = (𝐵 ·o 𝑦))
1211oveq2d 7447 . . . . . 6 (𝑥 = 𝑦 → (𝐴 ·o (𝐵 ·o 𝑥)) = (𝐴 ·o (𝐵 ·o 𝑦)))
1310, 12eqeq12d 2753 . . . . 5 (𝑥 = 𝑦 → (((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥)) ↔ ((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦))))
14 oveq2 7439 . . . . . 6 (𝑥 = suc 𝑦 → ((𝐴 ·o 𝐵) ·o 𝑥) = ((𝐴 ·o 𝐵) ·o suc 𝑦))
15 oveq2 7439 . . . . . . 7 (𝑥 = suc 𝑦 → (𝐵 ·o 𝑥) = (𝐵 ·o suc 𝑦))
1615oveq2d 7447 . . . . . 6 (𝑥 = suc 𝑦 → (𝐴 ·o (𝐵 ·o 𝑥)) = (𝐴 ·o (𝐵 ·o suc 𝑦)))
1714, 16eqeq12d 2753 . . . . 5 (𝑥 = suc 𝑦 → (((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥)) ↔ ((𝐴 ·o 𝐵) ·o suc 𝑦) = (𝐴 ·o (𝐵 ·o suc 𝑦))))
18 nnmcl 8650 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o 𝐵) ∈ ω)
19 nnm0 8643 . . . . . . 7 ((𝐴 ·o 𝐵) ∈ ω → ((𝐴 ·o 𝐵) ·o ∅) = ∅)
2018, 19syl 17 . . . . . 6 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o ∅) = ∅)
21 nnm0 8643 . . . . . . . 8 (𝐵 ∈ ω → (𝐵 ·o ∅) = ∅)
2221oveq2d 7447 . . . . . . 7 (𝐵 ∈ ω → (𝐴 ·o (𝐵 ·o ∅)) = (𝐴 ·o ∅))
23 nnm0 8643 . . . . . . 7 (𝐴 ∈ ω → (𝐴 ·o ∅) = ∅)
2422, 23sylan9eqr 2799 . . . . . 6 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o (𝐵 ·o ∅)) = ∅)
2520, 24eqtr4d 2780 . . . . 5 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o ∅) = (𝐴 ·o (𝐵 ·o ∅)))
26 oveq1 7438 . . . . . . . . 9 (((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦)) → (((𝐴 ·o 𝐵) ·o 𝑦) +o (𝐴 ·o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))
27 nnmsuc 8645 . . . . . . . . . . 11 (((𝐴 ·o 𝐵) ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (((𝐴 ·o 𝐵) ·o 𝑦) +o (𝐴 ·o 𝐵)))
2818, 27stoic3 1776 . . . . . . . . . 10 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (((𝐴 ·o 𝐵) ·o 𝑦) +o (𝐴 ·o 𝐵)))
29 nnmsuc 8645 . . . . . . . . . . . . 13 ((𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 ·o suc 𝑦) = ((𝐵 ·o 𝑦) +o 𝐵))
30293adant1 1131 . . . . . . . . . . . 12 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 ·o suc 𝑦) = ((𝐵 ·o 𝑦) +o 𝐵))
3130oveq2d 7447 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o (𝐵 ·o suc 𝑦)) = (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)))
32 nnmcl 8650 . . . . . . . . . . . . . . . . 17 ((𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 ·o 𝑦) ∈ ω)
33 nndi 8661 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ω ∧ (𝐵 ·o 𝑦) ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))
3432, 33syl3an2 1165 . . . . . . . . . . . . . . . 16 ((𝐴 ∈ ω ∧ (𝐵 ∈ ω ∧ 𝑦 ∈ ω) ∧ 𝐵 ∈ ω) → (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))
35343exp 1120 . . . . . . . . . . . . . . 15 (𝐴 ∈ ω → ((𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 ∈ ω → (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))))
3635expd 415 . . . . . . . . . . . . . 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, 41imbitrrid 246 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦)) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (𝐴 ·o (𝐵 ·o suc 𝑦))))
43423exp 1120 . . . . . . 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 410 . . . . 5 (𝑦 ∈ ω → ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦)) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (𝐴 ·o (𝐵 ·o suc 𝑦)))))
469, 13, 17, 25, 45finds2 7920 . . . 4 (𝑥 ∈ ω → ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥))))
475, 46vtoclga 3577 . . 3 (𝐶 ∈ ω → ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶))))
4847expdcom 414 . 2 (𝐴 ∈ ω → (𝐵 ∈ ω → (𝐶 ∈ ω → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶)))))
49483imp 1111 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1087   = wceq 1540  wcel 2108  c0 4333  suc csuc 6386  (class class class)co 7431  ωcom 7887   +o coa 8503   ·o comu 8504
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1967  ax-7 2007  ax-8 2110  ax-9 2118  ax-10 2141  ax-11 2157  ax-12 2177  ax-ext 2708  ax-sep 5296  ax-nul 5306  ax-pr 5432  ax-un 7755
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 849  df-3or 1088  df-3an 1089  df-tru 1543  df-fal 1553  df-ex 1780  df-nf 1784  df-sb 2065  df-mo 2540  df-eu 2569  df-clab 2715  df-cleq 2729  df-clel 2816  df-nfc 2892  df-ne 2941  df-ral 3062  df-rex 3071  df-reu 3381  df-rab 3437  df-v 3482  df-sbc 3789  df-csb 3900  df-dif 3954  df-un 3956  df-in 3958  df-ss 3968  df-pss 3971  df-nul 4334  df-if 4526  df-pw 4602  df-sn 4627  df-pr 4629  df-op 4633  df-uni 4908  df-iun 4993  df-br 5144  df-opab 5206  df-mpt 5226  df-tr 5260  df-id 5578  df-eprel 5584  df-po 5592  df-so 5593  df-fr 5637  df-we 5639  df-xp 5691  df-rel 5692  df-cnv 5693  df-co 5694  df-dm 5695  df-rn 5696  df-res 5697  df-ima 5698  df-pred 6321  df-ord 6387  df-on 6388  df-lim 6389  df-suc 6390  df-iota 6514  df-fun 6563  df-fn 6564  df-f 6565  df-f1 6566  df-fo 6567  df-f1o 6568  df-fv 6569  df-ov 7434  df-oprab 7435  df-mpo 7436  df-om 7888  df-2nd 8015  df-frecs 8306  df-wrecs 8337  df-recs 8411  df-rdg 8450  df-oadd 8510  df-omul 8511
This theorem is referenced by:  mulasspi  10937
  Copyright terms: Public domain W3C validator