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

Theorem zfrep4 4739
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 2609 . . . . 5 (𝑥 ∈ {𝑥𝜑} ↔ 𝜑)
21anbi1i 730 . . . 4 ((𝑥 ∈ {𝑥𝜑} ∧ 𝜓) ↔ (𝜑𝜓))
32exbii 1771 . . 3 (∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓) ↔ ∃𝑥(𝜑𝜓))
43abbii 2736 . 2 {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} = {𝑦 ∣ ∃𝑥(𝜑𝜓)}
5 nfab1 2763 . . . . 5 𝑥{𝑥𝜑}
6 zfrep4.1 . . . . 5 {𝑥𝜑} ∈ V
7 zfrep4.2 . . . . . 6 (𝜑 → ∃𝑧𝑦(𝜓𝑦 = 𝑧))
81, 7sylbi 207 . . . . 5 (𝑥 ∈ {𝑥𝜑} → ∃𝑧𝑦(𝜓𝑦 = 𝑧))
95, 6, 8zfrepclf 4737 . . . 4 𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓))
10 abeq2 2729 . . . . 5 (𝑧 = {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} ↔ ∀𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)))
1110exbii 1771 . . . 4 (∃𝑧 𝑧 = {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} ↔ ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)))
129, 11mpbir 221 . . 3 𝑧 𝑧 = {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)}
1312issetri 3196 . 2 {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} ∈ V
144, 13eqeltrri 2695 1 {𝑦 ∣ ∃𝑥(𝜑𝜓)} ∈ V
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384  wal 1478   = wceq 1480  wex 1701  wcel 1987  {cab 2607  Vcvv 3186
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-rep 4731
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-v 3188
This theorem is referenced by:  zfpair  4865  cshwsexa  13507
  Copyright terms: Public domain W3C validator