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

Theorem zfrep4 5220
Description: A version of Replacement using class abstractions. (Contributed by NM, 26-Nov-1995.)
Hypotheses
Ref Expression
zfrep4.1 {𝑥𝜑} ∈ V
zfrep4.2 (𝜑 → ∃𝑧𝑦(𝜓𝑦 = 𝑧))
Assertion
Ref Expression
zfrep4 {𝑦 ∣ ∃𝑥(𝜑𝜓)} ∈ V
Distinct variable groups:   𝜑,𝑦,𝑧   𝜓,𝑧   𝑥,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥)   𝜓(𝑥,𝑦)

Proof of Theorem zfrep4
StepHypRef Expression
1 abid 2719 . . . . 5 (𝑥 ∈ {𝑥𝜑} ↔ 𝜑)
21anbi1i 624 . . . 4 ((𝑥 ∈ {𝑥𝜑} ∧ 𝜓) ↔ (𝜑𝜓))
32exbii 1850 . . 3 (∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓) ↔ ∃𝑥(𝜑𝜓))
43abbii 2808 . 2 {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} = {𝑦 ∣ ∃𝑥(𝜑𝜓)}
5 nfab1 2909 . . . . 5 𝑥{𝑥𝜑}
6 zfrep4.1 . . . . 5 {𝑥𝜑} ∈ V
7 zfrep4.2 . . . . . 6 (𝜑 → ∃𝑧𝑦(𝜓𝑦 = 𝑧))
81, 7sylbi 216 . . . . 5 (𝑥 ∈ {𝑥𝜑} → ∃𝑧𝑦(𝜓𝑦 = 𝑧))
95, 6, 8zfrepclf 5218 . . . 4 𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓))
10 abeq2 2872 . . . . 5 (𝑧 = {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} ↔ ∀𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)))
1110exbii 1850 . . . 4 (∃𝑧 𝑧 = {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} ↔ ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)))
129, 11mpbir 230 . . 3 𝑧 𝑧 = {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)}
1312issetri 3448 . 2 {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} ∈ V
144, 13eqeltrri 2836 1 {𝑦 ∣ ∃𝑥(𝜑𝜓)} ∈ V
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  wal 1537   = wceq 1539  wex 1782  wcel 2106  {cab 2715  Vcvv 3432
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-tru 1542  df-ex 1783  df-nf 1787  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-v 3434
This theorem is referenced by:  zfpair  5344  cshwsexa  14537
  Copyright terms: Public domain W3C validator