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

Theorem zfrepclf 5258
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 2954 . . . . 5 Ⅎ𝑥 𝑣 = 𝐴
4 eleq2 2864 . . . . . 6 (𝑣 = 𝐴 → (𝑥 ∈ 𝑣 ↔ 𝑥 ∈ 𝐴))
5 zfrepclf.3 . . . . . 6 (𝑥 ∈ 𝐴 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧))
64, 5biimtrdi 256 . . . . 5 (𝑣 = 𝐴 → (𝑥 ∈ 𝑣 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧)))
73, 6alrimi 2262 . . . 4 (𝑣 = 𝐴 → ∀𝑥(𝑥 ∈ 𝑣 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧)))
8 nfv 1956 . . . . 5 Ⅎ𝑧𝜑
98axrep5 5253 . . . 4 (∀𝑥(𝑥 ∈ 𝑣 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧)) → ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)))
107, 9syl 18 . . 3 (𝑣 = 𝐴 → ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)))
114anbi1d 643 . . . . . . 7 (𝑣 = 𝐴 → ((𝑥 ∈ 𝑣 ∧ 𝜑) ↔ (𝑥 ∈ 𝐴 ∧ 𝜑)))
123, 11exbid 2272 . . . . . 6 (𝑣 = 𝐴 → (∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑) ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑)))
1312bibi2d 345 . . . . 5 (𝑣 = 𝐴 → ((𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)) ↔ (𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))))
1413albidv 1962 . . . 4 (𝑣 = 𝐴 → (∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)) ↔ ∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))))
1514exbidv 1963 . . 3 (𝑣 = 𝐴 → (∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)) ↔ ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))))
1610, 15mpbid 235 . 2 (𝑣 = 𝐴 → ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑)))
171, 16vtocle 3529 1 ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1570   = wceq 1572  ∃wex 1818   ∈ wcel 2156  Ⅎwnfc 2922  Vcvv 3461
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-rep 5246
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1575  df-ex 1819  df-nf 1823  df-cleq 2766  df-clel 2850  df-nfc 2924
This theorem is used by:  zfrep3cl  5259  zfrep4  5260
  Copyright terms: Public domain W3C validator