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

Theorem naddcom 8692
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 7427 . . 3 (𝑎 = 𝑐 → (𝑎 +no 𝑏) = (𝑐 +no 𝑏))
2 oveq2 7428 . . 3 (𝑎 = 𝑐 → (𝑏 +no 𝑎) = (𝑏 +no 𝑐))
31, 2eqeq12d 2777 . 2 (𝑎 = 𝑐 → ((𝑎 +no 𝑏) = (𝑏 +no 𝑎) ↔ (𝑐 +no 𝑏) = (𝑏 +no 𝑐)))
4 oveq2 7428 . . 3 (𝑏 = 𝑑 → (𝑐 +no 𝑏) = (𝑐 +no 𝑑))
5 oveq1 7427 . . 3 (𝑏 = 𝑑 → (𝑏 +no 𝑐) = (𝑑 +no 𝑐))
64, 5eqeq12d 2777 . 2 (𝑏 = 𝑑 → ((𝑐 +no 𝑏) = (𝑏 +no 𝑐) ↔ (𝑐 +no 𝑑) = (𝑑 +no 𝑐)))
7 oveq1 7427 . . 3 (𝑎 = 𝑐 → (𝑎 +no 𝑑) = (𝑐 +no 𝑑))
8 oveq2 7428 . . 3 (𝑎 = 𝑐 → (𝑑 +no 𝑎) = (𝑑 +no 𝑐))
97, 8eqeq12d 2777 . 2 (𝑎 = 𝑐 → ((𝑎 +no 𝑑) = (𝑑 +no 𝑎) ↔ (𝑐 +no 𝑑) = (𝑑 +no 𝑐)))
10 oveq1 7427 . . 3 (𝑎 = 𝐴 → (𝑎 +no 𝑏) = (𝐴 +no 𝑏))
11 oveq2 7428 . . 3 (𝑎 = 𝐴 → (𝑏 +no 𝑎) = (𝑏 +no 𝐴))
1210, 11eqeq12d 2777 . 2 (𝑎 = 𝐴 → ((𝑎 +no 𝑏) = (𝑏 +no 𝑎) ↔ (𝐴 +no 𝑏) = (𝑏 +no 𝐴)))
13 oveq2 7428 . . 3 (𝑏 = 𝐵 → (𝐴 +no 𝑏) = (𝐴 +no 𝐵))
14 oveq1 7427 . . 3 (𝑏 = 𝐵 → (𝑏 +no 𝐴) = (𝐵 +no 𝐴))
1513, 14eqeq12d 2777 . 2 (𝑏 = 𝐵 → ((𝐴 +no 𝑏) = (𝑏 +no 𝐴) ↔ (𝐴 +no 𝐵) = (𝐵 +no 𝐴)))
16 eleq1 2849 . . . . . . . . . . . 12 ((𝑎 +no 𝑑) = (𝑑 +no 𝑎) → ((𝑎 +no 𝑑) ∈ 𝑥 ↔ (𝑑 +no 𝑎) ∈ 𝑥))
1716ralimi 3100 . . . . . . . . . . 11 (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎) → ∀𝑑 ∈ 𝑏 ((𝑎 +no 𝑑) ∈ 𝑥 ↔ (𝑑 +no 𝑎) ∈ 𝑥))
18 ralbi 3118 . . . . . . . . . . 11 (∀𝑑 ∈ 𝑏 ((𝑎 +no 𝑑) ∈ 𝑥 ↔ (𝑑 +no 𝑎) ∈ 𝑥) → (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ↔ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥))
1917, 18syl 18 . . . . . . . . . 10 (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎) → (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ↔ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥))
20193ad2ant3 1153 . . . . . . . . 9 ((∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎)) → (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ↔ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥))
2120adantl 487 . . . . . . . 8 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ↔ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥))
22 eleq1 2849 . . . . . . . . . . . 12 ((𝑐 +no 𝑏) = (𝑏 +no 𝑐) → ((𝑐 +no 𝑏) ∈ 𝑥 ↔ (𝑏 +no 𝑐) ∈ 𝑥))
2322ralimi 3100 . . . . . . . . . . 11 (∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) → ∀𝑐 ∈ 𝑎 ((𝑐 +no 𝑏) ∈ 𝑥 ↔ (𝑏 +no 𝑐) ∈ 𝑥))
24 ralbi 3118 . . . . . . . . . . 11 (∀𝑐 ∈ 𝑎 ((𝑐 +no 𝑏) ∈ 𝑥 ↔ (𝑏 +no 𝑐) ∈ 𝑥) → (∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥 ↔ ∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥))
2523, 24syl 18 . . . . . . . . . 10 (∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) → (∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥 ↔ ∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥))
26253ad2ant2 1152 . . . . . . . . 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 3420 . . . . 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 8688 . . . . 5 ((𝑎 ∈ On ∧ 𝑏 ∈ On) → (𝑎 +no 𝑏) = ∩ {𝑥 ∈ On ∣ (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥)})
3332adantr 486 . . . 4 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (𝑎 +no 𝑏) = ∩ {𝑥 ∈ On ∣ (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥)})
34 naddov2 8688 . . . . . 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 2806 . . 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 8678 1 ((𝐴 ∈ On ∧ 𝐵 ∈ On) → (𝐴 +no 𝐵) = (𝐵 +no 𝐴))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∧ w3a 1103   = wceq 1570   ∈ wcel 2145  ∀wral 3077  {crab 3413  ∩ cint 4907  Oncon0 6362  (class class class)co 7420   +no cnadd 8674
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-int 4908  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-se 5605  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6304  df-ord 6365  df-on 6366  df-suc 6368  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-ov 7423  df-oprab 7424  df-mpo 7425  df-1st 8001  df-2nd 8002  df-frecs 8299  df-nadd 8675
This theorem is used by:  naddlid  8694  naddel2  8698  naddss2  8700  naddword2  8702  nadd32  8707  nadd42  8709  addsproplem2  28356  addbday  28404  nmulcom  36943  naddcomd  36958  nmuladdss  36962  nadd2rabex  44387  nadd1rabtr  44389  nadd1rabex  44391  naddwordnexlem4  44402
  Copyright terms: Public domain W3C validator