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

Theorem axrep1 5182
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 5181 axrep1 5182 axrep2 5184 axrepnd 10004 zfcndrep 10024 = ax-rep 5181. (Contributed by NM, 19-Nov-2005.) (Proof shortened by Mario Carneiro, 17-Nov-2016.) Remove dependency on ax-13 2381. (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 2120 . . . . . . . . 9 (𝑤 = 𝑦 → (𝑥𝑤𝑥𝑦))
21anbi1d 629 . . . . . . . 8 (𝑤 = 𝑦 → ((𝑥𝑤𝜑) ↔ (𝑥𝑦𝜑)))
32exbidv 1913 . . . . . . 7 (𝑤 = 𝑦 → (∃𝑥(𝑥𝑤𝜑) ↔ ∃𝑥(𝑥𝑦𝜑)))
43bibi2d 344 . . . . . 6 (𝑤 = 𝑦 → ((𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑)) ↔ (𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑))))
54albidv 1912 . . . . 5 (𝑤 = 𝑦 → (∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑)) ↔ ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑))))
65exbidv 1913 . . . 4 (𝑤 = 𝑦 → (∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑)) ↔ ∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑))))
76imbi2d 342 . . 3 (𝑤 = 𝑦 → ((∀𝑥𝑦𝑧(𝜑𝑧 = 𝑦) → ∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑))) ↔ (∀𝑥𝑦𝑧(𝜑𝑧 = 𝑦) → ∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑)))))
8 ax-rep 5181 . . . 4 (∀𝑥𝑦𝑧(∀𝑦𝜑𝑧 = 𝑦) → ∃𝑦𝑧(𝑧𝑦 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)))
9 19.3v 1977 . . . . . . . 8 (∀𝑦𝜑𝜑)
109imbi1i 351 . . . . . . 7 ((∀𝑦𝜑𝑧 = 𝑦) ↔ (𝜑𝑧 = 𝑦))
1110albii 1811 . . . . . 6 (∀𝑧(∀𝑦𝜑𝑧 = 𝑦) ↔ ∀𝑧(𝜑𝑧 = 𝑦))
1211exbii 1839 . . . . 5 (∃𝑦𝑧(∀𝑦𝜑𝑧 = 𝑦) ↔ ∃𝑦𝑧(𝜑𝑧 = 𝑦))
1312albii 1811 . . . 4 (∀𝑥𝑦𝑧(∀𝑦𝜑𝑧 = 𝑦) ↔ ∀𝑥𝑦𝑧(𝜑𝑧 = 𝑦))
14 nfv 1906 . . . . . . 7 𝑥 𝑧𝑦
15 nfe1 2145 . . . . . . 7 𝑥𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)
1614, 15nfbi 1895 . . . . . 6 𝑥(𝑧𝑦 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑))
1716nfal 2333 . . . . 5 𝑥𝑧(𝑧𝑦 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑))
18 nfv 1906 . . . . 5 𝑦𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑))
19 elequ2 2120 . . . . . . 7 (𝑦 = 𝑥 → (𝑧𝑦𝑧𝑥))
209anbi2i 622 . . . . . . . . 9 ((𝑥𝑤 ∧ ∀𝑦𝜑) ↔ (𝑥𝑤𝜑))
2120exbii 1839 . . . . . . . 8 (∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑) ↔ ∃𝑥(𝑥𝑤𝜑))
2221a1i 11 . . . . . . 7 (𝑦 = 𝑥 → (∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑) ↔ ∃𝑥(𝑥𝑤𝜑)))
2319, 22bibi12d 347 . . . . . 6 (𝑦 = 𝑥 → ((𝑧𝑦 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)) ↔ (𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑))))
2423albidv 1912 . . . . 5 (𝑦 = 𝑥 → (∀𝑧(𝑧𝑦 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)) ↔ ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑))))
2517, 18, 24cbvexv1 2353 . . . 4 (∃𝑦𝑧(𝑧𝑦 ↔ ∃𝑥(𝑥𝑤 ∧ ∀𝑦𝜑)) ↔ ∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑)))
268, 13, 253imtr3i 292 . . 3 (∀𝑥𝑦𝑧(𝜑𝑧 = 𝑦) → ∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑤𝜑)))
277, 26chvarvv 1996 . 2 (∀𝑥𝑦𝑧(𝜑𝑧 = 𝑦) → ∃𝑥𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑)))
282719.35ri 1871 1 𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦𝜑)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 207  wa 396  wal 1526  wex 1771
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-rep 5181
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-tru 1531  df-ex 1772  df-nf 1776
This theorem is referenced by:  axrep2  5184
  Copyright terms: Public domain W3C validator