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

Theorem axregndlem2 9425
Description: Lemma for the Axiom of Regularity with no distinct variable conditions. (Contributed by NM, 3-Jan-2002.) (Proof shortened by Mario Carneiro, 10-Dec-2016.)
Assertion
Ref Expression
axregndlem2 (𝑥𝑦 → ∃𝑥(𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦)))
Distinct variable group:   𝑦,𝑧

Proof of Theorem axregndlem2
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 axreg2 8498 . . . . . 6 (𝑤𝑦 → ∃𝑤(𝑤𝑦 ∧ ∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦)))
21ax-gen 1722 . . . . 5 𝑤(𝑤𝑦 → ∃𝑤(𝑤𝑦 ∧ ∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦)))
3 nfnae 2318 . . . . . . 7 𝑥 ¬ ∀𝑥 𝑥 = 𝑦
4 nfnae 2318 . . . . . . 7 𝑥 ¬ ∀𝑥 𝑥 = 𝑧
53, 4nfan 1828 . . . . . 6 𝑥(¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧)
6 nfcvd 2765 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → 𝑥𝑤)
7 nfcvf 2788 . . . . . . . . 9 (¬ ∀𝑥 𝑥 = 𝑦𝑥𝑦)
87adantr 481 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → 𝑥𝑦)
96, 8nfeld 2773 . . . . . . 7 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → Ⅎ𝑥 𝑤𝑦)
10 nfv 1843 . . . . . . . 8 𝑤(¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧)
11 nfnae 2318 . . . . . . . . . . 11 𝑧 ¬ ∀𝑥 𝑥 = 𝑦
12 nfnae 2318 . . . . . . . . . . 11 𝑧 ¬ ∀𝑥 𝑥 = 𝑧
1311, 12nfan 1828 . . . . . . . . . 10 𝑧(¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧)
14 nfcvf 2788 . . . . . . . . . . . . 13 (¬ ∀𝑥 𝑥 = 𝑧𝑥𝑧)
1514adantl 482 . . . . . . . . . . . 12 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → 𝑥𝑧)
1615, 6nfeld 2773 . . . . . . . . . . 11 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → Ⅎ𝑥 𝑧𝑤)
1715, 8nfeld 2773 . . . . . . . . . . . 12 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → Ⅎ𝑥 𝑧𝑦)
1817nfnd 1785 . . . . . . . . . . 11 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → Ⅎ𝑥 ¬ 𝑧𝑦)
1916, 18nfimd 1823 . . . . . . . . . 10 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → Ⅎ𝑥(𝑧𝑤 → ¬ 𝑧𝑦))
2013, 19nfald 2165 . . . . . . . . 9 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → Ⅎ𝑥𝑧(𝑧𝑤 → ¬ 𝑧𝑦))
219, 20nfand 1826 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → Ⅎ𝑥(𝑤𝑦 ∧ ∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦)))
2210, 21nfexd 2167 . . . . . . 7 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → Ⅎ𝑥𝑤(𝑤𝑦 ∧ ∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦)))
239, 22nfimd 1823 . . . . . 6 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → Ⅎ𝑥(𝑤𝑦 → ∃𝑤(𝑤𝑦 ∧ ∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦))))
24 simpr 477 . . . . . . . . 9 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ 𝑤 = 𝑥) → 𝑤 = 𝑥)
2524eleq1d 2686 . . . . . . . 8 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ 𝑤 = 𝑥) → (𝑤𝑦𝑥𝑦))
26 nfcvd 2765 . . . . . . . . . . . . . . 15 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → 𝑧𝑤)
27 nfcvf2 2789 . . . . . . . . . . . . . . . 16 (¬ ∀𝑥 𝑥 = 𝑧𝑧𝑥)
2827adantl 482 . . . . . . . . . . . . . . 15 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → 𝑧𝑥)
2926, 28nfeqd 2772 . . . . . . . . . . . . . 14 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → Ⅎ𝑧 𝑤 = 𝑥)
3013, 29nfan1 2068 . . . . . . . . . . . . 13 𝑧((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ 𝑤 = 𝑥)
3124eleq2d 2687 . . . . . . . . . . . . . 14 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ 𝑤 = 𝑥) → (𝑧𝑤𝑧𝑥))
3231imbi1d 331 . . . . . . . . . . . . 13 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ 𝑤 = 𝑥) → ((𝑧𝑤 → ¬ 𝑧𝑦) ↔ (𝑧𝑥 → ¬ 𝑧𝑦)))
3330, 32albid 2090 . . . . . . . . . . . 12 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ 𝑤 = 𝑥) → (∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦) ↔ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦)))
3425, 33anbi12d 747 . . . . . . . . . . 11 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ 𝑤 = 𝑥) → ((𝑤𝑦 ∧ ∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦)) ↔ (𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦))))
3534ex 450 . . . . . . . . . 10 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → (𝑤 = 𝑥 → ((𝑤𝑦 ∧ ∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦)) ↔ (𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦)))))
365, 21, 35cbvexd 2278 . . . . . . . . 9 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → (∃𝑤(𝑤𝑦 ∧ ∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦)) ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦))))
3736adantr 481 . . . . . . . 8 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ 𝑤 = 𝑥) → (∃𝑤(𝑤𝑦 ∧ ∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦)) ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦))))
3825, 37imbi12d 334 . . . . . . 7 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ 𝑤 = 𝑥) → ((𝑤𝑦 → ∃𝑤(𝑤𝑦 ∧ ∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦))) ↔ (𝑥𝑦 → ∃𝑥(𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦)))))
3938ex 450 . . . . . 6 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → (𝑤 = 𝑥 → ((𝑤𝑦 → ∃𝑤(𝑤𝑦 ∧ ∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦))) ↔ (𝑥𝑦 → ∃𝑥(𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦))))))
405, 23, 39cbvald 2277 . . . . 5 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → (∀𝑤(𝑤𝑦 → ∃𝑤(𝑤𝑦 ∧ ∀𝑧(𝑧𝑤 → ¬ 𝑧𝑦))) ↔ ∀𝑥(𝑥𝑦 → ∃𝑥(𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦)))))
412, 40mpbii 223 . . . 4 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → ∀𝑥(𝑥𝑦 → ∃𝑥(𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦))))
424119.21bi 2059 . . 3 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) → (𝑥𝑦 → ∃𝑥(𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦))))
4342ex 450 . 2 (¬ ∀𝑥 𝑥 = 𝑦 → (¬ ∀𝑥 𝑥 = 𝑧 → (𝑥𝑦 → ∃𝑥(𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦)))))
44 elirrv 8504 . . . . 5 ¬ 𝑥𝑥
45 elequ2 2004 . . . . 5 (𝑥 = 𝑦 → (𝑥𝑥𝑥𝑦))
4644, 45mtbii 316 . . . 4 (𝑥 = 𝑦 → ¬ 𝑥𝑦)
4746sps 2055 . . 3 (∀𝑥 𝑥 = 𝑦 → ¬ 𝑥𝑦)
4847pm2.21d 118 . 2 (∀𝑥 𝑥 = 𝑦 → (𝑥𝑦 → ∃𝑥(𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦))))
49 axregndlem1 9424 . 2 (∀𝑥 𝑥 = 𝑧 → (𝑥𝑦 → ∃𝑥(𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦))))
5043, 48, 49pm2.61ii 177 1 (𝑥𝑦 → ∃𝑥(𝑥𝑦 ∧ ∀𝑧(𝑧𝑥 → ¬ 𝑧𝑦)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wa 384  wal 1481  wex 1704  wnfc 2751
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pr 4906  ax-reg 8497
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ral 2917  df-rex 2918  df-v 3202  df-dif 3577  df-un 3579  df-nul 3916  df-sn 4178  df-pr 4180
This theorem is referenced by:  axregnd  9426
  Copyright terms: Public domain W3C validator