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

Theorem naddcom 8628
Description: Natural addition commutes. (Contributed by Scott Fenton, 26-Aug-2024.)
Assertion
Ref Expression
naddcom ((𝐴 ∈ On ∧ 𝐵 ∈ On) → (𝐴 +no 𝐵) = (𝐵 +no 𝐴))

Proof of Theorem naddcom
Dummy variables 𝑎 𝑏 𝑐 𝑑 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq1 7364 . . 3 (𝑎 = 𝑐 → (𝑎 +no 𝑏) = (𝑐 +no 𝑏))
2 oveq2 7365 . . 3 (𝑎 = 𝑐 → (𝑏 +no 𝑎) = (𝑏 +no 𝑐))
31, 2eqeq12d 2752 . 2 (𝑎 = 𝑐 → ((𝑎 +no 𝑏) = (𝑏 +no 𝑎) ↔ (𝑐 +no 𝑏) = (𝑏 +no 𝑐)))
4 oveq2 7365 . . 3 (𝑏 = 𝑑 → (𝑐 +no 𝑏) = (𝑐 +no 𝑑))
5 oveq1 7364 . . 3 (𝑏 = 𝑑 → (𝑏 +no 𝑐) = (𝑑 +no 𝑐))
64, 5eqeq12d 2752 . 2 (𝑏 = 𝑑 → ((𝑐 +no 𝑏) = (𝑏 +no 𝑐) ↔ (𝑐 +no 𝑑) = (𝑑 +no 𝑐)))
7 oveq1 7364 . . 3 (𝑎 = 𝑐 → (𝑎 +no 𝑑) = (𝑐 +no 𝑑))
8 oveq2 7365 . . 3 (𝑎 = 𝑐 → (𝑑 +no 𝑎) = (𝑑 +no 𝑐))
97, 8eqeq12d 2752 . 2 (𝑎 = 𝑐 → ((𝑎 +no 𝑑) = (𝑑 +no 𝑎) ↔ (𝑐 +no 𝑑) = (𝑑 +no 𝑐)))
10 oveq1 7364 . . 3 (𝑎 = 𝐴 → (𝑎 +no 𝑏) = (𝐴 +no 𝑏))
11 oveq2 7365 . . 3 (𝑎 = 𝐴 → (𝑏 +no 𝑎) = (𝑏 +no 𝐴))
1210, 11eqeq12d 2752 . 2 (𝑎 = 𝐴 → ((𝑎 +no 𝑏) = (𝑏 +no 𝑎) ↔ (𝐴 +no 𝑏) = (𝑏 +no 𝐴)))
13 oveq2 7365 . . 3 (𝑏 = 𝐵 → (𝐴 +no 𝑏) = (𝐴 +no 𝐵))
14 oveq1 7364 . . 3 (𝑏 = 𝐵 → (𝑏 +no 𝐴) = (𝐵 +no 𝐴))
1513, 14eqeq12d 2752 . 2 (𝑏 = 𝐵 → ((𝐴 +no 𝑏) = (𝑏 +no 𝐴) ↔ (𝐴 +no 𝐵) = (𝐵 +no 𝐴)))
16 eleq1 2825 . . . . . . . . . . . 12 ((𝑎 +no 𝑑) = (𝑑 +no 𝑎) → ((𝑎 +no 𝑑) ∈ 𝑥 ↔ (𝑑 +no 𝑎) ∈ 𝑥))
1716ralimi 3086 . . . . . . . . . . 11 (∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎) → ∀𝑑𝑏 ((𝑎 +no 𝑑) ∈ 𝑥 ↔ (𝑑 +no 𝑎) ∈ 𝑥))
18 ralbi 3106 . . . . . . . . . . 11 (∀𝑑𝑏 ((𝑎 +no 𝑑) ∈ 𝑥 ↔ (𝑑 +no 𝑎) ∈ 𝑥) → (∀𝑑𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ↔ ∀𝑑𝑏 (𝑑 +no 𝑎) ∈ 𝑥))
1917, 18syl 17 . . . . . . . . . 10 (∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎) → (∀𝑑𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ↔ ∀𝑑𝑏 (𝑑 +no 𝑎) ∈ 𝑥))
20193ad2ant3 1135 . . . . . . . . 9 ((∀𝑐𝑎𝑑𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎)) → (∀𝑑𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ↔ ∀𝑑𝑏 (𝑑 +no 𝑎) ∈ 𝑥))
2120adantl 482 . . . . . . . 8 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐𝑎𝑑𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (∀𝑑𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ↔ ∀𝑑𝑏 (𝑑 +no 𝑎) ∈ 𝑥))
22 eleq1 2825 . . . . . . . . . . . 12 ((𝑐 +no 𝑏) = (𝑏 +no 𝑐) → ((𝑐 +no 𝑏) ∈ 𝑥 ↔ (𝑏 +no 𝑐) ∈ 𝑥))
2322ralimi 3086 . . . . . . . . . . 11 (∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) → ∀𝑐𝑎 ((𝑐 +no 𝑏) ∈ 𝑥 ↔ (𝑏 +no 𝑐) ∈ 𝑥))
24 ralbi 3106 . . . . . . . . . . 11 (∀𝑐𝑎 ((𝑐 +no 𝑏) ∈ 𝑥 ↔ (𝑏 +no 𝑐) ∈ 𝑥) → (∀𝑐𝑎 (𝑐 +no 𝑏) ∈ 𝑥 ↔ ∀𝑐𝑎 (𝑏 +no 𝑐) ∈ 𝑥))
2523, 24syl 17 . . . . . . . . . 10 (∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) → (∀𝑐𝑎 (𝑐 +no 𝑏) ∈ 𝑥 ↔ ∀𝑐𝑎 (𝑏 +no 𝑐) ∈ 𝑥))
26253ad2ant2 1134 . . . . . . . . 9 ((∀𝑐𝑎𝑑𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎)) → (∀𝑐𝑎 (𝑐 +no 𝑏) ∈ 𝑥 ↔ ∀𝑐𝑎 (𝑏 +no 𝑐) ∈ 𝑥))
2726adantl 482 . . . . . . . 8 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐𝑎𝑑𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (∀𝑐𝑎 (𝑐 +no 𝑏) ∈ 𝑥 ↔ ∀𝑐𝑎 (𝑏 +no 𝑐) ∈ 𝑥))
2821, 27anbi12d 631 . . . . . . 7 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐𝑎𝑑𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → ((∀𝑑𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) ∈ 𝑥) ↔ (∀𝑑𝑏 (𝑑 +no 𝑎) ∈ 𝑥 ∧ ∀𝑐𝑎 (𝑏 +no 𝑐) ∈ 𝑥)))
2928biancomd 464 . . . . . 6 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐𝑎𝑑𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → ((∀𝑑𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) ∈ 𝑥) ↔ (∀𝑐𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑𝑏 (𝑑 +no 𝑎) ∈ 𝑥)))
3029rabbidv 3415 . . . . 5 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐𝑎𝑑𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → {𝑥 ∈ On ∣ (∀𝑑𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) ∈ 𝑥)} = {𝑥 ∈ On ∣ (∀𝑐𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑𝑏 (𝑑 +no 𝑎) ∈ 𝑥)})
3130inteqd 4912 . . . 4 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐𝑎𝑑𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → {𝑥 ∈ On ∣ (∀𝑑𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) ∈ 𝑥)} = {𝑥 ∈ On ∣ (∀𝑐𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑𝑏 (𝑑 +no 𝑎) ∈ 𝑥)})
32 naddov2 8625 . . . . 5 ((𝑎 ∈ On ∧ 𝑏 ∈ On) → (𝑎 +no 𝑏) = {𝑥 ∈ On ∣ (∀𝑑𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) ∈ 𝑥)})
3332adantr 481 . . . 4 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐𝑎𝑑𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (𝑎 +no 𝑏) = {𝑥 ∈ On ∣ (∀𝑑𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) ∈ 𝑥)})
34 naddov2 8625 . . . . . 6 ((𝑏 ∈ On ∧ 𝑎 ∈ On) → (𝑏 +no 𝑎) = {𝑥 ∈ On ∣ (∀𝑐𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑𝑏 (𝑑 +no 𝑎) ∈ 𝑥)})
3534ancoms 459 . . . . 5 ((𝑎 ∈ On ∧ 𝑏 ∈ On) → (𝑏 +no 𝑎) = {𝑥 ∈ On ∣ (∀𝑐𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑𝑏 (𝑑 +no 𝑎) ∈ 𝑥)})
3635adantr 481 . . . 4 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐𝑎𝑑𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (𝑏 +no 𝑎) = {𝑥 ∈ On ∣ (∀𝑐𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑𝑏 (𝑑 +no 𝑎) ∈ 𝑥)})
3731, 33, 363eqtr4d 2786 . . 3 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐𝑎𝑑𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (𝑎 +no 𝑏) = (𝑏 +no 𝑎))
3837ex 413 . 2 ((𝑎 ∈ On ∧ 𝑏 ∈ On) → ((∀𝑐𝑎𝑑𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎)) → (𝑎 +no 𝑏) = (𝑏 +no 𝑎)))
393, 6, 9, 12, 15, 38on2ind 8615 1 ((𝐴 ∈ On ∧ 𝐵 ∈ On) → (𝐴 +no 𝐵) = (𝐵 +no 𝐴))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1087   = wceq 1541  wcel 2106  wral 3064  {crab 3407   cint 4907  Oncon0 6317  (class class class)co 7357   +no cnadd 8611
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-rep 5242  ax-sep 5256  ax-nul 5263  ax-pow 5320  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-int 4908  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-se 5589  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-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-1st 7921  df-2nd 7922  df-frecs 8212  df-nadd 8612
This theorem is referenced by:  naddel2  8633  naddss2  8635  nadd32  8641  nadd42  8643  addsproplem2  27282
  Copyright terms: Public domain W3C validator