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

Theorem 2reu5 3693
Description: Double restricted existential uniqueness in terms of restricted existential quantification and restricted universal quantification, analogous to 2eu5 2657 and reu3 3662. (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 3185 . . . . . . . 8 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑥𝐴 (∃𝑦𝐵 𝜑 ∧ ∀𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
2 r19.29r 3185 . . . . . . . . 9 ((∃𝑦𝐵 𝜑 ∧ ∀𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
32reximi 3178 . . . . . . . 8 (∃𝑥𝐴 (∃𝑦𝐵 𝜑 ∧ ∀𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑥𝐴𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
4 pm3.35 800 . . . . . . . . . 10 ((𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → (𝑥 = 𝑧𝑦 = 𝑤))
54reximi 3178 . . . . . . . . 9 (∃𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑦𝐵 (𝑥 = 𝑧𝑦 = 𝑤))
65reximi 3178 . . . . . . . 8 (∃𝑥𝐴𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑥𝐴𝑦𝐵 (𝑥 = 𝑧𝑦 = 𝑤))
7 eleq1w 2821 . . . . . . . . . . . . 13 (𝑥 = 𝑧 → (𝑥𝐴𝑧𝐴))
8 eleq1w 2821 . . . . . . . . . . . . 13 (𝑦 = 𝑤 → (𝑦𝐵𝑤𝐵))
97, 8bi2anan9 636 . . . . . . . . . . . 12 ((𝑥 = 𝑧𝑦 = 𝑤) → ((𝑥𝐴𝑦𝐵) ↔ (𝑧𝐴𝑤𝐵)))
109biimpac 479 . . . . . . . . . . 11 (((𝑥𝐴𝑦𝐵) ∧ (𝑥 = 𝑧𝑦 = 𝑤)) → (𝑧𝐴𝑤𝐵))
1110ancomd 462 . . . . . . . . . 10 (((𝑥𝐴𝑦𝐵) ∧ (𝑥 = 𝑧𝑦 = 𝑤)) → (𝑤𝐵𝑧𝐴))
1211ex 413 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → ((𝑥 = 𝑧𝑦 = 𝑤) → (𝑤𝐵𝑧𝐴)))
1312rexlimivv 3221 . . . . . . . 8 (∃𝑥𝐴𝑦𝐵 (𝑥 = 𝑧𝑦 = 𝑤) → (𝑤𝐵𝑧𝐴))
141, 3, 6, 134syl 19 . . . . . . 7 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → (𝑤𝐵𝑧𝐴))
1514ex 413 . . . . . 6 (∃𝑥𝐴𝑦𝐵 𝜑 → (∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) → (𝑤𝐵𝑧𝐴)))
1615pm4.71rd 563 . . . . 5 (∃𝑥𝐴𝑦𝐵 𝜑 → (∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ((𝑤𝐵𝑧𝐴) ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
17 anass 469 . . . . 5 (((𝑤𝐵𝑧𝐴) ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
1816, 17bitrdi 287 . . . 4 (∃𝑥𝐴𝑦𝐵 𝜑 → (∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ (𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
19182exbidv 1927 . . 3 (∃𝑥𝐴𝑦𝐵 𝜑 → (∃𝑧𝑤𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
2019pm5.32i 575 . 2 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
21 2reu5lem3 3692 . 2 ((∃!𝑥𝐴 ∃!𝑦𝐵 𝜑 ∧ ∀𝑥𝐴 ∃*𝑦𝐵 𝜑) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
22 df-rex 3070 . . . 4 (∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∃𝑧(𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
23 r19.42v 3279 . . . . . 6 (∃𝑤𝐵 (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
24 df-rex 3070 . . . . . 6 (∃𝑤𝐵 (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ ∃𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2523, 24bitr3i 276 . . . . 5 ((𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ ∃𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2625exbii 1850 . . . 4 (∃𝑧(𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2722, 26bitri 274 . . 3 (∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2827anbi2i 623 . 2 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
2920, 21, 283bitr4i 303 1 ((∃!𝑥𝐴 ∃!𝑦𝐵 𝜑 ∧ ∀𝑥𝐴 ∃*𝑦𝐵 𝜑) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  wex 1782  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-3an 1088  df-tru 1542  df-ex 1783  df-nf 1787  df-mo 2540  df-eu 2569  df-clel 2816  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator