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

Theorem axrep1 5210
Description: The version of the Axiom of Replacement used in the Metamath Solitaire applet https://us.metamath.org/mmsolitaire/mms.html. Equivalence is shown via the path ax-rep 5209 axrep1 5210 axrep2 5212 axrepnd 10350 zfcndrep 10370 = ax-rep 5209. (Contributed by NM, 19-Nov-2005.) (Proof shortened by Mario Carneiro, 17-Nov-2016.) Remove dependency on ax-13 2372. (Revised by BJ, 31-May-2019.)
Assertion
Ref Expression
axrep1 𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑)))
Distinct variable groups:   𝜑,𝑦   𝑥,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑧)

Proof of Theorem axrep1
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 elequ2 2121 . . . . . . . . 9 (𝑤 = 𝑦 → (𝑥𝑤𝑥𝑦))
21anbi1d 630 . . . . . . . 8 (𝑤 = 𝑦 → ((𝑥𝑤𝜑) ↔ (𝑥𝑦𝜑)))
32exbidv 1924 . . . . . . 7 (𝑤 = 𝑦 → (∃𝑥(𝑥𝑤𝜑) ↔ ∃𝑥(𝑥𝑦𝜑)))
43bibi2d 343 . . . . . 6 (𝑤 = 𝑦 → ((𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑)) ↔ (𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑))))
54albidv 1923 . . . . 5 (𝑤 = 𝑦 → (∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑)) ↔ ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑))))
65exbidv 1924 . . . 4 (𝑤 = 𝑦 → (∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑)) ↔ ∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑))))
76imbi2d 341 . . 3 (𝑤 = 𝑦 → ((∀𝑥𝑦𝑧(𝜑𝑧 = 𝑦) → ∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑))) ↔ (∀𝑥𝑦𝑧(𝜑𝑧 = 𝑦) → ∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑)))))
8 ax-rep 5209 . . . 4 (∀𝑥𝑦𝑧(∀𝑦𝜑𝑧 = 𝑦) → ∃𝑦𝑧(𝑧𝑦 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)))
9 19.3v 1985 . . . . . . . 8 (∀𝑦𝜑𝜑)
109imbi1i 350 . . . . . . 7 ((∀𝑦𝜑𝑧 = 𝑦) ↔ (𝜑𝑧 = 𝑦))
1110albii 1822 . . . . . 6 (∀𝑧(∀𝑦𝜑𝑧 = 𝑦) ↔ ∀𝑧(𝜑𝑧 = 𝑦))
1211exbii 1850 . . . . 5 (∃𝑦𝑧(∀𝑦𝜑𝑧 = 𝑦) ↔ ∃𝑦𝑧(𝜑𝑧 = 𝑦))
1312albii 1822 . . . 4 (∀𝑥𝑦𝑧(∀𝑦𝜑𝑧 = 𝑦) ↔ ∀𝑥𝑦𝑧(𝜑𝑧 = 𝑦))
14 nfv 1917 . . . . . . 7 𝑥 𝑧𝑦
15 nfe1 2147 . . . . . . 7 𝑥𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)
1614, 15nfbi 1906 . . . . . 6 𝑥(𝑧𝑦 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑))
1716nfal 2317 . . . . 5 𝑥𝑧(𝑧𝑦 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑))
18 nfv 1917 . . . . 5 𝑦𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑))
19 elequ2 2121 . . . . . . 7 (𝑦 = 𝑥 → (𝑧𝑦𝑧𝑥))
209anbi2i 623 . . . . . . . . 9 ((𝑥𝑤 ∧ ∀𝑦𝜑) ↔ (𝑥𝑤𝜑))
2120exbii 1850 . . . . . . . 8 (∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑) ↔ ∃𝑥(𝑥𝑤𝜑))
2221a1i 11 . . . . . . 7 (𝑦 = 𝑥 → (∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑) ↔ ∃𝑥(𝑥𝑤𝜑)))
2319, 22bibi12d 346 . . . . . 6 (𝑦 = 𝑥 → ((𝑧𝑦 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)) ↔ (𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑))))
2423albidv 1923 . . . . 5 (𝑦 = 𝑥 → (∀𝑧(𝑧𝑦 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)) ↔ ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑))))
2517, 18, 24cbvexv1 2339 . . . 4 (∃𝑦𝑧(𝑧𝑦 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)) ↔ ∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑)))
268, 13, 253imtr3i 291 . . 3 (∀𝑥𝑦𝑧(𝜑𝑧 = 𝑦) → ∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑)))
277, 26chvarvv 2002 . 2 (∀𝑥𝑦𝑧(𝜑𝑧 = 𝑦) → ∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑)))
282719.35ri 1882 1 𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  wal 1537  wex 1782
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-rep 5209
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-tru 1542  df-ex 1783  df-nf 1787
This theorem is referenced by:  axrep2  5212
  Copyright terms: Public domain W3C validator