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

Theorem axrep5 4704
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 1897 . . . . 5 (∃𝑧(𝑥𝑤 → ∀𝑦(𝜑𝑦 = 𝑧)) ↔ (𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)))
2 impexp 461 . . . . . . . 8 (((𝑥𝑤𝜑) → 𝑦 = 𝑧) ↔ (𝑥𝑤 → (𝜑𝑦 = 𝑧)))
32albii 1737 . . . . . . 7 (∀𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧) ↔ ∀𝑦(𝑥𝑤 → (𝜑𝑦 = 𝑧)))
4 19.21v 1855 . . . . . . 7 (∀𝑦(𝑥𝑤 → (𝜑𝑦 = 𝑧)) ↔ (𝑥𝑤 → ∀𝑦(𝜑𝑦 = 𝑧)))
53, 4bitr2i 264 . . . . . 6 ((𝑥𝑤 → ∀𝑦(𝜑𝑦 = 𝑧)) ↔ ∀𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧))
65exbii 1764 . . . . 5 (∃𝑧(𝑥𝑤 → ∀𝑦(𝜑𝑦 = 𝑧)) ↔ ∃𝑧𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧))
71, 6bitr3i 265 . . . 4 ((𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) ↔ ∃𝑧𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧))
87albii 1737 . . 3 (∀𝑥(𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) ↔ ∀𝑥𝑧𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧))
9 nfv 1830 . . . . 5 𝑧 𝑥𝑤
10 axrep5.1 . . . . 5 𝑧𝜑
119, 10nfan 1816 . . . 4 𝑧(𝑥𝑤𝜑)
1211axrep4 4703 . . 3 (∀𝑥𝑧𝑦((𝑥𝑤𝜑) → 𝑦 = 𝑧) → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))))
138, 12sylbi 206 . 2 (∀𝑥(𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))))
14 anabs5 847 . . . . . 6 ((𝑥𝑤 ∧ (𝑥𝑤𝜑)) ↔ (𝑥𝑤𝜑))
1514exbii 1764 . . . . 5 (∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑)) ↔ ∃𝑥(𝑥𝑤𝜑))
1615bibi2i 326 . . . 4 ((𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))) ↔ (𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
1716albii 1737 . . 3 (∀𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))) ↔ ∀𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
1817exbii 1764 . 2 (∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤 ∧ (𝑥𝑤𝜑))) ↔ ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
1913, 18sylib 207 1 (∀𝑥(𝑥𝑤 → ∃𝑧𝑦(𝜑𝑦 = 𝑧)) → ∃𝑧𝑦(𝑦𝑧 ↔ ∃𝑥(𝑥𝑤𝜑)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 195  wa 383  wal 1473  wex 1695  wnf 1699
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-rep 4699
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701
This theorem is referenced by:  zfrepclf  4705  axsep  4708
  Copyright terms: Public domain W3C validator