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

Theorem moexex 2529
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 2469 . . . 4 𝑥∃*𝑥𝜑
2 nfa1 2015 . . . . 5 𝑥𝑥∃*𝑦𝜓
3 nfe1 2014 . . . . . 6 𝑥𝑥(𝜑𝜓)
43nfmo 2475 . . . . 5 𝑥∃*𝑦𝑥(𝜑𝜓)
52, 4nfim 1813 . . . 4 𝑥(∀𝑥∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓))
6 moexex.1 . . . . . . 7 𝑦𝜑
76nfmo 2475 . . . . . 6 𝑦∃*𝑥𝜑
8 mopick 2523 . . . . . . . 8 ((∃*𝑥𝜑 ∧ ∃𝑥(𝜑𝜓)) → (𝜑𝜓))
98ex 449 . . . . . . 7 (∃*𝑥𝜑 → (∃𝑥(𝜑𝜓) → (𝜑𝜓)))
109com23 84 . . . . . 6 (∃*𝑥𝜑 → (𝜑 → (∃𝑥(𝜑𝜓) → 𝜓)))
117, 6, 10alrimd 2071 . . . . 5 (∃*𝑥𝜑 → (𝜑 → ∀𝑦(∃𝑥(𝜑𝜓) → 𝜓)))
12 moim 2507 . . . . . 6 (∀𝑦(∃𝑥(𝜑𝜓) → 𝜓) → (∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓)))
1312spsd 2045 . . . . 5 (∀𝑦(∃𝑥(𝜑𝜓) → 𝜓) → (∀𝑥∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓)))
1411, 13syl6 34 . . . 4 (∃*𝑥𝜑 → (𝜑 → (∀𝑥∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓))))
151, 5, 14exlimd 2074 . . 3 (∃*𝑥𝜑 → (∃𝑥𝜑 → (∀𝑥∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓))))
166nfex 2140 . . . . . . 7 𝑦𝑥𝜑
17 exsimpl 1783 . . . . . . 7 (∃𝑥(𝜑𝜓) → ∃𝑥𝜑)
1816, 17exlimi 2073 . . . . . 6 (∃𝑦𝑥(𝜑𝜓) → ∃𝑥𝜑)
19 exmo 2483 . . . . . . 7 (∃𝑦𝑥(𝜑𝜓) ∨ ∃*𝑦𝑥(𝜑𝜓))
2019ori 389 . . . . . 6 (¬ ∃𝑦𝑥(𝜑𝜓) → ∃*𝑦𝑥(𝜑𝜓))
2118, 20nsyl4 155 . . . . 5 (¬ ∃*𝑦𝑥(𝜑𝜓) → ∃𝑥𝜑)
2221con1i 143 . . . 4 (¬ ∃𝑥𝜑 → ∃*𝑦𝑥(𝜑𝜓))
2322a1d 25 . . 3 (¬ ∃𝑥𝜑 → (∀𝑥∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓)))
2415, 23pm2.61d1 170 . 2 (∃*𝑥𝜑 → (∀𝑥∃*𝑦𝜓 → ∃*𝑦𝑥(𝜑𝜓)))
2524imp 444 1 ((∃*𝑥𝜑 ∧ ∀𝑥∃*𝑦𝜓) → ∃*𝑦𝑥(𝜑𝜓))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 383  wal 1473  wex 1695  wnf 1699  ∃*wmo 2459
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-eu 2462  df-mo 2463
This theorem is referenced by:  moexexv  2530  2moswap  2535
  Copyright terms: Public domain W3C validator