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

Theorem axrep5 5189
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 1994 . . . . 5 (∃𝑧(𝑥𝑤 → ∀𝑦(𝜑𝑦 = 𝑧)) ↔ (𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)))
2 impexp 453 . . . . . . . 8 (((𝑥𝑤𝜑) → 𝑦 = 𝑧) ↔ (𝑥𝑤 → (𝜑𝑦 = 𝑧)))
32albii 1816 . . . . . . 7 (∀𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧) ↔ ∀𝑦(𝑥𝑤 → (𝜑𝑦 = 𝑧)))
4 19.21v 1936 . . . . . . 7 (∀𝑦(𝑥𝑤 → (𝜑𝑦 = 𝑧)) ↔ (𝑥𝑤 → ∀𝑦(𝜑𝑦 = 𝑧)))
53, 4bitr2i 278 . . . . . 6 ((𝑥𝑤 → ∀𝑦(𝜑𝑦 = 𝑧)) ↔ ∀𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧))
65exbii 1844 . . . . 5 (∃𝑧(𝑥𝑤 → ∀𝑦(𝜑𝑦 = 𝑧)) ↔ ∃𝑧𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧))
71, 6bitr3i 279 . . . 4 ((𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) ↔ ∃𝑧𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧))
87albii 1816 . . 3 (∀𝑥(𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) ↔ ∀𝑥𝑧𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧))
9 nfv 1911 . . . . 5 𝑧 𝑥𝑤
10 axrep5.1 . . . . 5 𝑧𝜑
119, 10nfan 1896 . . . 4 𝑧(𝑥𝑤𝜑)
1211axrep4 5188 . . 3 (∀𝑥𝑧𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧) → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))))
138, 12sylbi 219 . 2 (∀𝑥(𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))))
14 anabs5 661 . . . . . 6 ((𝑥𝑤 ∧ (𝑥𝑤𝜑)) ↔ (𝑥𝑤𝜑))
1514exbii 1844 . . . . 5 (∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑)) ↔ ∃𝑥(𝑥𝑤𝜑))
1615bibi2i 340 . . . 4 ((𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))) ↔ (𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
1716albii 1816 . . 3 (∀𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))) ↔ ∀𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
1817exbii 1844 . 2 (∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))) ↔ ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
1913, 18sylib 220 1 (∀𝑥(𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  wal 1531  wex 1776  wnf 1780
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-9 2120  ax-10 2141  ax-11 2156  ax-12 2172  ax-rep 5183
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-tru 1536  df-ex 1777  df-nf 1781
This theorem is referenced by:  zfrepclf  5191
  Copyright terms: Public domain W3C validator