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

Theorem zfrep4 5215
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 623 . . . 4 ((𝑥 ∈ {𝑥𝜑} ∧ 𝜓) ↔ (𝜑𝜓))
32exbii 1851 . . 3 (∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓) ↔ ∃𝑥(𝜑𝜓))
43abbii 2809 . 2 {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} = {𝑦 ∣ ∃𝑥(𝜑𝜓)}
5 nfab1 2908 . . . . 5 𝑥{𝑥𝜑}
6 zfrep4.1 . . . . 5 {𝑥𝜑} ∈ V
7 zfrep4.2 . . . . . 6 (𝜑 → ∃𝑧𝑦(𝜓𝑦 = 𝑧))
81, 7sylbi 216 . . . . 5 (𝑥 ∈ {𝑥𝜑} → ∃𝑧𝑦(𝜓𝑦 = 𝑧))
95, 6, 8zfrepclf 5213 . . . 4 𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓))
10 abeq2 2871 . . . . 5 (𝑧 = {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} ↔ ∀𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)))
1110exbii 1851 . . . 4 (∃𝑧 𝑧 = {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} ↔ ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)))
129, 11mpbir 230 . . 3 𝑧 𝑧 = {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)}
1312issetri 3438 . 2 {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} ∈ V
144, 13eqeltrri 2836 1 {𝑦 ∣ ∃𝑥(𝜑𝜓)} ∈ V
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wal 1537   = wceq 1539  wex 1783  wcel 2108  {cab 2715  Vcvv 3422
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-v 3424
This theorem is referenced by:  zfpair  5339  cshwsexa  14465
  Copyright terms: Public domain W3C validator