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

Theorem zfrep4 4812
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 2639 . . . . 5 (𝑥 ∈ {𝑥𝜑} ↔ 𝜑)
21anbi1i 731 . . . 4 ((𝑥 ∈ {𝑥𝜑} ∧ 𝜓) ↔ (𝜑𝜓))
32exbii 1814 . . 3 (∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓) ↔ ∃𝑥(𝜑𝜓))
43abbii 2768 . 2 {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} = {𝑦 ∣ ∃𝑥(𝜑𝜓)}
5 nfab1 2795 . . . . 5 𝑥{𝑥𝜑}
6 zfrep4.1 . . . . 5 {𝑥𝜑} ∈ V
7 zfrep4.2 . . . . . 6 (𝜑 → ∃𝑧𝑦(𝜓𝑦 = 𝑧))
81, 7sylbi 207 . . . . 5 (𝑥 ∈ {𝑥𝜑} → ∃𝑧𝑦(𝜓𝑦 = 𝑧))
95, 6, 8zfrepclf 4810 . . . 4 𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓))
10 abeq2 2761 . . . . 5 (𝑧 = {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} ↔ ∀𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)))
1110exbii 1814 . . . 4 (∃𝑧 𝑧 = {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} ↔ ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)))
129, 11mpbir 221 . . 3 𝑧 𝑧 = {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)}
1312issetri 3241 . 2 {𝑦 ∣ ∃𝑥(𝑥 ∈ {𝑥𝜑} ∧ 𝜓)} ∈ V
144, 13eqeltrri 2727 1 {𝑦 ∣ ∃𝑥(𝜑𝜓)} ∈ V
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 383  wal 1521   = wceq 1523  wex 1744  wcel 2030  {cab 2637  Vcvv 3231
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-rep 4804
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-tru 1526  df-ex 1745  df-nf 1750  df-sb 1938  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-v 3233
This theorem is referenced by:  zfpair  4934  cshwsexa  13616
  Copyright terms: Public domain W3C validator