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

Theorem 2reurex 3695
Description: Double restricted quantification with existential uniqueness, analogous to 2euex 2643. (Contributed by Alexander van der Vekens, 24-Jun-2017.)
Assertion
Ref Expression
2reurex (∃!𝑥𝐴𝑦𝐵 𝜑 → ∃𝑦𝐵 ∃!𝑥𝐴 𝜑)
Distinct variable groups:   𝑦,𝐴   𝑥,𝑦   𝑥,𝐵
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐴(𝑥)   𝐵(𝑦)

Proof of Theorem 2reurex
StepHypRef Expression
1 reu5 3361 . 2 (∃!𝑥𝐴𝑦𝐵 𝜑 ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃*𝑥𝐴𝑦𝐵 𝜑))
2 rexcom 3234 . . . 4 (∃𝑥𝐴𝑦𝐵 𝜑 ↔ ∃𝑦𝐵𝑥𝐴 𝜑)
3 nfcv 2907 . . . . . 6 𝑦𝐴
4 nfre1 3239 . . . . . 6 𝑦𝑦𝐵 𝜑
53, 4nfrmow 3304 . . . . 5 𝑦∃*𝑥𝐴𝑦𝐵 𝜑
6 rspe 3237 . . . . . . . . . . 11 ((𝑦𝐵𝜑) → ∃𝑦𝐵 𝜑)
76ex 413 . . . . . . . . . 10 (𝑦𝐵 → (𝜑 → ∃𝑦𝐵 𝜑))
87ralrimivw 3104 . . . . . . . . 9 (𝑦𝐵 → ∀𝑥𝐴 (𝜑 → ∃𝑦𝐵 𝜑))
9 rmoim 3675 . . . . . . . . 9 (∀𝑥𝐴 (𝜑 → ∃𝑦𝐵 𝜑) → (∃*𝑥𝐴𝑦𝐵 𝜑 → ∃*𝑥𝐴 𝜑))
108, 9syl 17 . . . . . . . 8 (𝑦𝐵 → (∃*𝑥𝐴𝑦𝐵 𝜑 → ∃*𝑥𝐴 𝜑))
1110impcom 408 . . . . . . 7 ((∃*𝑥𝐴𝑦𝐵 𝜑𝑦𝐵) → ∃*𝑥𝐴 𝜑)
12 rmo5 3365 . . . . . . 7 (∃*𝑥𝐴 𝜑 ↔ (∃𝑥𝐴 𝜑 → ∃!𝑥𝐴 𝜑))
1311, 12sylib 217 . . . . . 6 ((∃*𝑥𝐴𝑦𝐵 𝜑𝑦𝐵) → (∃𝑥𝐴 𝜑 → ∃!𝑥𝐴 𝜑))
1413ex 413 . . . . 5 (∃*𝑥𝐴𝑦𝐵 𝜑 → (𝑦𝐵 → (∃𝑥𝐴 𝜑 → ∃!𝑥𝐴 𝜑)))
155, 14reximdai 3244 . . . 4 (∃*𝑥𝐴𝑦𝐵 𝜑 → (∃𝑦𝐵𝑥𝐴 𝜑 → ∃𝑦𝐵 ∃!𝑥𝐴 𝜑))
162, 15syl5bi 241 . . 3 (∃*𝑥𝐴𝑦𝐵 𝜑 → (∃𝑥𝐴𝑦𝐵 𝜑 → ∃𝑦𝐵 ∃!𝑥𝐴 𝜑))
1716impcom 408 . 2 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃*𝑥𝐴𝑦𝐵 𝜑) → ∃𝑦𝐵 ∃!𝑥𝐴 𝜑)
181, 17sylbi 216 1 (∃!𝑥𝐴𝑦𝐵 𝜑 → ∃𝑦𝐵 ∃!𝑥𝐴 𝜑)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  wcel 2106  wral 3064  wrex 3065  ∃!wreu 3066  ∃*wrmo 3067
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-10 2137  ax-11 2154  ax-12 2171
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-tru 1542  df-ex 1783  df-nf 1787  df-mo 2540  df-eu 2569  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072
This theorem is referenced by:  2rexreu  3697
  Copyright terms: Public domain W3C validator