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

Theorem axrep2 5235
Description: Axiom of Replacement expressed with the fewest number of different variables and without any restrictions on 𝜑. (Contributed by NM, 15-Aug-2003.) Remove dependency on ax-13 2402. (Revised by BJ, 31-May-2019.)
Assertion
Ref Expression
axrep2 ∃𝑥(∃𝑦∀𝑧(𝜑 → 𝑧 = 𝑦) → ∀𝑧(𝑧 ∈ 𝑥 ↔ ∃𝑥(𝑥 ∈ 𝑦 ∧ ∀𝑦𝜑)))
Distinct variable group:   𝑥,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥, 𝑦, 𝑧)

Proof of Theorem axrep2
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 nfe1 2187 . . . . 5 Ⅎ𝑤∃𝑤∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑤)
2 nfv 1947 . . . . 5 Ⅎ𝑤∀𝑧(𝑧 ∈ 𝑥 ↔ ∃𝑥(𝑥 ∈ 𝑦 ∧ ∀𝑦𝜑))
31, 2nfim 1929 . . . 4 Ⅎ𝑤(∃𝑤∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑤) → ∀𝑧(𝑧 ∈ 𝑥 ↔ ∃𝑥(𝑥 ∈ 𝑦 ∧ ∀𝑦𝜑)))
43nfex 2355 . . 3 Ⅎ𝑤∃𝑥(∃𝑤∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑤) → ∀𝑧(𝑧 ∈ 𝑥 ↔ ∃𝑥(𝑥 ∈ 𝑦 ∧ ∀𝑦𝜑)))
5 axreplem 5234 . . 3 (𝑤 = 𝑦 → (∃𝑥(∃𝑤∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑤) → ∀𝑧(𝑧 ∈ 𝑥 ↔ ∃𝑥(𝑥 ∈ 𝑤 ∧ ∀𝑦𝜑))) ↔ ∃𝑥(∃𝑤∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑤) → ∀𝑧(𝑧 ∈ 𝑥 ↔ ∃𝑥(𝑥 ∈ 𝑦 ∧ ∀𝑦𝜑)))))
6 axrep1 5233 . . 3 ∃𝑥(∃𝑤∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑤) → ∀𝑧(𝑧 ∈ 𝑥 ↔ ∃𝑥(𝑥 ∈ 𝑤 ∧ ∀𝑦𝜑)))
74, 5, 6chvarfv 2277 . 2 ∃𝑥(∃𝑤∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑤) → ∀𝑧(𝑧 ∈ 𝑥 ↔ ∃𝑥(𝑥 ∈ 𝑦 ∧ ∀𝑦𝜑)))
8 sp 2220 . . . . . . 7 (∀𝑦𝜑 → 𝜑)
98imim1i 64 . . . . . 6 ((𝜑 → 𝑧 = 𝑦) → (∀𝑦𝜑 → 𝑧 = 𝑦))
109alimi 1844 . . . . 5 (∀𝑧(𝜑 → 𝑧 = 𝑦) → ∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑦))
1110eximi 1868 . . . 4 (∃𝑦∀𝑧(𝜑 → 𝑧 = 𝑦) → ∃𝑦∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑦))
12 nfv 1947 . . . . 5 Ⅎ𝑤∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑦)
13 nfa1 2188 . . . . . . 7 Ⅎ𝑦∀𝑦𝜑
14 nfv 1947 . . . . . . 7 Ⅎ𝑦 𝑧 = 𝑤
1513, 14nfim 1929 . . . . . 6 Ⅎ𝑦(∀𝑦𝜑 → 𝑧 = 𝑤)
1615nfal 2354 . . . . 5 Ⅎ𝑦∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑤)
17 equequ2 2059 . . . . . . 7 (𝑦 = 𝑤 → (𝑧 = 𝑦 ↔ 𝑧 = 𝑤))
1817imbi2d 343 . . . . . 6 (𝑦 = 𝑤 → ((∀𝑦𝜑 → 𝑧 = 𝑦) ↔ (∀𝑦𝜑 → 𝑧 = 𝑤)))
1918albidv 1953 . . . . 5 (𝑦 = 𝑤 → (∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑦) ↔ ∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑤)))
2012, 16, 19cbvexv1 2372 . . . 4 (∃𝑦∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑦) ↔ ∃𝑤∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑤))
2111, 20sylib 221 . . 3 (∃𝑦∀𝑧(𝜑 → 𝑧 = 𝑦) → ∃𝑤∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑤))
2221imim1i 64 . 2 ((∃𝑤∀𝑧(∀𝑦𝜑 → 𝑧 = 𝑤) → ∀𝑧(𝑧 ∈ 𝑥 ↔ ∃𝑥(𝑥 ∈ 𝑦 ∧ ∀𝑦𝜑))) → (∃𝑦∀𝑧(𝜑 → 𝑧 = 𝑦) → ∀𝑧(𝑧 ∈ 𝑥 ↔ ∃𝑥(𝑥 ∈ 𝑦 ∧ ∀𝑦𝜑))))
237, 22eximii 1870 1 ∃𝑥(∃𝑦∀𝑧(𝜑 → 𝑧 = 𝑦) → ∀𝑧(𝑧 ∈ 𝑥 ↔ ∃𝑥(𝑥 ∈ 𝑦 ∧ ∀𝑦𝜑)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1568  ∃wex 1812
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-rep 5232
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-ex 1813  df-nf 1817
This theorem is used by:  axrep3  5236  axrepndlem1  10658
  Copyright terms: Public domain W3C validator