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

Theorem axprg 5383
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 2741 . . . . 5 (𝑤 = 𝑥 → (𝑤 = 𝐴𝑥 = 𝐴))
2 eqeq1 2741 . . . . 5 (𝑤 = 𝑥 → (𝑤 = 𝐵𝑥 = 𝐵))
31, 2orbi12d 919 . . . 4 (𝑤 = 𝑥 → ((𝑤 = 𝐴𝑤 = 𝐵) ↔ (𝑥 = 𝐴𝑥 = 𝐵)))
43cbvexvw 2039 . . 3 (∃𝑤(𝑤 = 𝐴𝑤 = 𝐵) ↔ ∃𝑥(𝑥 = 𝐴𝑥 = 𝐵))
5 axprglem 5382 . . . . 5 (𝑥 = 𝐴 → ∃𝑧𝑤((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
6 axprglem 5382 . . . . . 6 (𝑥 = 𝐵 → ∃𝑧𝑤((𝑤 = 𝐵𝑤 = 𝐴) → 𝑤𝑧))
7 pm1.4 870 . . . . . . . . 9 ((𝑤 = 𝐴𝑤 = 𝐵) → (𝑤 = 𝐵𝑤 = 𝐴))
87imim1i 63 . . . . . . . 8 (((𝑤 = 𝐵𝑤 = 𝐴) → 𝑤𝑧) → ((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
98alimi 1813 . . . . . . 7 (∀𝑤((𝑤 = 𝐵𝑤 = 𝐴) → 𝑤𝑧) → ∀𝑤((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
109eximi 1837 . . . . . 6 (∃𝑧𝑤((𝑤 = 𝐵𝑤 = 𝐴) → 𝑤𝑧) → ∃𝑧𝑤((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
116, 10syl 17 . . . . 5 (𝑥 = 𝐵 → ∃𝑧𝑤((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
125, 11jaoi 858 . . . 4 ((𝑥 = 𝐴𝑥 = 𝐵) → ∃𝑧𝑤((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
1312exlimiv 1932 . . 3 (∃𝑥(𝑥 = 𝐴𝑥 = 𝐵) → ∃𝑧𝑤((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
144, 13sylbi 217 . 2 (∃𝑤(𝑤 = 𝐴𝑤 = 𝐵) → ∃𝑧𝑤((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
15 alnex 1783 . . . . 5 (∀𝑤 ¬ (𝑤 = 𝐴𝑤 = 𝐵) ↔ ¬ ∃𝑤(𝑤 = 𝐴𝑤 = 𝐵))
16 pm2.21 123 . . . . . 6 (¬ (𝑤 = 𝐴𝑤 = 𝐵) → ((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
1716alimi 1813 . . . . 5 (∀𝑤 ¬ (𝑤 = 𝐴𝑤 = 𝐵) → ∀𝑤((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
1815, 17sylbir 235 . . . 4 (¬ ∃𝑤(𝑤 = 𝐴𝑤 = 𝐵) → ∀𝑤((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
1918exgen 1976 . . 3 𝑧(¬ ∃𝑤(𝑤 = 𝐴𝑤 = 𝐵) → ∀𝑤((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
201919.37iv 1950 . 2 (¬ ∃𝑤(𝑤 = 𝐴𝑤 = 𝐵) → ∃𝑧𝑤((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧))
2114, 20pm2.61i 182 1 𝑧𝑤((𝑤 = 𝐴𝑤 = 𝐵) → 𝑤𝑧)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wo 848  wal 1540   = wceq 1542  wex 1781
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 1912  ax-6 1969  ax-7 2010  ax-8 2116  ax-9 2124  ax-ext 2709  ax-pr 5379
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 849  df-tru 1545  df-ex 1782  df-sb 2069  df-clab 2716  df-cleq 2729  df-clel 2812
This theorem is referenced by:  prex  5384
  Copyright terms: Public domain W3C validator