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

Theorem naddcom 8749
Description: Natural addition is commutative. (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 7477 . . 3 (𝑎 = 𝑐 → (𝑎 +no 𝑏) = (𝑐 +no 𝑏))
2 oveq2 7478 . . 3 (𝑎 = 𝑐 → (𝑏 +no 𝑎) = (𝑏 +no 𝑐))
31, 2eqeq12d 2790 . 2 (𝑎 = 𝑐 → ((𝑎 +no 𝑏) = (𝑏 +no 𝑎) ↔ (𝑐 +no 𝑏) = (𝑏 +no 𝑐)))
4 oveq2 7478 . . 3 (𝑏 = 𝑑 → (𝑐 +no 𝑏) = (𝑐 +no 𝑑))
5 oveq1 7477 . . 3 (𝑏 = 𝑑 → (𝑏 +no 𝑐) = (𝑑 +no 𝑐))
64, 5eqeq12d 2790 . 2 (𝑏 = 𝑑 → ((𝑐 +no 𝑏) = (𝑏 +no 𝑐) ↔ (𝑐 +no 𝑑) = (𝑑 +no 𝑐)))
7 oveq1 7477 . . 3 (𝑎 = 𝑐 → (𝑎 +no 𝑑) = (𝑐 +no 𝑑))
8 oveq2 7478 . . 3 (𝑎 = 𝑐 → (𝑑 +no 𝑎) = (𝑑 +no 𝑐))
97, 8eqeq12d 2790 . 2 (𝑎 = 𝑐 → ((𝑎 +no 𝑑) = (𝑑 +no 𝑎) ↔ (𝑐 +no 𝑑) = (𝑑 +no 𝑐)))
10 oveq1 7477 . . 3 (𝑎 = 𝐴 → (𝑎 +no 𝑏) = (𝐴 +no 𝑏))
11 oveq2 7478 . . 3 (𝑎 = 𝐴 → (𝑏 +no 𝑎) = (𝑏 +no 𝐴))
1210, 11eqeq12d 2790 . 2 (𝑎 = 𝐴 → ((𝑎 +no 𝑏) = (𝑏 +no 𝑎) ↔ (𝐴 +no 𝑏) = (𝑏 +no 𝐴)))
13 oveq2 7478 . . 3 (𝑏 = 𝐵 → (𝐴 +no 𝑏) = (𝐴 +no 𝐵))
14 oveq1 7477 . . 3 (𝑏 = 𝐵 → (𝑏 +no 𝐴) = (𝐵 +no 𝐴))
1513, 14eqeq12d 2790 . 2 (𝑏 = 𝐵 → ((𝐴 +no 𝑏) = (𝑏 +no 𝐴) ↔ (𝐴 +no 𝐵) = (𝐵 +no 𝐴)))
16 eleq1 2863 . . . . . . . . . . . 12 ((𝑎 +no 𝑑) = (𝑑 +no 𝑎) → ((𝑎 +no 𝑑) ∈ 𝑥 ↔ (𝑑 +no 𝑎) ∈ 𝑥))
1716ralimi 3114 . . . . . . . . . . 11 (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎) → ∀𝑑 ∈ 𝑏 ((𝑎 +no 𝑑) ∈ 𝑥 ↔ (𝑑 +no 𝑎) ∈ 𝑥))
18 ralbi 3132 . . . . . . . . . . 11 (∀𝑑 ∈ 𝑏 ((𝑎 +no 𝑑) ∈ 𝑥 ↔ (𝑑 +no 𝑎) ∈ 𝑥) → (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ↔ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥))
1917, 18syl 18 . . . . . . . . . 10 (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎) → (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ↔ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥))
20193ad2ant3 1154 . . . . . . . . 9 ((∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎)) → (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ↔ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥))
2120adantl 487 . . . . . . . 8 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ↔ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥))
22 eleq1 2863 . . . . . . . . . . . 12 ((𝑐 +no 𝑏) = (𝑏 +no 𝑐) → ((𝑐 +no 𝑏) ∈ 𝑥 ↔ (𝑏 +no 𝑐) ∈ 𝑥))
2322ralimi 3114 . . . . . . . . . . 11 (∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) → ∀𝑐 ∈ 𝑎 ((𝑐 +no 𝑏) ∈ 𝑥 ↔ (𝑏 +no 𝑐) ∈ 𝑥))
24 ralbi 3132 . . . . . . . . . . 11 (∀𝑐 ∈ 𝑎 ((𝑐 +no 𝑏) ∈ 𝑥 ↔ (𝑏 +no 𝑐) ∈ 𝑥) → (∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥 ↔ ∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥))
2523, 24syl 18 . . . . . . . . . 10 (∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) → (∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥 ↔ ∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥))
26253ad2ant2 1153 . . . . . . . . 9 ((∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎)) → (∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥 ↔ ∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥))
2726adantl 487 . . . . . . . 8 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥 ↔ ∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥))
2821, 27anbi12d 644 . . . . . . 7 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → ((∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥) ↔ (∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥)))
2928biancomd 469 . . . . . 6 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → ((∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥) ↔ (∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥)))
3029rabbidv 3430 . . . . 5 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → {𝑥 ∈ On ∣ (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥)} = {𝑥 ∈ On ∣ (∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥)})
3130inteqd 4925 . . . 4 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → ∩ {𝑥 ∈ On ∣ (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥)} = ∩ {𝑥 ∈ On ∣ (∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥)})
32 naddov2 8745 . . . . 5 ((𝑎 ∈ On ∧ 𝑏 ∈ On) → (𝑎 +no 𝑏) = ∩ {𝑥 ∈ On ∣ (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥)})
3332adantr 486 . . . 4 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (𝑎 +no 𝑏) = ∩ {𝑥 ∈ On ∣ (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥)})
34 naddov2 8745 . . . . . 6 ((𝑏 ∈ On ∧ 𝑎 ∈ On) → (𝑏 +no 𝑎) = ∩ {𝑥 ∈ On ∣ (∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥)})
3534ancoms 464 . . . . 5 ((𝑎 ∈ On ∧ 𝑏 ∈ On) → (𝑏 +no 𝑎) = ∩ {𝑥 ∈ On ∣ (∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥)})
3635adantr 486 . . . 4 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (𝑏 +no 𝑎) = ∩ {𝑥 ∈ On ∣ (∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥)})
3731, 33, 363eqtr4d 2819 . . 3 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (𝑎 +no 𝑏) = (𝑏 +no 𝑎))
3837ex 418 . 2 ((𝑎 ∈ On ∧ 𝑏 ∈ On) → ((∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎)) → (𝑎 +no 𝑏) = (𝑏 +no 𝑎)))
393, 6, 9, 12, 15, 38on2ind 8735 1 ((𝐴 ∈ On ∧ 𝐵 ∈ On) → (𝐴 +no 𝐵) = (𝐵 +no 𝐴))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∧ w3a 1104   = wceq 1572   ∈ wcel 2156  ∀wral 3091  {crab 3423  ∩ cint 4920  Oncon0 6401  (class class class)co 7470   +no cnadd 8731
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-rep 5246  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7802
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-ral 3092  df-rex 3102  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-pss 4024  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-int 4921  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-tr 5227  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-se 5620  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6343  df-ord 6404  df-on 6405  df-suc 6407  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-f1 6584  df-fo 6585  df-f1o 6586  df-fv 6587  df-ov 7473  df-oprab 7474  df-mpo 7475  df-1st 8054  df-2nd 8055  df-frecs 8356  df-nadd 8732
This theorem is used by:  naddlid  8751  naddel2  8755  naddss2  8757  naddword2  8759  nadd32  8764  nadd42  8766  addsproplem2  28513  addbday  28561  nmulcom  37257  naddcomd  37272  nmuladdss  37276  nadd2rabex  44808  nadd1rabtr  44810  nadd1rabex  44812  naddwordnexlem4  44823
  Copyright terms: Public domain W3C validator