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

Theorem axpr 5354
Description: Unabbreviated version of the Axiom of Pairing of ZF set theory, derived as a theorem from the other axioms.

This theorem should not be referenced by any proof. Instead, use ax-pr 5355 below so that the uses of the Axiom of Pairing can be more easily identified.

For a shorter proof using ax-ext 2710, see axprALT 5348. (Contributed by NM, 14-Nov-2006.) Remove dependency on ax-ext 2710. (Revised by Rohan Ridenour, 10-Aug-2023.) (Proof shortened by BJ, 13-Aug-2023.) Use ax-pr 5355 instead. (New usage is discouraged.)

Assertion
Ref Expression
axpr 𝑧𝑤((𝑤 = 𝑥𝑤 = 𝑦) → 𝑤𝑧)
Distinct variable groups:   𝑥,𝑧,𝑤   𝑦,𝑧,𝑤

Proof of Theorem axpr
Dummy variables 𝑠 𝑝 𝑡 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 axprlem3 5351 . . . 4 𝑧𝑤(𝑤𝑧 ↔ ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)))
2 biimpr 219 . . . . 5 ((𝑤𝑧 ↔ ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦))) → (∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)) → 𝑤𝑧))
32alimi 1817 . . . 4 (∀𝑤(𝑤𝑧 ↔ ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦))) → ∀𝑤(∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)) → 𝑤𝑧))
41, 3eximii 1842 . . 3 𝑧𝑤(∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)) → 𝑤𝑧)
5 axprlem4 5352 . . . . . . . 8 ((∀𝑠(∀𝑛𝑠𝑡 ¬ 𝑡𝑛𝑠𝑝) ∧ 𝑤 = 𝑥) → ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)))
6 axprlem5 5353 . . . . . . . 8 ((∀𝑠(∀𝑛𝑠𝑡 ¬ 𝑡𝑛𝑠𝑝) ∧ 𝑤 = 𝑦) → ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)))
75, 6jaodan 954 . . . . . . 7 ((∀𝑠(∀𝑛𝑠𝑡 ¬ 𝑡𝑛𝑠𝑝) ∧ (𝑤 = 𝑥𝑤 = 𝑦)) → ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)))
87ex 412 . . . . . 6 (∀𝑠(∀𝑛𝑠𝑡 ¬ 𝑡𝑛𝑠𝑝) → ((𝑤 = 𝑥𝑤 = 𝑦) → ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦))))
98imim1d 82 . . . . 5 (∀𝑠(∀𝑛𝑠𝑡 ¬ 𝑡𝑛𝑠𝑝) → ((∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)) → 𝑤𝑧) → ((𝑤 = 𝑥𝑤 = 𝑦) → 𝑤𝑧)))
109alimdv 1922 . . . 4 (∀𝑠(∀𝑛𝑠𝑡 ¬ 𝑡𝑛𝑠𝑝) → (∀𝑤(∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)) → 𝑤𝑧) → ∀𝑤((𝑤 = 𝑥𝑤 = 𝑦) → 𝑤𝑧)))
1110eximdv 1923 . . 3 (∀𝑠(∀𝑛𝑠𝑡 ¬ 𝑡𝑛𝑠𝑝) → (∃𝑧𝑤(∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)) → 𝑤𝑧) → ∃𝑧𝑤((𝑤 = 𝑥𝑤 = 𝑦) → 𝑤𝑧)))
124, 11mpi 20 . 2 (∀𝑠(∀𝑛𝑠𝑡 ¬ 𝑡𝑛𝑠𝑝) → ∃𝑧𝑤((𝑤 = 𝑥𝑤 = 𝑦) → 𝑤𝑧))
13 axprlem2 5350 . 2 𝑝𝑠(∀𝑛𝑠𝑡 ¬ 𝑡𝑛𝑠𝑝)
1412, 13exlimiiv 1937 1 𝑧𝑤((𝑤 = 𝑥𝑤 = 𝑦) → 𝑤𝑧)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  if-wif 1059  wal 1539  wex 1785  wral 3065
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-rep 5213  ax-sep 5226  ax-nul 5233  ax-pow 5291
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-ifp 1060  df-tru 1544  df-ex 1786  df-nf 1790  df-ral 3070
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator