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

Theorem nndi 8280
Description: Distributive law for natural numbers (left-distributivity). Theorem 4K(3) of [Enderton] p. 81. (Contributed by NM, 20-Sep-1995.) (Revised by Mario Carneiro, 15-Nov-2014.)
Assertion
Ref Expression
nndi ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴 ·o (𝐵 +o 𝐶)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝐶)))

Proof of Theorem nndi
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 7178 . . . . . . 7 (𝑥 = 𝐶 → (𝐵 +o 𝑥) = (𝐵 +o 𝐶))
21oveq2d 7186 . . . . . 6 (𝑥 = 𝐶 → (𝐴 ·o (𝐵 +o 𝑥)) = (𝐴 ·o (𝐵 +o 𝐶)))
3 oveq2 7178 . . . . . . 7 (𝑥 = 𝐶 → (𝐴 ·o 𝑥) = (𝐴 ·o 𝐶))
43oveq2d 7186 . . . . . 6 (𝑥 = 𝐶 → ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑥)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝐶)))
52, 4eqeq12d 2754 . . . . 5 (𝑥 = 𝐶 → ((𝐴 ·o (𝐵 +o 𝑥)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑥)) ↔ (𝐴 ·o (𝐵 +o 𝐶)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝐶))))
65imbi2d 344 . . . 4 (𝑥 = 𝐶 → (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o (𝐵 +o 𝑥)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑥))) ↔ ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o (𝐵 +o 𝐶)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝐶)))))
7 oveq2 7178 . . . . . . 7 (𝑥 = ∅ → (𝐵 +o 𝑥) = (𝐵 +o ∅))
87oveq2d 7186 . . . . . 6 (𝑥 = ∅ → (𝐴 ·o (𝐵 +o 𝑥)) = (𝐴 ·o (𝐵 +o ∅)))
9 oveq2 7178 . . . . . . 7 (𝑥 = ∅ → (𝐴 ·o 𝑥) = (𝐴 ·o ∅))
109oveq2d 7186 . . . . . 6 (𝑥 = ∅ → ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑥)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o ∅)))
118, 10eqeq12d 2754 . . . . 5 (𝑥 = ∅ → ((𝐴 ·o (𝐵 +o 𝑥)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑥)) ↔ (𝐴 ·o (𝐵 +o ∅)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o ∅))))
12 oveq2 7178 . . . . . . 7 (𝑥 = 𝑦 → (𝐵 +o 𝑥) = (𝐵 +o 𝑦))
1312oveq2d 7186 . . . . . 6 (𝑥 = 𝑦 → (𝐴 ·o (𝐵 +o 𝑥)) = (𝐴 ·o (𝐵 +o 𝑦)))
14 oveq2 7178 . . . . . . 7 (𝑥 = 𝑦 → (𝐴 ·o 𝑥) = (𝐴 ·o 𝑦))
1514oveq2d 7186 . . . . . 6 (𝑥 = 𝑦 → ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑥)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)))
1613, 15eqeq12d 2754 . . . . 5 (𝑥 = 𝑦 → ((𝐴 ·o (𝐵 +o 𝑥)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑥)) ↔ (𝐴 ·o (𝐵 +o 𝑦)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦))))
17 oveq2 7178 . . . . . . 7 (𝑥 = suc 𝑦 → (𝐵 +o 𝑥) = (𝐵 +o suc 𝑦))
1817oveq2d 7186 . . . . . 6 (𝑥 = suc 𝑦 → (𝐴 ·o (𝐵 +o 𝑥)) = (𝐴 ·o (𝐵 +o suc 𝑦)))
19 oveq2 7178 . . . . . . 7 (𝑥 = suc 𝑦 → (𝐴 ·o 𝑥) = (𝐴 ·o suc 𝑦))
2019oveq2d 7186 . . . . . 6 (𝑥 = suc 𝑦 → ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑥)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o suc 𝑦)))
2118, 20eqeq12d 2754 . . . . 5 (𝑥 = suc 𝑦 → ((𝐴 ·o (𝐵 +o 𝑥)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑥)) ↔ (𝐴 ·o (𝐵 +o suc 𝑦)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o suc 𝑦))))
22 nna0 8261 . . . . . . . . 9 (𝐵 ∈ ω → (𝐵 +o ∅) = 𝐵)
2322adantl 485 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐵 +o ∅) = 𝐵)
2423oveq2d 7186 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o (𝐵 +o ∅)) = (𝐴 ·o 𝐵))
25 nnmcl 8269 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o 𝐵) ∈ ω)
26 nna0 8261 . . . . . . . 8 ((𝐴 ·o 𝐵) ∈ ω → ((𝐴 ·o 𝐵) +o ∅) = (𝐴 ·o 𝐵))
2725, 26syl 17 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) +o ∅) = (𝐴 ·o 𝐵))
2824, 27eqtr4d 2776 . . . . . 6 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o (𝐵 +o ∅)) = ((𝐴 ·o 𝐵) +o ∅))
29 nnm0 8262 . . . . . . . 8 (𝐴 ∈ ω → (𝐴 ·o ∅) = ∅)
3029adantr 484 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o ∅) = ∅)
3130oveq2d 7186 . . . . . 6 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o 𝐵) +o (𝐴 ·o ∅)) = ((𝐴 ·o 𝐵) +o ∅))
3228, 31eqtr4d 2776 . . . . 5 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o (𝐵 +o ∅)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o ∅)))
33 oveq1 7177 . . . . . . . . 9 ((𝐴 ·o (𝐵 +o 𝑦)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) → ((𝐴 ·o (𝐵 +o 𝑦)) +o 𝐴) = (((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) +o 𝐴))
34 nnasuc 8263 . . . . . . . . . . . . 13 ((𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 +o suc 𝑦) = suc (𝐵 +o 𝑦))
35343adant1 1131 . . . . . . . . . . . 12 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 +o suc 𝑦) = suc (𝐵 +o 𝑦))
3635oveq2d 7186 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o (𝐵 +o suc 𝑦)) = (𝐴 ·o suc (𝐵 +o 𝑦)))
37 nnacl 8268 . . . . . . . . . . . . 13 ((𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐵 +o 𝑦) ∈ ω)
38 nnmsuc 8264 . . . . . . . . . . . . 13 ((𝐴 ∈ ω ∧ (𝐵 +o 𝑦) ∈ ω) → (𝐴 ·o suc (𝐵 +o 𝑦)) = ((𝐴 ·o (𝐵 +o 𝑦)) +o 𝐴))
3937, 38sylan2 596 . . . . . . . . . . . 12 ((𝐴 ∈ ω ∧ (𝐵 ∈ ω ∧ 𝑦 ∈ ω)) → (𝐴 ·o suc (𝐵 +o 𝑦)) = ((𝐴 ·o (𝐵 +o 𝑦)) +o 𝐴))
40393impb 1116 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o suc (𝐵 +o 𝑦)) = ((𝐴 ·o (𝐵 +o 𝑦)) +o 𝐴))
4136, 40eqtrd 2773 . . . . . . . . . 10 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o (𝐵 +o suc 𝑦)) = ((𝐴 ·o (𝐵 +o 𝑦)) +o 𝐴))
42 nnmsuc 8264 . . . . . . . . . . . . 13 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o suc 𝑦) = ((𝐴 ·o 𝑦) +o 𝐴))
43423adant2 1132 . . . . . . . . . . . 12 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o suc 𝑦) = ((𝐴 ·o 𝑦) +o 𝐴))
4443oveq2d 7186 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o 𝐵) +o (𝐴 ·o suc 𝑦)) = ((𝐴 ·o 𝐵) +o ((𝐴 ·o 𝑦) +o 𝐴)))
45 nnmcl 8269 . . . . . . . . . . . . . . . . . 18 ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ·o 𝑦) ∈ ω)
46 nnaass 8279 . . . . . . . . . . . . . . . . . . 19 (((𝐴 ·o 𝐵) ∈ ω ∧ (𝐴 ·o 𝑦) ∈ ω ∧ 𝐴 ∈ ω) → (((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) +o 𝐴) = ((𝐴 ·o 𝐵) +o ((𝐴 ·o 𝑦) +o 𝐴)))
4725, 46syl3an1 1164 . . . . . . . . . . . . . . . . . 18 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ (𝐴 ·o 𝑦) ∈ ω ∧ 𝐴 ∈ ω) → (((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) +o 𝐴) = ((𝐴 ·o 𝐵) +o ((𝐴 ·o 𝑦) +o 𝐴)))
4845, 47syl3an2 1165 . . . . . . . . . . . . . . . . 17 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ (𝐴 ∈ ω ∧ 𝑦 ∈ ω) ∧ 𝐴 ∈ ω) → (((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) +o 𝐴) = ((𝐴 ·o 𝐵) +o ((𝐴 ·o 𝑦) +o 𝐴)))
49483exp 1120 . . . . . . . . . . . . . . . 16 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ∈ ω ∧ 𝑦 ∈ ω) → (𝐴 ∈ ω → (((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) +o 𝐴) = ((𝐴 ·o 𝐵) +o ((𝐴 ·o 𝑦) +o 𝐴)))))
5049exp4b 434 . . . . . . . . . . . . . . 15 (𝐴 ∈ ω → (𝐵 ∈ ω → (𝐴 ∈ ω → (𝑦 ∈ ω → (𝐴 ∈ ω → (((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) +o 𝐴) = ((𝐴 ·o 𝐵) +o ((𝐴 ·o 𝑦) +o 𝐴)))))))
5150pm2.43a 54 . . . . . . . . . . . . . 14 (𝐴 ∈ ω → (𝐵 ∈ ω → (𝑦 ∈ ω → (𝐴 ∈ ω → (((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) +o 𝐴) = ((𝐴 ·o 𝐵) +o ((𝐴 ·o 𝑦) +o 𝐴))))))
5251com4r 94 . . . . . . . . . . . . 13 (𝐴 ∈ ω → (𝐴 ∈ ω → (𝐵 ∈ ω → (𝑦 ∈ ω → (((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) +o 𝐴) = ((𝐴 ·o 𝐵) +o ((𝐴 ·o 𝑦) +o 𝐴))))))
5352pm2.43i 52 . . . . . . . . . . . 12 (𝐴 ∈ ω → (𝐵 ∈ ω → (𝑦 ∈ ω → (((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) +o 𝐴) = ((𝐴 ·o 𝐵) +o ((𝐴 ·o 𝑦) +o 𝐴)))))
54533imp 1112 . . . . . . . . . . 11 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → (((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) +o 𝐴) = ((𝐴 ·o 𝐵) +o ((𝐴 ·o 𝑦) +o 𝐴)))
5544, 54eqtr4d 2776 . . . . . . . . . 10 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o 𝐵) +o (𝐴 ·o suc 𝑦)) = (((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) +o 𝐴))
5641, 55eqeq12d 2754 . . . . . . . . 9 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o (𝐵 +o suc 𝑦)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o suc 𝑦)) ↔ ((𝐴 ·o (𝐵 +o 𝑦)) +o 𝐴) = (((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) +o 𝐴)))
5733, 56syl5ibr 249 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝑦 ∈ ω) → ((𝐴 ·o (𝐵 +o 𝑦)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) → (𝐴 ·o (𝐵 +o suc 𝑦)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o suc 𝑦))))
58573exp 1120 . . . . . . 7 (𝐴 ∈ ω → (𝐵 ∈ ω → (𝑦 ∈ ω → ((𝐴 ·o (𝐵 +o 𝑦)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) → (𝐴 ·o (𝐵 +o suc 𝑦)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o suc 𝑦))))))
5958com3r 87 . . . . . 6 (𝑦 ∈ ω → (𝐴 ∈ ω → (𝐵 ∈ ω → ((𝐴 ·o (𝐵 +o 𝑦)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) → (𝐴 ·o (𝐵 +o suc 𝑦)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o suc 𝑦))))))
6059impd 414 . . . . 5 (𝑦 ∈ ω → ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴 ·o (𝐵 +o 𝑦)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑦)) → (𝐴 ·o (𝐵 +o suc 𝑦)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o suc 𝑦)))))
6111, 16, 21, 32, 60finds2 7631 . . . 4 (𝑥 ∈ ω → ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o (𝐵 +o 𝑥)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝑥))))
626, 61vtoclga 3478 . . 3 (𝐶 ∈ ω → ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 ·o (𝐵 +o 𝐶)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝐶))))
6362expdcom 418 . 2 (𝐴 ∈ ω → (𝐵 ∈ ω → (𝐶 ∈ ω → (𝐴 ·o (𝐵 +o 𝐶)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝐶)))))
64633imp 1112 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴 ·o (𝐵 +o 𝐶)) = ((𝐴 ·o 𝐵) +o (𝐴 ·o 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  w3a 1088   = wceq 1542  wcel 2114  c0 4211  suc csuc 6174  (class class class)co 7170  ωcom 7599   +o coa 8128   ·o comu 8129
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2020  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2162  ax-12 2179  ax-ext 2710  ax-sep 5167  ax-nul 5174  ax-pr 5296  ax-un 7479
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2075  df-mo 2540  df-eu 2570  df-clab 2717  df-cleq 2730  df-clel 2811  df-nfc 2881  df-ne 2935  df-ral 3058  df-rex 3059  df-reu 3060  df-rab 3062  df-v 3400  df-sbc 3681  df-csb 3791  df-dif 3846  df-un 3848  df-in 3850  df-ss 3860  df-pss 3862  df-nul 4212  df-if 4415  df-pw 4490  df-sn 4517  df-pr 4519  df-tp 4521  df-op 4523  df-uni 4797  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5429  df-eprel 5434  df-po 5442  df-so 5443  df-fr 5483  df-we 5485  df-xp 5531  df-rel 5532  df-cnv 5533  df-co 5534  df-dm 5535  df-rn 5536  df-res 5537  df-ima 5538  df-pred 6129  df-ord 6175  df-on 6176  df-lim 6177  df-suc 6178  df-iota 6297  df-fun 6341  df-fn 6342  df-f 6343  df-f1 6344  df-fo 6345  df-f1o 6346  df-fv 6347  df-ov 7173  df-oprab 7174  df-mpo 7175  df-om 7600  df-wrecs 7976  df-recs 8037  df-rdg 8075  df-oadd 8135  df-omul 8136
This theorem is referenced by:  nnmass  8281  distrpi  10398
  Copyright terms: Public domain W3C validator