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

Theorem zfrepclf 4777
Description: An inference rule 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 2780 . . . . 5 𝑥 𝑣 = 𝐴
4 eleq2 2690 . . . . . 6 (𝑣 = 𝐴 → (𝑥𝑣𝑥𝐴))
5 zfrepclf.3 . . . . . 6 (𝑥𝐴 → ∃𝑧𝑦(𝜑𝑦 = 𝑧))
64, 5syl6bi 243 . . . . 5 (𝑣 = 𝐴 → (𝑥𝑣 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)))
73, 6alrimi 2082 . . . 4 (𝑣 = 𝐴 → ∀𝑥(𝑥𝑣 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)))
8 nfv 1843 . . . . 5 𝑧𝜑
98axrep5 4776 . . . 4 (∀𝑥(𝑥𝑣 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑣𝜑)))
107, 9syl 17 . . 3 (𝑣 = 𝐴 → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑣𝜑)))
114anbi1d 741 . . . . . . 7 (𝑣 = 𝐴 → ((𝑥𝑣𝜑) ↔ (𝑥𝐴𝜑)))
123, 11exbid 2091 . . . . . 6 (𝑣 = 𝐴 → (∃𝑥(𝑥𝑣𝜑) ↔ ∃𝑥(𝑥𝐴𝜑)))
1312bibi2d 332 . . . . 5 (𝑣 = 𝐴 → ((𝑦𝑧 ↔ ∃𝑥(𝑥𝑣𝜑)) ↔ (𝑦𝑧 ↔ ∃𝑥(𝑥𝐴𝜑))))
1413albidv 1849 . . . 4 (𝑣 = 𝐴 → (∀𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑣𝜑)) ↔ ∀𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝐴𝜑))))
1514exbidv 1850 . . 3 (𝑣 = 𝐴 → (∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑣𝜑)) ↔ ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝐴𝜑))))
1610, 15mpbid 222 . 2 (𝑣 = 𝐴 → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝐴𝜑)))
171, 16vtocle 3282 1 𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝐴𝜑))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384  wal 1481   = wceq 1483  wex 1704  wcel 1990  wnfc 2751  Vcvv 3200
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-rep 4771
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-v 3202
This theorem is referenced by:  zfrep3cl  4778  zfrep4  4779
  Copyright terms: Public domain W3C validator