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

Theorem zfrepclf 5243
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 2939 . . . . 5 Ⅎ𝑥 𝑣 = 𝐴
4 eleq2 2849 . . . . . 6 (𝑣 = 𝐴 → (𝑥 ∈ 𝑣 ↔ 𝑥 ∈ 𝐴))
5 zfrepclf.3 . . . . . 6 (𝑥 ∈ 𝐴 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧))
64, 5biimtrdi 256 . . . . 5 (𝑣 = 𝐴 → (𝑥 ∈ 𝑣 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧)))
73, 6alrimi 2249 . . . 4 (𝑣 = 𝐴 → ∀𝑥(𝑥 ∈ 𝑣 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧)))
8 nfv 1946 . . . . 5 Ⅎ𝑧𝜑
98axrep5 5238 . . . 4 (∀𝑥(𝑥 ∈ 𝑣 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧)) → ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)))
107, 9syl 18 . . 3 (𝑣 = 𝐴 → ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)))
114anbi1d 643 . . . . . . 7 (𝑣 = 𝐴 → ((𝑥 ∈ 𝑣 ∧ 𝜑) ↔ (𝑥 ∈ 𝐴 ∧ 𝜑)))
123, 11exbid 2259 . . . . . 6 (𝑣 = 𝐴 → (∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑) ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑)))
1312bibi2d 345 . . . . 5 (𝑣 = 𝐴 → ((𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)) ↔ (𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))))
1413albidv 1952 . . . 4 (𝑣 = 𝐴 → (∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)) ↔ ∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))))
1514exbidv 1953 . . 3 (𝑣 = 𝐴 → (∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)) ↔ ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))))
1610, 15mpbid 235 . 2 (𝑣 = 𝐴 → ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑)))
171, 16vtocle 3518 1 ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1567   = wceq 1569  ∃wex 1811   ∈ wcel 2144  Ⅎwnfc 2907  Vcvv 3450
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1572  df-ex 1812  df-nf 1816  df-cleq 2752  df-clel 2835  df-nfc 2909
This theorem is used by:  zfrep3cl  5244  zfrep4  5245
  Copyright terms: Public domain W3C validator