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

Theorem axprlem3 5319
Description: Lemma for axpr 5322. Eliminate the antecedent of the relevant replacement instance. (Contributed by Rohan Ridenour, 10-Aug-2023.)
Assertion
Ref Expression
axprlem3 𝑧𝑤(𝑤𝑧 ↔ ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)))
Distinct variable groups:   𝑥,𝑧,𝑤   𝑦,𝑧,𝑤   𝑧,𝑛,𝑤   𝑧,𝑠,𝑝,𝑤

Proof of Theorem axprlem3
StepHypRef Expression
1 nfv 1914 . . 3 𝑧if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)
21axrep4 5188 . 2 (∀𝑠𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧) → ∃𝑧𝑤(𝑤𝑧 ↔ ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦))))
3 ax6evr 2021 . . . 4 𝑧 𝑥 = 𝑧
4 ifptru 1069 . . . . . . . . 9 (∃𝑛 𝑛𝑠 → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) ↔ 𝑤 = 𝑥))
54biimpd 231 . . . . . . . 8 (∃𝑛 𝑛𝑠 → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑥))
6 equtrr 2028 . . . . . . . 8 (𝑥 = 𝑧 → (𝑤 = 𝑥𝑤 = 𝑧))
75, 6sylan9r 511 . . . . . . 7 ((𝑥 = 𝑧 ∧ ∃𝑛 𝑛𝑠) → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
87alrimiv 1927 . . . . . 6 ((𝑥 = 𝑧 ∧ ∃𝑛 𝑛𝑠) → ∀𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
98expcom 416 . . . . 5 (∃𝑛 𝑛𝑠 → (𝑥 = 𝑧 → ∀𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)))
109eximdv 1917 . . . 4 (∃𝑛 𝑛𝑠 → (∃𝑧 𝑥 = 𝑧 → ∃𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)))
113, 10mpi 20 . . 3 (∃𝑛 𝑛𝑠 → ∃𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
12 ax6evr 2021 . . . 4 𝑧 𝑦 = 𝑧
13 ifpfal 1070 . . . . . . . . . 10 (¬ ∃𝑛 𝑛𝑠 → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) ↔ 𝑤 = 𝑦))
1413biimpd 231 . . . . . . . . 9 (¬ ∃𝑛 𝑛𝑠 → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑦))
1514adantl 484 . . . . . . . 8 ((𝑦 = 𝑧 ∧ ¬ ∃𝑛 𝑛𝑠) → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑦))
16 simpl 485 . . . . . . . 8 ((𝑦 = 𝑧 ∧ ¬ ∃𝑛 𝑛𝑠) → 𝑦 = 𝑧)
17 equtr 2027 . . . . . . . 8 (𝑤 = 𝑦 → (𝑦 = 𝑧𝑤 = 𝑧))
1815, 16, 17syl6ci 71 . . . . . . 7 ((𝑦 = 𝑧 ∧ ¬ ∃𝑛 𝑛𝑠) → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
1918alrimiv 1927 . . . . . 6 ((𝑦 = 𝑧 ∧ ¬ ∃𝑛 𝑛𝑠) → ∀𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
2019expcom 416 . . . . 5 (¬ ∃𝑛 𝑛𝑠 → (𝑦 = 𝑧 → ∀𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)))
2120eximdv 1917 . . . 4 (¬ ∃𝑛 𝑛𝑠 → (∃𝑧 𝑦 = 𝑧 → ∃𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)))
2212, 21mpi 20 . . 3 (¬ ∃𝑛 𝑛𝑠 → ∃𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
2311, 22pm2.61i 184 . 2 𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)
242, 23mpg 1797 1 𝑧𝑤(𝑤𝑧 ↔ ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  if-wif 1057  wal 1534  wex 1779  wcel 2113
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-rep 5183
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-ifp 1058  df-tru 1539  df-ex 1780  df-nf 1784
This theorem is referenced by:  axpr  5322
  Copyright terms: Public domain W3C validator