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

Theorem axrepndlem1 10332
Description: Lemma for the Axiom of Replacement with no distinct variable conditions. Usage of this theorem is discouraged because it depends on ax-13 2373. (Contributed by NM, 2-Jan-2002.) (New usage is discouraged.)
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 5216 . 2 𝑥(∃𝑦𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) → ∀𝑤(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)))
2 nfnae 2435 . . 3 𝑥 ¬ ∀𝑦 𝑦 = 𝑧
3 nfnae 2435 . . . . 5 𝑦 ¬ ∀𝑦 𝑦 = 𝑧
4 nfnae 2435 . . . . . 6 𝑧 ¬ ∀𝑦 𝑦 = 𝑧
5 nfs1v 2156 . . . . . . . 8 𝑧[𝑤 / 𝑧]𝜑
65a1i 11 . . . . . . 7 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧[𝑤 / 𝑧]𝜑)
7 nfcvd 2909 . . . . . . . 8 (¬ ∀𝑦 𝑦 = 𝑧𝑧𝑤)
8 nfcvf2 2938 . . . . . . . 8 (¬ ∀𝑦 𝑦 = 𝑧𝑧𝑦)
97, 8nfeqd 2918 . . . . . . 7 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧 𝑤 = 𝑦)
106, 9nfimd 1900 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧([𝑤 / 𝑧]𝜑𝑤 = 𝑦))
11 sbequ12r 2248 . . . . . . . 8 (𝑤 = 𝑧 → ([𝑤 / 𝑧]𝜑𝜑))
12 equequ1 2031 . . . . . . . 8 (𝑤 = 𝑧 → (𝑤 = 𝑦𝑧 = 𝑦))
1311, 12imbi12d 344 . . . . . . 7 (𝑤 = 𝑧 → (([𝑤 / 𝑧]𝜑𝑤 = 𝑦) ↔ (𝜑𝑧 = 𝑦)))
1413a1i 11 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → (𝑤 = 𝑧 → (([𝑤 / 𝑧]𝜑𝑤 = 𝑦) ↔ (𝜑𝑧 = 𝑦))))
154, 10, 14cbvald 2408 . . . . 5 (¬ ∀𝑦 𝑦 = 𝑧 → (∀𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) ↔ ∀𝑧(𝜑𝑧 = 𝑦)))
163, 15exbid 2219 . . . 4 (¬ ∀𝑦 𝑦 = 𝑧 → (∃𝑦𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) ↔ ∃𝑦𝑧(𝜑𝑧 = 𝑦)))
17 nfvd 1921 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧 𝑤𝑥)
188nfcrd 2897 . . . . . . . 8 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧 𝑥𝑦)
193, 6nfald 2325 . . . . . . . 8 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧𝑦[𝑤 / 𝑧]𝜑)
2018, 19nfand 1903 . . . . . . 7 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑))
212, 20nfexd 2326 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑))
2217, 21nfbid 1908 . . . . 5 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑧(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)))
23 elequ1 2116 . . . . . . . 8 (𝑤 = 𝑧 → (𝑤𝑥𝑧𝑥))
2423adantl 481 . . . . . . 7 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → (𝑤𝑥𝑧𝑥))
25 nfeqf2 2378 . . . . . . . . . . 11 (¬ ∀𝑦 𝑦 = 𝑧 → Ⅎ𝑦 𝑤 = 𝑧)
263, 25nfan1 2196 . . . . . . . . . 10 𝑦(¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧)
2711adantl 481 . . . . . . . . . 10 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → ([𝑤 / 𝑧]𝜑𝜑))
2826, 27albid 2218 . . . . . . . . 9 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → (∀𝑦[𝑤 / 𝑧]𝜑 ↔ ∀𝑦𝜑))
2928anbi2d 628 . . . . . . . 8 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → ((𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑) ↔ (𝑥𝑦 ∧ ∀𝑦𝜑)))
3029exbidv 1927 . . . . . . 7 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → (∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑) ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))
3124, 30bibi12d 345 . . . . . 6 ((¬ ∀𝑦 𝑦 = 𝑧𝑤 = 𝑧) → ((𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)) ↔ (𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))))
3231ex 412 . . . . 5 (¬ ∀𝑦 𝑦 = 𝑧 → (𝑤 = 𝑧 → ((𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)) ↔ (𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))))
334, 22, 32cbvald 2408 . . . 4 (¬ ∀𝑦 𝑦 = 𝑧 → (∀𝑤(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑)) ↔ ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))))
3416, 33imbi12d 344 . . 3 (¬ ∀𝑦 𝑦 = 𝑧 → ((∃𝑦𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) → ∀𝑤(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑))) ↔ (∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))))
352, 34exbid 2219 . 2 (¬ ∀𝑦 𝑦 = 𝑧 → (∃𝑥(∃𝑦𝑤([𝑤 / 𝑧]𝜑𝑤 = 𝑦) → ∀𝑤(𝑤𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦[𝑤 / 𝑧]𝜑))) ↔ ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))))
361, 35mpbii 232 1 (¬ ∀𝑦 𝑦 = 𝑧 → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wal 1539  wex 1785  wnf 1789  [wsb 2070
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-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-13 2373  ax-ext 2710  ax-rep 5213
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1544  df-ex 1786  df-nf 1790  df-sb 2071  df-cleq 2731  df-clel 2817  df-nfc 2890
This theorem is referenced by:  axrepndlem2  10333
  Copyright terms: Public domain W3C validator