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

Theorem nnmass 8571
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 7365 . . . . . 6 (𝑥 = 𝐶 → ((𝐴 ·o 𝐵) ·o 𝑥) = ((𝐴 ·o 𝐵) ·o 𝐶))
2 oveq2 7365 . . . . . . 7 (𝑥 = 𝐶 → (𝐵 ·o 𝑥) = (𝐵 ·o 𝐶))
32oveq2d 7373 . . . . . 6 (𝑥 = 𝐶 → (𝐴 ·o (𝐵 ·o 𝑥)) = (𝐴 ·o (𝐵 ·o 𝐶)))
41, 3eqeq12d 2752 . . . . 5 (𝑥 = 𝐶 → (((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥)) ↔ ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶))))
54imbi2d 340 . . . 4 (𝑥 = 𝐶 → (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥))) ↔ ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶)))))
6 oveq2 7365 . . . . . 6 (𝑥 = ∅ → ((𝐴 ·o 𝐵) ·o 𝑥) = ((𝐴 ·o 𝐵) ·o ∅))
7 oveq2 7365 . . . . . . 7 (𝑥 = ∅ → (𝐵 ·o 𝑥) = (𝐵 ·o ∅))
87oveq2d 7373 . . . . . 6 (𝑥 = ∅ → (𝐴 ·o (𝐵 ·o 𝑥)) = (𝐴 ·o (𝐵 ·o ∅)))
96, 8eqeq12d 2752 . . . . 5 (𝑥 = ∅ → (((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥)) ↔ ((𝐴 ·o 𝐵) ·o ∅) = (𝐴 ·o (𝐵 ·o ∅))))
10 oveq2 7365 . . . . . 6 (𝑥 = 𝑦 → ((𝐴 ·o 𝐵) ·o 𝑥) = ((𝐴 ·o 𝐵) ·o 𝑦))
11 oveq2 7365 . . . . . . 7 (𝑥 = 𝑦 → (𝐵 ·o 𝑥) = (𝐵 ·o 𝑦))
1211oveq2d 7373 . . . . . 6 (𝑥 = 𝑦 → (𝐴 ·o (𝐵 ·o 𝑥)) = (𝐴 ·o (𝐵 ·o 𝑦)))
1310, 12eqeq12d 2752 . . . . 5 (𝑥 = 𝑦 → (((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥)) ↔ ((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦))))
14 oveq2 7365 . . . . . 6 (𝑥 = suc 𝑦 → ((𝐴 ·o 𝐵) ·o 𝑥) = ((𝐴 ·o 𝐵) ·o suc 𝑦))
15 oveq2 7365 . . . . . . 7 (𝑥 = suc 𝑦 → (𝐵 ·o 𝑥) = (𝐵 ·o suc 𝑦))
1615oveq2d 7373 . . . . . 6 (𝑥 = suc 𝑦 → (𝐴 ·o (𝐵 ·o 𝑥)) = (𝐴 ·o (𝐵 ·o suc 𝑦)))
1714, 16eqeq12d 2752 . . . . 5 (𝑥 = suc 𝑦 → (((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥)) ↔ ((𝐴 ·o 𝐵) ·o suc 𝑦) = (𝐴 ·o (𝐵 ·o suc 𝑦))))
18 nnmcl 8559 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o 𝐵) ∈ ω)
19 nnm0 8552 . . . . . . 7 ((𝐴 ·o 𝐵) ∈ ω → ((𝐴 ·o 𝐵) ·o ∅) = ∅)
2018, 19syl 17 . . . . . 6 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o ∅) = ∅)
21 nnm0 8552 . . . . . . . 8 (𝐵 ∈ ω → (𝐵 ·o ∅) = ∅)
2221oveq2d 7373 . . . . . . 7 (𝐵 ∈ ω → (𝐴 ·o (𝐵 ·o ∅)) = (𝐴 ·o ∅))
23 nnm0 8552 . . . . . . 7 (𝐴 ∈ ω → (𝐴 ·o ∅) = ∅)
2422, 23sylan9eqr 2798 . . . . . 6 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o (𝐵 ·o ∅)) = ∅)
2520, 24eqtr4d 2779 . . . . 5 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o ∅) = (𝐴 ·o (𝐵 ·o ∅)))
26 oveq1 7364 . . . . . . . . 9 (((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦)) → (((𝐴 ·o 𝐵) ·o 𝑦) +o (𝐴 ·o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))
27 nnmsuc 8554 . . . . . . . . . . 11 (((𝐴 ·o 𝐵) ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (((𝐴 ·o 𝐵) ·o 𝑦) +o (𝐴 ·o 𝐵)))
2818, 27stoic3 1778 . . . . . . . . . 10 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (((𝐴 ·o 𝐵) ·o 𝑦) +o (𝐴 ·o 𝐵)))
29 nnmsuc 8554 . . . . . . . . . . . . 13 ((𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 ·o suc 𝑦) = ((𝐵 ·o 𝑦) +o 𝐵))
30293adant1 1130 . . . . . . . . . . . 12 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 ·o suc 𝑦) = ((𝐵 ·o 𝑦) +o 𝐵))
3130oveq2d 7373 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o (𝐵 ·o suc 𝑦)) = (𝐴 ·o ((𝐵 ·o 𝑦) +o 𝐵)))
32 nnmcl 8559 . . . . . . . . . . . . . . . . 17 ((𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 ·o 𝑦) ∈ ω)
33 nndi 8570 . . . . . . . . . . . . . . . . 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 416 . . . . . . . . . . . . . 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 2776 . . . . . . . . . 10 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o (𝐵 ·o suc 𝑦)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵)))
4128, 40eqeq12d 2752 . . . . . . . . 9 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·o 𝐵) ·o suc 𝑦) = (𝐴 ·o (𝐵 ·o suc 𝑦)) ↔ (((𝐴 ·o 𝐵) ·o 𝑦) +o (𝐴 ·o 𝐵)) = ((𝐴 ·o (𝐵 ·o 𝑦)) +o (𝐴 ·o 𝐵))))
4226, 41syl5ibr 245 . . . . . . . 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 411 . . . . 5 (𝑦 ∈ ω → ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (((𝐴 ·o 𝐵) ·o 𝑦) = (𝐴 ·o (𝐵 ·o 𝑦)) → ((𝐴 ·o 𝐵) ·o suc 𝑦) = (𝐴 ·o (𝐵 ·o suc 𝑦)))))
469, 13, 17, 25, 45finds2 7837 . . . 4 (𝑥 ∈ ω → ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝑥) = (𝐴 ·o (𝐵 ·o 𝑥))))
475, 46vtoclga 3534 . . 3 (𝐶 ∈ ω → ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶))))
4847expdcom 415 . 2 (𝐴 ∈ ω → (𝐵 ∈ ω → (𝐶 ∈ ω → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶)))))
49483imp 1111 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐴 ·o 𝐵) ·o 𝐶) = (𝐴 ·o (𝐵 ·o 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1087   = wceq 1541  wcel 2106  c0 4282  suc csuc 6319  (class class class)co 7357  ωcom 7802   +o coa 8409   ·o comu 8410
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 2707  ax-sep 5256  ax-nul 5263  ax-pr 5384  ax-un 7672
This theorem depends on definitions:  df-bi 206  df-an 397  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 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2889  df-ne 2944  df-ral 3065  df-rex 3074  df-reu 3354  df-rab 3408  df-v 3447  df-sbc 3740  df-csb 3856  df-dif 3913  df-un 3915  df-in 3917  df-ss 3927  df-pss 3929  df-nul 4283  df-if 4487  df-pw 4562  df-sn 4587  df-pr 4589  df-op 4593  df-uni 4866  df-iun 4956  df-br 5106  df-opab 5168  df-mpt 5189  df-tr 5223  df-id 5531  df-eprel 5537  df-po 5545  df-so 5546  df-fr 5588  df-we 5590  df-xp 5639  df-rel 5640  df-cnv 5641  df-co 5642  df-dm 5643  df-rn 5644  df-res 5645  df-ima 5646  df-pred 6253  df-ord 6320  df-on 6321  df-lim 6322  df-suc 6323  df-iota 6448  df-fun 6498  df-fn 6499  df-f 6500  df-f1 6501  df-fo 6502  df-f1o 6503  df-fv 6504  df-ov 7360  df-oprab 7361  df-mpo 7362  df-om 7803  df-2nd 7922  df-frecs 8212  df-wrecs 8243  df-recs 8317  df-rdg 8356  df-oadd 8416  df-omul 8417
This theorem is referenced by:  mulasspi  10833
  Copyright terms: Public domain W3C validator