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

Theorem axprg 5394
Description: Derive The Axiom of Pairing with class variables. (Contributed by GG, 6-Mar-2026.)
Assertion
Ref Expression
axprg ∃𝑧∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧)
Distinct variable groups:   𝑧,𝐴,𝑤   𝑧,𝐵,𝑤

Proof of Theorem axprg
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 eqeq1 2764 . . . . 5 (𝑤 = 𝑥 → (𝑤 = 𝐴 ↔ 𝑥 = 𝐴))
2 eqeq1 2764 . . . . 5 (𝑤 = 𝑥 → (𝑤 = 𝐵 ↔ 𝑥 = 𝐵))
31, 2orbi12d 932 . . . 4 (𝑤 = 𝑥 → ((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) ↔ (𝑥 = 𝐴 ∨ 𝑥 = 𝐵)))
43cbvexvw 2069 . . 3 (∃𝑤(𝑤 = 𝐴 ∨ 𝑤 = 𝐵) ↔ ∃𝑥(𝑥 = 𝐴 ∨ 𝑥 = 𝐵))
5 axprglem 5393 . . . . 5 (𝑥 = 𝐴 → ∃𝑧∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
6 axprglem 5393 . . . . . 6 (𝑥 = 𝐵 → ∃𝑧∀𝑤((𝑤 = 𝐵 ∨ 𝑤 = 𝐴) → 𝑤 ∈ 𝑧))
7 pm1.4 883 . . . . . . . . 9 ((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → (𝑤 = 𝐵 ∨ 𝑤 = 𝐴))
87imim1i 64 . . . . . . . 8 (((𝑤 = 𝐵 ∨ 𝑤 = 𝐴) → 𝑤 ∈ 𝑧) → ((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
98alimi 1843 . . . . . . 7 (∀𝑤((𝑤 = 𝐵 ∨ 𝑤 = 𝐴) → 𝑤 ∈ 𝑧) → ∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
109eximi 1867 . . . . . 6 (∃𝑧∀𝑤((𝑤 = 𝐵 ∨ 𝑤 = 𝐴) → 𝑤 ∈ 𝑧) → ∃𝑧∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
116, 10syl 18 . . . . 5 (𝑥 = 𝐵 → ∃𝑧∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
125, 11jaoi 871 . . . 4 ((𝑥 = 𝐴 ∨ 𝑥 = 𝐵) → ∃𝑧∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
1312exlimiv 1962 . . 3 (∃𝑥(𝑥 = 𝐴 ∨ 𝑥 = 𝐵) → ∃𝑧∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
144, 13sylbi 220 . 2 (∃𝑤(𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → ∃𝑧∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
15 alnex 1813 . . . . 5 (∀𝑤 ¬ (𝑤 = 𝐴 ∨ 𝑤 = 𝐵) ↔ ¬ ∃𝑤(𝑤 = 𝐴 ∨ 𝑤 = 𝐵))
16 pm2.21 124 . . . . . 6 (¬ (𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → ((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
1716alimi 1843 . . . . 5 (∀𝑤 ¬ (𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → ∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
1815, 17sylbir 238 . . . 4 (¬ ∃𝑤(𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → ∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
1918exgen 2006 . . 3 ∃𝑧(¬ ∃𝑤(𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → ∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
201919.37iv 1980 . 2 (¬ ∃𝑤(𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → ∃𝑧∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧))
2114, 20pm2.61i 184 1 ∃𝑧∀𝑤((𝑤 = 𝐴 ∨ 𝑤 = 𝐵) → 𝑤 ∈ 𝑧)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∨ wo 861  ∀wal 1567   = wceq 1569  ∃wex 1811
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-ext 2732  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1572  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835
This theorem is used by:  prex  5395
  Copyright terms: Public domain W3C validator