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

Theorem axrepndlem1 9293
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 4701 . 2 𝑥(∃𝑦𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) → ∀𝑤(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)))
2 nfnae 2306 . . 3 𝑥 ¬ ∀𝑦 𝑦 = 𝑧
3 nfnae 2306 . . . . 5 𝑦 ¬ ∀𝑦 𝑦 = 𝑧
4 nfnae 2306 . . . . . 6 𝑧 ¬ ∀𝑦 𝑦 = 𝑧
5 nfs1v 2425 . . . . . . . 8 𝑧[𝑤 / 𝑧]𝜑
65a1i 11 . . . . . . 7 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧[𝑤 / 𝑧]𝜑)
7 nfcvd 2752 . . . . . . . 8 (¬ ∀𝑦 𝑦 = 𝑧𝑧𝑤)
8 nfcvf2 2775 . . . . . . . 8 (¬ ∀𝑦 𝑦 = 𝑧𝑧𝑦)
97, 8nfeqd 2758 . . . . . . 7 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧 𝑤 = 𝑦)
106, 9nfimd 1812 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧([𝑤 / 𝑧]𝜑𝑤 = 𝑦))
11 sbequ12r 2098 . . . . . . . 8 (𝑤 = 𝑧 → ([𝑤 / 𝑧]𝜑𝜑))
12 equequ1 1939 . . . . . . . 8 (𝑤 = 𝑧 → (𝑤 = 𝑦𝑧 = 𝑦))
1311, 12imbi12d 333 . . . . . . 7 (𝑤 = 𝑧 → (([𝑤 / 𝑧]𝜑𝑤 = 𝑦) ↔ (𝜑𝑧 = 𝑦)))
1413a1i 11 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → (𝑤 = 𝑧 → (([𝑤 / 𝑧]𝜑𝑤 = 𝑦) ↔ (𝜑𝑧 = 𝑦))))
154, 10, 14cbvald 2265 . . . . 5 (¬ ∀𝑦 𝑦 = 𝑧 → (∀𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) ↔ ∀𝑧(𝜑𝑧 = 𝑦)))
163, 15exbid 2078 . . . 4 (¬ ∀𝑦 𝑦 = 𝑧 → (∃𝑦𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) ↔ ∃𝑦𝑧(𝜑𝑧 = 𝑦)))
17 nfvd 1831 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧 𝑤𝑥)
188nfcrd 2757 . . . . . . . 8 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧 𝑥𝑦)
193, 6nfald 2151 . . . . . . . 8 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧𝑦[𝑤 / 𝑧]𝜑)
2018, 19nfand 1814 . . . . . . 7 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑))
212, 20nfexd 2153 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑))
2217, 21nfbid 1820 . . . . 5 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)))
23 elequ1 1984 . . . . . . . 8 (𝑤 = 𝑧 → (𝑤𝑥𝑧𝑥))
2423adantl 481 . . . . . . 7 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → (𝑤𝑥𝑧𝑥))
25 nfeqf2 2285 . . . . . . . . . . 11 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑦 𝑤 = 𝑧)
263, 25nfan1 2056 . . . . . . . . . 10 𝑦(¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧)
2711adantl 481 . . . . . . . . . 10 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → ([𝑤 / 𝑧]𝜑𝜑))
2826, 27albid 2077 . . . . . . . . 9 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → (∀𝑦[𝑤 / 𝑧]𝜑 ↔ ∀𝑦𝜑))
2928anbi2d 736 . . . . . . . 8 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → ((𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑) ↔ (𝑥𝑦 ∧ ∀𝑦𝜑)))
3029exbidv 1837 . . . . . . 7 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → (∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑) ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))
3124, 30bibi12d 334 . . . . . 6 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → ((𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)) ↔ (𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))))
3231ex 449 . . . . 5 (¬ ∀𝑦 𝑦 = 𝑧 → (𝑤 = 𝑧 → ((𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)) ↔ (𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))))
334, 22, 32cbvald 2265 . . . 4 (¬ ∀𝑦 𝑦 = 𝑧 → (∀𝑤(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)) ↔ ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))))
3416, 33imbi12d 333 . . 3 (¬ ∀𝑦 𝑦 = 𝑧 → ((∃𝑦𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) → ∀𝑤(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑))) ↔ (∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))))
352, 34exbid 2078 . 2 (¬ ∀𝑦 𝑦 = 𝑧 → (∃𝑥(∃𝑦𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) → ∀𝑤(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑))) ↔ ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))))
361, 35mpbii 222 1 (¬ ∀𝑦 𝑦 = 𝑧 → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wa 383  wal 1473  wex 1695  wnf 1699  [wsb 1867
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-rep 4699
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-cleq 2603  df-clel 2606  df-nfc 2740
This theorem is referenced by:  axrepndlem2  9294
  Copyright terms: Public domain W3C validator