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

Theorem axrep5 5196
Description: Axiom of Replacement (similar to Axiom Rep of [BellMachover] p. 463). The antecedent tells us 𝜑 is analogous to a "function" from 𝑥 to 𝑦 (although it is not really a function since it is a wff and not a class). In the consequent we postulate the existence of a set 𝑧 that corresponds to the "image" of 𝜑 restricted to some other set 𝑤. The hypothesis says 𝑧 must not be free in 𝜑. (Contributed by NM, 26-Nov-1995.) (Revised by Mario Carneiro, 14-Oct-2016.)
Hypothesis
Ref Expression
axrep5.1 𝑧𝜑
Assertion
Ref Expression
axrep5 (∀𝑥(𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
Distinct variable group:   𝑥,𝑦,𝑧,𝑤
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧,𝑤)

Proof of Theorem axrep5
StepHypRef Expression
1 19.37v 1998 . . . . 5 (∃𝑧(𝑥𝑤 → ∀𝑦(𝜑𝑦 = 𝑧)) ↔ (𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)))
2 impexp 453 . . . . . . . 8 (((𝑥𝑤𝜑) → 𝑦 = 𝑧) ↔ (𝑥𝑤 → (𝜑𝑦 = 𝑧)))
32albii 1820 . . . . . . 7 (∀𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧) ↔ ∀𝑦(𝑥𝑤 → (𝜑𝑦 = 𝑧)))
4 19.21v 1940 . . . . . . 7 (∀𝑦(𝑥𝑤 → (𝜑𝑦 = 𝑧)) ↔ (𝑥𝑤 → ∀𝑦(𝜑𝑦 = 𝑧)))
53, 4bitr2i 278 . . . . . 6 ((𝑥𝑤 → ∀𝑦(𝜑𝑦 = 𝑧)) ↔ ∀𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧))
65exbii 1848 . . . . 5 (∃𝑧(𝑥𝑤 → ∀𝑦(𝜑𝑦 = 𝑧)) ↔ ∃𝑧𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧))
71, 6bitr3i 279 . . . 4 ((𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) ↔ ∃𝑧𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧))
87albii 1820 . . 3 (∀𝑥(𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) ↔ ∀𝑥𝑧𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧))
9 nfv 1915 . . . . 5 𝑧 𝑥𝑤
10 axrep5.1 . . . . 5 𝑧𝜑
119, 10nfan 1900 . . . 4 𝑧(𝑥𝑤𝜑)
1211axrep4 5195 . . 3 (∀𝑥𝑧𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧) → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))))
138, 12sylbi 219 . 2 (∀𝑥(𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))))
14 anabs5 661 . . . . . 6 ((𝑥𝑤 ∧ (𝑥𝑤𝜑)) ↔ (𝑥𝑤𝜑))
1514exbii 1848 . . . . 5 (∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑)) ↔ ∃𝑥(𝑥𝑤𝜑))
1615bibi2i 340 . . . 4 ((𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))) ↔ (𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
1716albii 1820 . . 3 (∀𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))) ↔ ∀𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
1817exbii 1848 . 2 (∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))) ↔ ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
1913, 18sylib 220 1 (∀𝑥(𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  wal 1535  wex 1780  wnf 1784
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-rep 5190
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-tru 1540  df-ex 1781  df-nf 1785
This theorem is referenced by:  zfrepclf  5198
  Copyright terms: Public domain W3C validator