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

Theorem 2reu5 3688
Description: Double restricted existential uniqueness in terms of restricted existential quantification and restricted universal quantification, analogous to 2eu5 2657 and reu3 3657. (Contributed by Alexander van der Vekens, 17-Jun-2017.)
Assertion
Ref Expression
2reu5 ((∃!𝑥𝐴 ∃!𝑦𝐵 𝜑 ∧ ∀𝑥𝐴 ∃*𝑦𝐵 𝜑) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
Distinct variable groups:   𝑦,𝑤,𝑧,𝐴,𝑥   𝑤,𝐵   𝑥,𝑧,𝐵,𝑦   𝜑,𝑤,𝑧   𝑥,𝐴   𝑦,𝐵
Allowed substitution hints:   𝜑(𝑥,𝑦)

Proof of Theorem 2reu5
StepHypRef Expression
1 r19.29r 3184 . . . . . . . 8 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑥𝐴 (∃𝑦𝐵 𝜑 ∧ ∀𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
2 r19.29r 3184 . . . . . . . . 9 ((∃𝑦𝐵 𝜑 ∧ ∀𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
32reximi 3174 . . . . . . . 8 (∃𝑥𝐴 (∃𝑦𝐵 𝜑 ∧ ∀𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑥𝐴𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
4 pm3.35 799 . . . . . . . . . 10 ((𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → (𝑥 = 𝑧𝑦 = 𝑤))
54reximi 3174 . . . . . . . . 9 (∃𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑦𝐵 (𝑥 = 𝑧𝑦 = 𝑤))
65reximi 3174 . . . . . . . 8 (∃𝑥𝐴𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑥𝐴𝑦𝐵 (𝑥 = 𝑧𝑦 = 𝑤))
7 eleq1w 2821 . . . . . . . . . . . . 13 (𝑥 = 𝑧 → (𝑥𝐴𝑧𝐴))
8 eleq1w 2821 . . . . . . . . . . . . 13 (𝑦 = 𝑤 → (𝑦𝐵𝑤𝐵))
97, 8bi2anan9 635 . . . . . . . . . . . 12 ((𝑥 = 𝑧𝑦 = 𝑤) → ((𝑥𝐴𝑦𝐵) ↔ (𝑧𝐴𝑤𝐵)))
109biimpac 478 . . . . . . . . . . 11 (((𝑥𝐴𝑦𝐵) ∧ (𝑥 = 𝑧𝑦 = 𝑤)) → (𝑧𝐴𝑤𝐵))
1110ancomd 461 . . . . . . . . . 10 (((𝑥𝐴𝑦𝐵) ∧ (𝑥 = 𝑧𝑦 = 𝑤)) → (𝑤𝐵𝑧𝐴))
1211ex 412 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → ((𝑥 = 𝑧𝑦 = 𝑤) → (𝑤𝐵𝑧𝐴)))
1312rexlimivv 3220 . . . . . . . 8 (∃𝑥𝐴𝑦𝐵 (𝑥 = 𝑧𝑦 = 𝑤) → (𝑤𝐵𝑧𝐴))
141, 3, 6, 134syl 19 . . . . . . 7 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → (𝑤𝐵𝑧𝐴))
1514ex 412 . . . . . 6 (∃𝑥𝐴𝑦𝐵 𝜑 → (∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) → (𝑤𝐵𝑧𝐴)))
1615pm4.71rd 562 . . . . 5 (∃𝑥𝐴𝑦𝐵 𝜑 → (∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ((𝑤𝐵𝑧𝐴) ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
17 anass 468 . . . . 5 (((𝑤𝐵𝑧𝐴) ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
1816, 17bitrdi 286 . . . 4 (∃𝑥𝐴𝑦𝐵 𝜑 → (∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ (𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
19182exbidv 1928 . . 3 (∃𝑥𝐴𝑦𝐵 𝜑 → (∃𝑧𝑤𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
2019pm5.32i 574 . 2 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
21 2reu5lem3 3687 . 2 ((∃!𝑥𝐴 ∃!𝑦𝐵 𝜑 ∧ ∀𝑥𝐴 ∃*𝑦𝐵 𝜑) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
22 df-rex 3069 . . . 4 (∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∃𝑧(𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
23 r19.42v 3276 . . . . . 6 (∃𝑤𝐵 (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
24 df-rex 3069 . . . . . 6 (∃𝑤𝐵 (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ ∃𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2523, 24bitr3i 276 . . . . 5 ((𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ ∃𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2625exbii 1851 . . . 4 (∃𝑧(𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2722, 26bitri 274 . . 3 (∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2827anbi2i 622 . 2 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
2920, 21, 283bitr4i 302 1 ((∃!𝑥𝐴 ∃!𝑦𝐵 𝜑 ∧ ∀𝑥𝐴 ∃*𝑦𝐵 𝜑) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wex 1783  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-10 2139  ax-11 2156  ax-12 2173
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-ex 1784  df-nf 1788  df-mo 2540  df-eu 2569  df-clel 2817  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator