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

Theorem naddcom 8730
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 7458 . . 3 (𝑎 = 𝑐 → (𝑎 +no 𝑏) = (𝑐 +no 𝑏))
2 oveq2 7459 . . 3 (𝑎 = 𝑐 → (𝑏 +no 𝑎) = (𝑏 +no 𝑐))
31, 2eqeq12d 2779 . 2 (𝑎 = 𝑐 → ((𝑎 +no 𝑏) = (𝑏 +no 𝑎) ↔ (𝑐 +no 𝑏) = (𝑏 +no 𝑐)))
4 oveq2 7459 . . 3 (𝑏 = 𝑑 → (𝑐 +no 𝑏) = (𝑐 +no 𝑑))
5 oveq1 7458 . . 3 (𝑏 = 𝑑 → (𝑏 +no 𝑐) = (𝑑 +no 𝑐))
64, 5eqeq12d 2779 . 2 (𝑏 = 𝑑 → ((𝑐 +no 𝑏) = (𝑏 +no 𝑐) ↔ (𝑐 +no 𝑑) = (𝑑 +no 𝑐)))
7 oveq1 7458 . . 3 (𝑎 = 𝑐 → (𝑎 +no 𝑑) = (𝑐 +no 𝑑))
8 oveq2 7459 . . 3 (𝑎 = 𝑐 → (𝑑 +no 𝑎) = (𝑑 +no 𝑐))
97, 8eqeq12d 2779 . 2 (𝑎 = 𝑐 → ((𝑎 +no 𝑑) = (𝑑 +no 𝑎) ↔ (𝑐 +no 𝑑) = (𝑑 +no 𝑐)))
10 oveq1 7458 . . 3 (𝑎 = 𝐴 → (𝑎 +no 𝑏) = (𝐴 +no 𝑏))
11 oveq2 7459 . . 3 (𝑎 = 𝐴 → (𝑏 +no 𝑎) = (𝑏 +no 𝐴))
1210, 11eqeq12d 2779 . 2 (𝑎 = 𝐴 → ((𝑎 +no 𝑏) = (𝑏 +no 𝑎) ↔ (𝐴 +no 𝑏) = (𝑏 +no 𝐴)))
13 oveq2 7459 . . 3 (𝑏 = 𝐵 → (𝐴 +no 𝑏) = (𝐴 +no 𝐵))
14 oveq1 7458 . . 3 (𝑏 = 𝐵 → (𝑏 +no 𝐴) = (𝐵 +no 𝐴))
1513, 14eqeq12d 2779 . 2 (𝑏 = 𝐵 → ((𝐴 +no 𝑏) = (𝑏 +no 𝐴) ↔ (𝐴 +no 𝐵) = (𝐵 +no 𝐴)))
16 eleq1 2852 . . . . . . . . . . . 12 ((𝑎 +no 𝑑) = (𝑑 +no 𝑎) → ((𝑎 +no 𝑑) ∈ 𝑥 ↔ (𝑑 +no 𝑎) ∈ 𝑥))
1716ralimi 3103 . . . . . . . . . . 11 (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎) → ∀𝑑 ∈ 𝑏 ((𝑎 +no 𝑑) ∈ 𝑥 ↔ (𝑑 +no 𝑎) ∈ 𝑥))
18 ralbi 3121 . . . . . . . . . . 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 2852 . . . . . . . . . . . 12 ((𝑐 +no 𝑏) = (𝑏 +no 𝑐) → ((𝑐 +no 𝑏) ∈ 𝑥 ↔ (𝑏 +no 𝑐) ∈ 𝑥))
2322ralimi 3103 . . . . . . . . . . 11 (∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) → ∀𝑐 ∈ 𝑎 ((𝑐 +no 𝑏) ∈ 𝑥 ↔ (𝑏 +no 𝑐) ∈ 𝑥))
24 ralbi 3121 . . . . . . . . . . 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 3423 . . . . 5 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → {𝑥 ∈ On ∣ (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥)} = {𝑥 ∈ On ∣ (∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥)})
3130inteqd 4917 . . . 4 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → ∩ {𝑥 ∈ On ∣ (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥)} = ∩ {𝑥 ∈ On ∣ (∀𝑐 ∈ 𝑎 (𝑏 +no 𝑐) ∈ 𝑥 ∧ ∀𝑑 ∈ 𝑏 (𝑑 +no 𝑎) ∈ 𝑥)})
32 naddov2 8726 . . . . 5 ((𝑎 ∈ On ∧ 𝑏 ∈ On) → (𝑎 +no 𝑏) = ∩ {𝑥 ∈ On ∣ (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥)})
3332adantr 486 . . . 4 (((𝑎 ∈ On ∧ 𝑏 ∈ On) ∧ (∀𝑐 ∈ 𝑎 ∀𝑑 ∈ 𝑏 (𝑐 +no 𝑑) = (𝑑 +no 𝑐) ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) = (𝑏 +no 𝑐) ∧ ∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) = (𝑑 +no 𝑎))) → (𝑎 +no 𝑏) = ∩ {𝑥 ∈ On ∣ (∀𝑑 ∈ 𝑏 (𝑎 +no 𝑑) ∈ 𝑥 ∧ ∀𝑐 ∈ 𝑎 (𝑐 +no 𝑏) ∈ 𝑥)})
34 naddov2 8726 . . . . . 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 2808 . . 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 8716 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 2147  ∀wral 3080  {crab 3416  ∩ cint 4912  Oncon0 6388  (class class class)co 7451   +no cnadd 8712
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5238  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-int 4913  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-tr 5219  df-id 5553  df-eprel 5558  df-po 5566  df-so 5567  df-fr 5611  df-se 5612  df-we 5613  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-pred 6330  df-ord 6391  df-on 6392  df-suc 6394  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-ov 7454  df-oprab 7455  df-mpo 7456  df-1st 8035  df-2nd 8036  df-frecs 8337  df-nadd 8713
This theorem is used by:  naddlid  8732  naddel2  8736  naddss2  8738  naddword2  8740  nadd32  8745  nadd42  8747  addsproplem2  28413  addbday  28461  nmulcom  37158  naddcomd  37173  nmuladdss  37177  nadd2rabex  44649  nadd1rabtr  44651  nadd1rabex  44653  naddwordnexlem4  44664
  Copyright terms: Public domain W3C validator