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

Theorem axprlem3 5326
Description: Lemma for axpr 5329. 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 1915 . . 3 𝑧if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)
21axrep4 5195 . 2 (∀𝑠𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧) → ∃𝑧𝑤(𝑤𝑧 ↔ ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦))))
3 ax6evr 2022 . . . 4 𝑧 𝑥 = 𝑧
4 ifptru 1068 . . . . . . . . 9 (∃𝑛 𝑛𝑠 → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) ↔ 𝑤 = 𝑥))
54biimpd 231 . . . . . . . 8 (∃𝑛 𝑛𝑠 → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑥))
6 equtrr 2029 . . . . . . . 8 (𝑥 = 𝑧 → (𝑤 = 𝑥𝑤 = 𝑧))
75, 6sylan9r 511 . . . . . . 7 ((𝑥 = 𝑧 ∧ ∃𝑛 𝑛𝑠) → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
87alrimiv 1928 . . . . . 6 ((𝑥 = 𝑧 ∧ ∃𝑛 𝑛𝑠) → ∀𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
98expcom 416 . . . . 5 (∃𝑛 𝑛𝑠 → (𝑥 = 𝑧 → ∀𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)))
109eximdv 1918 . . . 4 (∃𝑛 𝑛𝑠 → (∃𝑧 𝑥 = 𝑧 → ∃𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)))
113, 10mpi 20 . . 3 (∃𝑛 𝑛𝑠 → ∃𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
12 ax6evr 2022 . . . 4 𝑧 𝑦 = 𝑧
13 ifpfal 1069 . . . . . . . . . 10 (¬ ∃𝑛 𝑛𝑠 → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) ↔ 𝑤 = 𝑦))
1413biimpd 231 . . . . . . . . 9 (¬ ∃𝑛 𝑛𝑠 → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑦))
1514adantl 484 . . . . . . . 8 ((𝑦 = 𝑧 ∧ ¬ ∃𝑛 𝑛𝑠) → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑦))
16 simpl 485 . . . . . . . 8 ((𝑦 = 𝑧 ∧ ¬ ∃𝑛 𝑛𝑠) → 𝑦 = 𝑧)
17 equtr 2028 . . . . . . . 8 (𝑤 = 𝑦 → (𝑦 = 𝑧𝑤 = 𝑧))
1815, 16, 17syl6ci 71 . . . . . . 7 ((𝑦 = 𝑧 ∧ ¬ ∃𝑛 𝑛𝑠) → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
1918alrimiv 1928 . . . . . 6 ((𝑦 = 𝑧 ∧ ¬ ∃𝑛 𝑛𝑠) → ∀𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
2019expcom 416 . . . . 5 (¬ ∃𝑛 𝑛𝑠 → (𝑦 = 𝑧 → ∀𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)))
2120eximdv 1918 . . . 4 (¬ ∃𝑛 𝑛𝑠 → (∃𝑧 𝑦 = 𝑧 → ∃𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)))
2212, 21mpi 20 . . 3 (¬ ∃𝑛 𝑛𝑠 → ∃𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
2311, 22pm2.61i 184 . 2 𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)
242, 23mpg 1798 1 𝑧𝑤(𝑤𝑧 ↔ ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  if-wif 1057  wal 1535  wex 1780  wcel 2114
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-rep 5190
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-ifp 1058  df-tru 1540  df-ex 1781  df-nf 1785
This theorem is referenced by:  axpr  5329
  Copyright terms: Public domain W3C validator