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

Theorem 2reurex 3690
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 3351 . 2 (∃!𝑥𝐴𝑦𝐵 𝜑 ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃*𝑥𝐴𝑦𝐵 𝜑))
2 rexcom 3281 . . . 4 (∃𝑥𝐴𝑦𝐵 𝜑 ↔ ∃𝑦𝐵𝑥𝐴 𝜑)
3 nfcv 2906 . . . . . 6 𝑦𝐴
4 nfre1 3234 . . . . . 6 𝑦𝑦𝐵 𝜑
53, 4nfrmow 3301 . . . . 5 𝑦∃*𝑥𝐴𝑦𝐵 𝜑
6 rspe 3232 . . . . . . . . . . 11 ((𝑦𝐵𝜑) → ∃𝑦𝐵 𝜑)
76ex 412 . . . . . . . . . 10 (𝑦𝐵 → (𝜑 → ∃𝑦𝐵 𝜑))
87ralrimivw 3108 . . . . . . . . 9 (𝑦𝐵 → ∀𝑥𝐴 (𝜑 → ∃𝑦𝐵 𝜑))
9 rmoim 3670 . . . . . . . . 9 (∀𝑥𝐴 (𝜑 → ∃𝑦𝐵 𝜑) → (∃*𝑥𝐴𝑦𝐵 𝜑 → ∃*𝑥𝐴 𝜑))
108, 9syl 17 . . . . . . . 8 (𝑦𝐵 → (∃*𝑥𝐴𝑦𝐵 𝜑 → ∃*𝑥𝐴 𝜑))
1110impcom 407 . . . . . . 7 ((∃*𝑥𝐴𝑦𝐵 𝜑𝑦𝐵) → ∃*𝑥𝐴 𝜑)
12 rmo5 3355 . . . . . . 7 (∃*𝑥𝐴 𝜑 ↔ (∃𝑥𝐴 𝜑 → ∃!𝑥𝐴 𝜑))
1311, 12sylib 217 . . . . . 6 ((∃*𝑥𝐴𝑦𝐵 𝜑𝑦𝐵) → (∃𝑥𝐴 𝜑 → ∃!𝑥𝐴 𝜑))
1413ex 412 . . . . 5 (∃*𝑥𝐴𝑦𝐵 𝜑 → (𝑦𝐵 → (∃𝑥𝐴 𝜑 → ∃!𝑥𝐴 𝜑)))
155, 14reximdai 3239 . . . 4 (∃*𝑥𝐴𝑦𝐵 𝜑 → (∃𝑦𝐵𝑥𝐴 𝜑 → ∃𝑦𝐵 ∃!𝑥𝐴 𝜑))
162, 15syl5bi 241 . . 3 (∃*𝑥𝐴𝑦𝐵 𝜑 → (∃𝑥𝐴𝑦𝐵 𝜑 → ∃𝑦𝐵 ∃!𝑥𝐴 𝜑))
1716impcom 407 . 2 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃*𝑥𝐴𝑦𝐵 𝜑) → ∃𝑦𝐵 ∃!𝑥𝐴 𝜑)
181, 17sylbi 216 1 (∃!𝑥𝐴𝑦𝐵 𝜑 → ∃𝑦𝐵 ∃!𝑥𝐴 𝜑)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  wcel 2108  wral 3063  wrex 3064  ∃!wreu 3065  ∃*wrmo 3066
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-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-ex 1784  df-nf 1788  df-mo 2540  df-eu 2569  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071
This theorem is referenced by:  2rexreu  3692
  Copyright terms: Public domain W3C validator