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

Theorem axrep3 4905
Description: Axiom of Replacement slightly strengthened from axrep2 4904; 𝑤 may occur free in 𝜑. (Contributed by NM, 2-Jan-1997.)
Assertion
Ref Expression
axrep3 𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)))
Distinct variable group:   𝑥,𝑤,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧,𝑤)

Proof of Theorem axrep3
StepHypRef Expression
1 nfe1 2182 . . . 4 𝑦𝑦𝑧(𝜑𝑧 = 𝑦)
2 nfv 1994 . . . . . 6 𝑦 𝑧𝑥
3 nfv 1994 . . . . . . . 8 𝑦 𝑥𝑤
4 nfa1 2183 . . . . . . . 8 𝑦𝑦𝜑
53, 4nfan 1979 . . . . . . 7 𝑦(𝑥𝑤 ∧ ∀𝑦𝜑)
65nfex 2317 . . . . . 6 𝑦𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)
72, 6nfbi 1984 . . . . 5 𝑦(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑))
87nfal 2316 . . . 4 𝑦𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑))
91, 8nfim 1976 . . 3 𝑦(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)))
109nfex 2317 . 2 𝑦𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)))
11 elequ2 2158 . . . . . . . 8 (𝑦 = 𝑤 → (𝑥𝑦𝑥𝑤))
1211anbi1d 607 . . . . . . 7 (𝑦 = 𝑤 → ((𝑥𝑦 ∧ ∀𝑦𝜑) ↔ (𝑥𝑤 ∧ ∀𝑦𝜑)))
1312exbidv 2001 . . . . . 6 (𝑦 = 𝑤 → (∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑) ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)))
1413bibi2d 331 . . . . 5 (𝑦 = 𝑤 → ((𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)) ↔ (𝑧𝑥 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑))))
1514albidv 2000 . . . 4 (𝑦 = 𝑤 → (∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)) ↔ ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑))))
1615imbi2d 329 . . 3 (𝑦 = 𝑤 → ((∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))) ↔ (∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)))))
1716exbidv 2001 . 2 (𝑦 = 𝑤 → (∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))) ↔ ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)))))
18 axrep2 4904 . 2 𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)))
1910, 17, 18chvar 2423 1 𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 382  wal 1628  wex 1851
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1869  ax-4 1884  ax-5 1990  ax-6 2056  ax-7 2092  ax-9 2153  ax-10 2173  ax-11 2189  ax-12 2202  ax-13 2407  ax-rep 4902
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 827  df-tru 1633  df-ex 1852  df-nf 1857
This theorem is referenced by:  axrep4  4906
  Copyright terms: Public domain W3C validator