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

Theorem moexex 2541
Description: "At most one" double quantification. (Contributed by NM, 3-Dec-2001.) (Proof shortened by Wolf Lammen, 28-Dec-2018.)
Hypothesis
Ref Expression
moexex.1 𝑦𝜑
Assertion
Ref Expression
moexex ((∃*𝑥𝜑 ∧ ∀𝑥∃*𝑦𝜓) → ∃*𝑦𝑥(𝜑𝜓))

Proof of Theorem moexex
StepHypRef Expression
1 nfmo1 2481 . . . 4 𝑥∃*𝑥𝜑
2 nfa1 2028 . . . . 5 𝑥𝑥∃*𝑦𝜓
3 nfe1 2027 . . . . . 6 𝑥𝑥(𝜑𝜓)
43nfmo 2487 . . . . 5 𝑥∃*𝑦𝑥(𝜑𝜓)
52, 4nfim 1825 . . . 4 𝑥(∀𝑥∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓))
6 moexex.1 . . . . . . 7 𝑦𝜑
76nfmo 2487 . . . . . 6 𝑦∃*𝑥𝜑
8 mopick 2535 . . . . . . . 8 ((∃*𝑥𝜑 ∧ ∃𝑥(𝜑𝜓)) → (𝜑𝜓))
98ex 450 . . . . . . 7 (∃*𝑥𝜑 → (∃𝑥(𝜑𝜓) → (𝜑𝜓)))
109com23 86 . . . . . 6 (∃*𝑥𝜑 → (𝜑 → (∃𝑥(𝜑𝜓) → 𝜓)))
117, 6, 10alrimd 2084 . . . . 5 (∃*𝑥𝜑 → (𝜑 → ∀𝑦(∃𝑥(𝜑𝜓) → 𝜓)))
12 moim 2519 . . . . . 6 (∀𝑦(∃𝑥(𝜑𝜓) → 𝜓) → (∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓)))
1312spsd 2057 . . . . 5 (∀𝑦(∃𝑥(𝜑𝜓) → 𝜓) → (∀𝑥∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓)))
1411, 13syl6 35 . . . 4 (∃*𝑥𝜑 → (𝜑 → (∀𝑥∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓))))
151, 5, 14exlimd 2087 . . 3 (∃*𝑥𝜑 → (∃𝑥𝜑 → (∀𝑥∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓))))
166nfex 2154 . . . . . . 7 𝑦𝑥𝜑
17 exsimpl 1795 . . . . . . 7 (∃𝑥(𝜑𝜓) → ∃𝑥𝜑)
1816, 17exlimi 2086 . . . . . 6 (∃𝑦𝑥(𝜑𝜓) → ∃𝑥𝜑)
19 exmo 2495 . . . . . . 7 (∃𝑦𝑥(𝜑𝜓) ∨ ∃*𝑦𝑥(𝜑𝜓))
2019ori 390 . . . . . 6 (¬ ∃𝑦𝑥(𝜑𝜓) → ∃*𝑦𝑥(𝜑𝜓))
2118, 20nsyl4 156 . . . . 5 (¬ ∃*𝑦𝑥(𝜑𝜓) → ∃𝑥𝜑)
2221con1i 144 . . . 4 (¬ ∃𝑥𝜑 → ∃*𝑦𝑥(𝜑𝜓))
2322a1d 25 . . 3 (¬ ∃𝑥𝜑 → (∀𝑥∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓)))
2415, 23pm2.61d1 171 . 2 (∃*𝑥𝜑 → (∀𝑥∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓)))
2524imp 445 1 ((∃*𝑥𝜑 ∧ ∀𝑥∃*𝑦𝜓) → ∃*𝑦𝑥(𝜑𝜓))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 384  wal 1481  wex 1704  wnf 1708  ∃*wmo 2471
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-eu 2474  df-mo 2475
This theorem is referenced by:  moexexv  2542  2moswap  2547
  Copyright terms: Public domain W3C validator