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

Theorem axrepndlem1 9414
Description: Lemma for the Axiom of Replacement with no distinct variable conditions. (Contributed by NM, 2-Jan-2002.)
Assertion
Ref Expression
axrepndlem1 (¬ ∀𝑦 𝑦 = 𝑧 → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))))
Distinct variable groups:   𝑥,𝑧   𝑥,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧)

Proof of Theorem axrepndlem1
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 axrep2 4773 . 2 𝑥(∃𝑦𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) → ∀𝑤(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)))
2 nfnae 2318 . . 3 𝑥 ¬ ∀𝑦 𝑦 = 𝑧
3 nfnae 2318 . . . . 5 𝑦 ¬ ∀𝑦 𝑦 = 𝑧
4 nfnae 2318 . . . . . 6 𝑧 ¬ ∀𝑦 𝑦 = 𝑧
5 nfs1v 2437 . . . . . . . 8 𝑧[𝑤 / 𝑧]𝜑
65a1i 11 . . . . . . 7 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧[𝑤 / 𝑧]𝜑)
7 nfcvd 2765 . . . . . . . 8 (¬ ∀𝑦 𝑦 = 𝑧𝑧𝑤)
8 nfcvf2 2789 . . . . . . . 8 (¬ ∀𝑦 𝑦 = 𝑧𝑧𝑦)
97, 8nfeqd 2772 . . . . . . 7 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧 𝑤 = 𝑦)
106, 9nfimd 1823 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧([𝑤 / 𝑧]𝜑𝑤 = 𝑦))
11 sbequ12r 2112 . . . . . . . 8 (𝑤 = 𝑧 → ([𝑤 / 𝑧]𝜑𝜑))
12 equequ1 1952 . . . . . . . 8 (𝑤 = 𝑧 → (𝑤 = 𝑦𝑧 = 𝑦))
1311, 12imbi12d 334 . . . . . . 7 (𝑤 = 𝑧 → (([𝑤 / 𝑧]𝜑𝑤 = 𝑦) ↔ (𝜑𝑧 = 𝑦)))
1413a1i 11 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → (𝑤 = 𝑧 → (([𝑤 / 𝑧]𝜑𝑤 = 𝑦) ↔ (𝜑𝑧 = 𝑦))))
154, 10, 14cbvald 2277 . . . . 5 (¬ ∀𝑦 𝑦 = 𝑧 → (∀𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) ↔ ∀𝑧(𝜑𝑧 = 𝑦)))
163, 15exbid 2091 . . . 4 (¬ ∀𝑦 𝑦 = 𝑧 → (∃𝑦𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) ↔ ∃𝑦𝑧(𝜑𝑧 = 𝑦)))
17 nfvd 1844 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧 𝑤𝑥)
188nfcrd 2771 . . . . . . . 8 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧 𝑥𝑦)
193, 6nfald 2165 . . . . . . . 8 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧𝑦[𝑤 / 𝑧]𝜑)
2018, 19nfand 1826 . . . . . . 7 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑))
212, 20nfexd 2167 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑))
2217, 21nfbid 1832 . . . . 5 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)))
23 elequ1 1997 . . . . . . . 8 (𝑤 = 𝑧 → (𝑤𝑥𝑧𝑥))
2423adantl 482 . . . . . . 7 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → (𝑤𝑥𝑧𝑥))
25 nfeqf2 2297 . . . . . . . . . . 11 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑦 𝑤 = 𝑧)
263, 25nfan1 2068 . . . . . . . . . 10 𝑦(¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧)
2711adantl 482 . . . . . . . . . 10 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → ([𝑤 / 𝑧]𝜑𝜑))
2826, 27albid 2090 . . . . . . . . 9 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → (∀𝑦[𝑤 / 𝑧]𝜑 ↔ ∀𝑦𝜑))
2928anbi2d 740 . . . . . . . 8 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → ((𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑) ↔ (𝑥𝑦 ∧ ∀𝑦𝜑)))
3029exbidv 1850 . . . . . . 7 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → (∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑) ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))
3124, 30bibi12d 335 . . . . . 6 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → ((𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)) ↔ (𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))))
3231ex 450 . . . . 5 (¬ ∀𝑦 𝑦 = 𝑧 → (𝑤 = 𝑧 → ((𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)) ↔ (𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))))
334, 22, 32cbvald 2277 . . . 4 (¬ ∀𝑦 𝑦 = 𝑧 → (∀𝑤(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)) ↔ ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))))
3416, 33imbi12d 334 . . 3 (¬ ∀𝑦 𝑦 = 𝑧 → ((∃𝑦𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) → ∀𝑤(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑))) ↔ (∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))))
352, 34exbid 2091 . 2 (¬ ∀𝑦 𝑦 = 𝑧 → (∃𝑥(∃𝑦𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) → ∀𝑤(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑))) ↔ ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))))
361, 35mpbii 223 1 (¬ ∀𝑦 𝑦 = 𝑧 → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wa 384  wal 1481  wex 1704  wnf 1708  [wsb 1880
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-rep 4771
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-cleq 2615  df-clel 2618  df-nfc 2753
This theorem is referenced by:  axrepndlem2  9415
  Copyright terms: Public domain W3C validator