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

Theorem zfrepclf 5250
Description: An inference based on the Axiom of Replacement. Typically, 𝜑 defines a function from 𝑥 to 𝑦. (Contributed by NM, 26-Nov-1995.)
Hypotheses
Ref Expression
zfrepclf.1 Ⅎ𝑥𝐴
zfrepclf.2 𝐴 ∈ V
zfrepclf.3 (𝑥 ∈ 𝐴 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧))
Assertion
Ref Expression
zfrepclf ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))
Distinct variable groups:   𝑦,𝑧,𝐴   𝜑,𝑧   𝑥,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥, 𝑦)   𝐴(𝑥)

Proof of Theorem zfrepclf
Dummy variable 𝑣 is distinct from all other variables.
StepHypRef Expression
1 zfrepclf.2 . 2 𝐴 ∈ V
2 zfrepclf.1 . . . . . 6 Ⅎ𝑥𝐴
32nfeq2 2943 . . . . 5 Ⅎ𝑥 𝑣 = 𝐴
4 eleq2 2853 . . . . . 6 (𝑣 = 𝐴 → (𝑥 ∈ 𝑣 ↔ 𝑥 ∈ 𝐴))
5 zfrepclf.3 . . . . . 6 (𝑥 ∈ 𝐴 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧))
64, 5biimtrdi 256 . . . . 5 (𝑣 = 𝐴 → (𝑥 ∈ 𝑣 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧)))
73, 6alrimi 2253 . . . 4 (𝑣 = 𝐴 → ∀𝑥(𝑥 ∈ 𝑣 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧)))
8 nfv 1949 . . . . 5 Ⅎ𝑧𝜑
98axrep5 5245 . . . 4 (∀𝑥(𝑥 ∈ 𝑣 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧)) → ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)))
107, 9syl 18 . . 3 (𝑣 = 𝐴 → ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)))
114anbi1d 643 . . . . . . 7 (𝑣 = 𝐴 → ((𝑥 ∈ 𝑣 ∧ 𝜑) ↔ (𝑥 ∈ 𝐴 ∧ 𝜑)))
123, 11exbid 2263 . . . . . 6 (𝑣 = 𝐴 → (∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑) ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑)))
1312bibi2d 345 . . . . 5 (𝑣 = 𝐴 → ((𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)) ↔ (𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))))
1413albidv 1955 . . . 4 (𝑣 = 𝐴 → (∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)) ↔ ∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))))
1514exbidv 1956 . . 3 (𝑣 = 𝐴 → (∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)) ↔ ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))))
1610, 15mpbid 235 . 2 (𝑣 = 𝐴 → ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑)))
171, 16vtocle 3522 1 ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1568   = wceq 1570  ∃wex 1812   ∈ wcel 2147  Ⅎwnfc 2911  Vcvv 3454
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5238
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-ex 1813  df-nf 1817  df-cleq 2755  df-clel 2839  df-nfc 2913
This theorem is used by:  zfrep3cl  5251  zfrep4  5252
  Copyright terms: Public domain W3C validator