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

Theorem axprlem3 5343
Description: Lemma for axpr 5346. 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 1918 . . 3 𝑧if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)
21axrep4 5210 . 2 (∀𝑠𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧) → ∃𝑧𝑤(𝑤𝑧 ↔ ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦))))
3 ax6evr 2019 . . . 4 𝑧 𝑥 = 𝑧
4 ifptru 1072 . . . . . . . . 9 (∃𝑛 𝑛𝑠 → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) ↔ 𝑤 = 𝑥))
54biimpd 228 . . . . . . . 8 (∃𝑛 𝑛𝑠 → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑥))
6 equtrr 2026 . . . . . . . 8 (𝑥 = 𝑧 → (𝑤 = 𝑥𝑤 = 𝑧))
75, 6sylan9r 508 . . . . . . 7 ((𝑥 = 𝑧 ∧ ∃𝑛 𝑛𝑠) → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
87alrimiv 1931 . . . . . 6 ((𝑥 = 𝑧 ∧ ∃𝑛 𝑛𝑠) → ∀𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
98expcom 413 . . . . 5 (∃𝑛 𝑛𝑠 → (𝑥 = 𝑧 → ∀𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)))
109eximdv 1921 . . . 4 (∃𝑛 𝑛𝑠 → (∃𝑧 𝑥 = 𝑧 → ∃𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)))
113, 10mpi 20 . . 3 (∃𝑛 𝑛𝑠 → ∃𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
12 ax6evr 2019 . . . 4 𝑧 𝑦 = 𝑧
13 ifpfal 1073 . . . . . . . . . 10 (¬ ∃𝑛 𝑛𝑠 → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) ↔ 𝑤 = 𝑦))
1413biimpd 228 . . . . . . . . 9 (¬ ∃𝑛 𝑛𝑠 → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑦))
1514adantl 481 . . . . . . . 8 ((𝑦 = 𝑧 ∧ ¬ ∃𝑛 𝑛𝑠) → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑦))
16 simpl 482 . . . . . . . 8 ((𝑦 = 𝑧 ∧ ¬ ∃𝑛 𝑛𝑠) → 𝑦 = 𝑧)
17 equtr 2025 . . . . . . . 8 (𝑤 = 𝑦 → (𝑦 = 𝑧𝑤 = 𝑧))
1815, 16, 17syl6ci 71 . . . . . . 7 ((𝑦 = 𝑧 ∧ ¬ ∃𝑛 𝑛𝑠) → (if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
1918alrimiv 1931 . . . . . 6 ((𝑦 = 𝑧 ∧ ¬ ∃𝑛 𝑛𝑠) → ∀𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
2019expcom 413 . . . . 5 (¬ ∃𝑛 𝑛𝑠 → (𝑦 = 𝑧 → ∀𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)))
2120eximdv 1921 . . . 4 (¬ ∃𝑛 𝑛𝑠 → (∃𝑧 𝑦 = 𝑧 → ∃𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)))
2212, 21mpi 20 . . 3 (¬ ∃𝑛 𝑛𝑠 → ∃𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧))
2311, 22pm2.61i 182 . 2 𝑧𝑤(if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦) → 𝑤 = 𝑧)
242, 23mpg 1801 1 𝑧𝑤(𝑤𝑧 ↔ ∃𝑠(𝑠𝑝 ∧ if-(∃𝑛 𝑛𝑠, 𝑤 = 𝑥, 𝑤 = 𝑦)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  if-wif 1059  wal 1537  wex 1783  wcel 2108
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-rep 5205
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-ifp 1060  df-tru 1542  df-ex 1784  df-nf 1788
This theorem is referenced by:  axpr  5346
  Copyright terms: Public domain W3C validator