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

Theorem zfrepclf 5244
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 2940 . . . . 5 Ⅎ𝑥 𝑣 = 𝐴
4 eleq2 2850 . . . . . 6 (𝑣 = 𝐴 → (𝑥 ∈ 𝑣 ↔ 𝑥 ∈ 𝐴))
5 zfrepclf.3 . . . . . 6 (𝑥 ∈ 𝐴 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧))
64, 5biimtrdi 256 . . . . 5 (𝑣 = 𝐴 → (𝑥 ∈ 𝑣 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧)))
73, 6alrimi 2250 . . . 4 (𝑣 = 𝐴 → ∀𝑥(𝑥 ∈ 𝑣 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧)))
8 nfv 1947 . . . . 5 Ⅎ𝑧𝜑
98axrep5 5239 . . . 4 (∀𝑥(𝑥 ∈ 𝑣 → ∃𝑧∀𝑦(𝜑 → 𝑦 = 𝑧)) → ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)))
107, 9syl 18 . . 3 (𝑣 = 𝐴 → ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)))
114anbi1d 643 . . . . . . 7 (𝑣 = 𝐴 → ((𝑥 ∈ 𝑣 ∧ 𝜑) ↔ (𝑥 ∈ 𝐴 ∧ 𝜑)))
123, 11exbid 2260 . . . . . 6 (𝑣 = 𝐴 → (∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑) ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑)))
1312bibi2d 345 . . . . 5 (𝑣 = 𝐴 → ((𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)) ↔ (𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))))
1413albidv 1953 . . . 4 (𝑣 = 𝐴 → (∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)) ↔ ∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))))
1514exbidv 1954 . . 3 (𝑣 = 𝐴 → (∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝑣 ∧ 𝜑)) ↔ ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))))
1610, 15mpbid 235 . 2 (𝑣 = 𝐴 → ∃𝑧∀𝑦(𝑦 ∈ 𝑧 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑)))
171, 16vtocle 3519 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 2145  Ⅎwnfc 2908  Vcvv 3451
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232
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 2753  df-clel 2836  df-nfc 2910
This theorem is used by:  zfrep3cl  5245  zfrep4  5246
  Copyright terms: Public domain W3C validator