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

Theorem moexexlem 2652
Description: Factor out the proof skeleton of moexex 2664 and moexexvw 2654. (Contributed by Wolf Lammen, 2-Oct-2023.)
Hypotheses
Ref Expression
moexexlem.1 Ⅎ𝑦𝜑
moexexlem.2 Ⅎ𝑦∃*𝑥𝜑
moexexlem.3 Ⅎ𝑥∃*𝑦∃𝑥(𝜑 ∧ 𝜓)
Assertion
Ref Expression
moexexlem ((∃*𝑥𝜑 ∧ ∀𝑥∃*𝑦𝜓) → ∃*𝑦∃𝑥(𝜑 ∧ 𝜓))

Proof of Theorem moexexlem
StepHypRef Expression
1 nfmo1 2583 . . . 4 Ⅎ𝑥∃*𝑥𝜑
2 nfa1 2188 . . . . 5 Ⅎ𝑥∀𝑥∃*𝑦𝜓
3 moexexlem.3 . . . . 5 Ⅎ𝑥∃*𝑦∃𝑥(𝜑 ∧ 𝜓)
42, 3nfim 1929 . . . 4 Ⅎ𝑥(∀𝑥∃*𝑦𝜓 → ∃*𝑦∃𝑥(𝜑 ∧ 𝜓))
5 moexexlem.2 . . . . . 6 Ⅎ𝑦∃*𝑥𝜑
6 moexexlem.1 . . . . . 6 Ⅎ𝑦𝜑
7 mopick 2651 . . . . . . . 8 ((∃*𝑥𝜑 ∧ ∃𝑥(𝜑 ∧ 𝜓)) → (𝜑 → 𝜓))
87ex 418 . . . . . . 7 (∃*𝑥𝜑 → (∃𝑥(𝜑 ∧ 𝜓) → (𝜑 → 𝜓)))
98com23 87 . . . . . 6 (∃*𝑥𝜑 → (𝜑 → (∃𝑥(𝜑 ∧ 𝜓) → 𝜓)))
105, 6, 9alrimd 2252 . . . . 5 (∃*𝑥𝜑 → (𝜑 → ∀𝑦(∃𝑥(𝜑 ∧ 𝜓) → 𝜓)))
11 moim 2570 . . . . . 6 (∀𝑦(∃𝑥(𝜑 ∧ 𝜓) → 𝜓) → (∃*𝑦𝜓 → ∃*𝑦∃𝑥(𝜑 ∧ 𝜓)))
1211spsd 2224 . . . . 5 (∀𝑦(∃𝑥(𝜑 ∧ 𝜓) → 𝜓) → (∀𝑥∃*𝑦𝜓 → ∃*𝑦∃𝑥(𝜑 ∧ 𝜓)))
1310, 12syl6 36 . . . 4 (∃*𝑥𝜑 → (𝜑 → (∀𝑥∃*𝑦𝜓 → ∃*𝑦∃𝑥(𝜑 ∧ 𝜓))))
141, 4, 13exlimd 2255 . . 3 (∃*𝑥𝜑 → (∃𝑥𝜑 → (∀𝑥∃*𝑦𝜓 → ∃*𝑦∃𝑥(𝜑 ∧ 𝜓))))
156nfex 2355 . . . . . 6 Ⅎ𝑦∃𝑥𝜑
16 exsimpl 1901 . . . . . 6 (∃𝑥(𝜑 ∧ 𝜓) → ∃𝑥𝜑)
1715, 16exlimi 2254 . . . . 5 (∃𝑦∃𝑥(𝜑 ∧ 𝜓) → ∃𝑥𝜑)
18 nexmo 2567 . . . . 5 (¬ ∃𝑦∃𝑥(𝜑 ∧ 𝜓) → ∃*𝑦∃𝑥(𝜑 ∧ 𝜓))
1917, 18nsyl5 160 . . . 4 (¬ ∃𝑥𝜑 → ∃*𝑦∃𝑥(𝜑 ∧ 𝜓))
2019a1d 26 . . 3 (¬ ∃𝑥𝜑 → (∀𝑥∃*𝑦𝜓 → ∃*𝑦∃𝑥(𝜑 ∧ 𝜓)))
2114, 20pm2.61d1 182 . 2 (∃*𝑥𝜑 → (∀𝑥∃*𝑦𝜓 → ∃*𝑦∃𝑥(𝜑 ∧ 𝜓)))
2221imp 412 1 ((∃*𝑥𝜑 ∧ ∀𝑥∃*𝑦𝜓) → ∃*𝑦∃𝑥(𝜑 ∧ 𝜓))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401  ∀wal 1568  ∃wex 1812  Ⅎwnf 1816  ∃*wmo 2563
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-10 2178  ax-11 2194  ax-12 2213
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-ex 1813  df-nf 1817  df-mo 2565
This theorem is used by:  moexexvw  2654  2moswapv  2655  moexex  2664
  Copyright terms: Public domain W3C validator