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

Theorem 2reu5 3522
 Description: Double restricted existential uniqueness in terms of restricted existential quantification and restricted universal quantification, analogous to 2eu5 2659 and reu3 3502. (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 3175 . . . . . . . 8 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑥𝐴 (∃𝑦𝐵 𝜑 ∧ ∀𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
2 r19.29r 3175 . . . . . . . . 9 ((∃𝑦𝐵 𝜑 ∧ ∀𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
32reximi 3113 . . . . . . . 8 (∃𝑥𝐴 (∃𝑦𝐵 𝜑 ∧ ∀𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑥𝐴𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
4 pm3.35 612 . . . . . . . . . 10 ((𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → (𝑥 = 𝑧𝑦 = 𝑤))
54reximi 3113 . . . . . . . . 9 (∃𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑦𝐵 (𝑥 = 𝑧𝑦 = 𝑤))
65reximi 3113 . . . . . . . 8 (∃𝑥𝐴𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑥𝐴𝑦𝐵 (𝑥 = 𝑧𝑦 = 𝑤))
7 eleq1 2791 . . . . . . . . . . . . 13 (𝑥 = 𝑧 → (𝑥𝐴𝑧𝐴))
8 eleq1 2791 . . . . . . . . . . . . 13 (𝑦 = 𝑤 → (𝑦𝐵𝑤𝐵))
97, 8bi2anan9 953 . . . . . . . . . . . 12 ((𝑥 = 𝑧𝑦 = 𝑤) → ((𝑥𝐴𝑦𝐵) ↔ (𝑧𝐴𝑤𝐵)))
109biimpac 504 . . . . . . . . . . 11 (((𝑥𝐴𝑦𝐵) ∧ (𝑥 = 𝑧𝑦 = 𝑤)) → (𝑧𝐴𝑤𝐵))
1110ancomd 466 . . . . . . . . . 10 (((𝑥𝐴𝑦𝐵) ∧ (𝑥 = 𝑧𝑦 = 𝑤)) → (𝑤𝐵𝑧𝐴))
1211ex 449 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → ((𝑥 = 𝑧𝑦 = 𝑤) → (𝑤𝐵𝑧𝐴)))
1312rexlimivv 3138 . . . . . . . 8 (∃𝑥𝐴𝑦𝐵 (𝑥 = 𝑧𝑦 = 𝑤) → (𝑤𝐵𝑧𝐴))
141, 3, 6, 134syl 19 . . . . . . 7 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → (𝑤𝐵𝑧𝐴))
1514ex 449 . . . . . 6 (∃𝑥𝐴𝑦𝐵 𝜑 → (∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) → (𝑤𝐵𝑧𝐴)))
1615pm4.71rd 670 . . . . 5 (∃𝑥𝐴𝑦𝐵 𝜑 → (∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ((𝑤𝐵𝑧𝐴) ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
17 anass 684 . . . . 5 (((𝑤𝐵𝑧𝐴) ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
1816, 17syl6bb 276 . . . 4 (∃𝑥𝐴𝑦𝐵 𝜑 → (∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ (𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
19182exbidv 1965 . . 3 (∃𝑥𝐴𝑦𝐵 𝜑 → (∃𝑧𝑤𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
2019pm5.32i 672 . 2 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
21 2reu5lem3 3521 . 2 ((∃!𝑥𝐴 ∃!𝑦𝐵 𝜑 ∧ ∀𝑥𝐴 ∃*𝑦𝐵 𝜑) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
22 df-rex 3020 . . . 4 (∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∃𝑧(𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
23 r19.42v 3194 . . . . . 6 (∃𝑤𝐵 (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
24 df-rex 3020 . . . . . 6 (∃𝑤𝐵 (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ ∃𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2523, 24bitr3i 266 . . . . 5 ((𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ ∃𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2625exbii 1887 . . . 4 (∃𝑧(𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2722, 26bitri 264 . . 3 (∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2827anbi2i 732 . 2 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
2920, 21, 283bitr4i 292 1 ((∃!𝑥𝐴 ∃!𝑦𝐵 𝜑 ∧ ∀𝑥𝐴 ∃*𝑦𝐵 𝜑) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 196   ∧ wa 383  ∃wex 1817   ∈ wcel 2103  ∀wral 3014  ∃wrex 3015  ∃!wreu 3016  ∃*wrmo 3017 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1835  ax-4 1850  ax-5 1952  ax-6 2018  ax-7 2054  ax-9 2112  ax-10 2132  ax-11 2147  ax-12 2160  ax-13 2355  ax-ext 2704 This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3an 1074  df-tru 1599  df-ex 1818  df-nf 1823  df-eu 2575  df-mo 2576  df-cleq 2717  df-clel 2720  df-ral 3019  df-rex 3020  df-reu 3021  df-rmo 3022 This theorem is referenced by: (None)
 Copyright terms: Public domain W3C validator