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

Theorem 2reu5 3398
Description: Double restricted existential uniqueness in terms of restricted existential quantification and restricted universal quantification, analogous to 2eu5 2556 and reu3 3378. (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 3066 . . . . . . . 8 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑥𝐴 (∃𝑦𝐵 𝜑 ∧ ∀𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
2 r19.29r 3066 . . . . . . . . 9 ((∃𝑦𝐵 𝜑 ∧ ∀𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
32reximi 3005 . . . . . . . 8 (∃𝑥𝐴 (∃𝑦𝐵 𝜑 ∧ ∀𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑥𝐴𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
4 pm3.35 610 . . . . . . . . . 10 ((𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → (𝑥 = 𝑧𝑦 = 𝑤))
54reximi 3005 . . . . . . . . 9 (∃𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑦𝐵 (𝑥 = 𝑧𝑦 = 𝑤))
65reximi 3005 . . . . . . . 8 (∃𝑥𝐴𝑦𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → ∃𝑥𝐴𝑦𝐵 (𝑥 = 𝑧𝑦 = 𝑤))
7 eleq1 2686 . . . . . . . . . . . . 13 (𝑥 = 𝑧 → (𝑥𝐴𝑧𝐴))
8 eleq1 2686 . . . . . . . . . . . . 13 (𝑦 = 𝑤 → (𝑦𝐵𝑤𝐵))
97, 8bi2anan9 916 . . . . . . . . . . . 12 ((𝑥 = 𝑧𝑦 = 𝑤) → ((𝑥𝐴𝑦𝐵) ↔ (𝑧𝐴𝑤𝐵)))
109biimpac 503 . . . . . . . . . . 11 (((𝑥𝐴𝑦𝐵) ∧ (𝑥 = 𝑧𝑦 = 𝑤)) → (𝑧𝐴𝑤𝐵))
1110ancomd 467 . . . . . . . . . 10 (((𝑥𝐴𝑦𝐵) ∧ (𝑥 = 𝑧𝑦 = 𝑤)) → (𝑤𝐵𝑧𝐴))
1211ex 450 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → ((𝑥 = 𝑧𝑦 = 𝑤) → (𝑤𝐵𝑧𝐴)))
1312rexlimivv 3029 . . . . . . . 8 (∃𝑥𝐴𝑦𝐵 (𝑥 = 𝑧𝑦 = 𝑤) → (𝑤𝐵𝑧𝐴))
141, 3, 6, 134syl 19 . . . . . . 7 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) → (𝑤𝐵𝑧𝐴))
1514ex 450 . . . . . 6 (∃𝑥𝐴𝑦𝐵 𝜑 → (∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) → (𝑤𝐵𝑧𝐴)))
1615pm4.71rd 666 . . . . 5 (∃𝑥𝐴𝑦𝐵 𝜑 → (∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ((𝑤𝐵𝑧𝐴) ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
17 anass 680 . . . . 5 (((𝑤𝐵𝑧𝐴) ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
1816, 17syl6bb 276 . . . 4 (∃𝑥𝐴𝑦𝐵 𝜑 → (∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ (𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
19182exbidv 1849 . . 3 (∃𝑥𝐴𝑦𝐵 𝜑 → (∃𝑧𝑤𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
2019pm5.32i 668 . 2 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
21 2reu5lem3 3397 . 2 ((∃!𝑥𝐴 ∃!𝑦𝐵 𝜑 ∧ ∀𝑥𝐴 ∃*𝑦𝐵 𝜑) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
22 df-rex 2913 . . . 4 (∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∃𝑧(𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
23 r19.42v 3084 . . . . . 6 (∃𝑤𝐵 (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
24 df-rex 2913 . . . . . 6 (∃𝑤𝐵 (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ ∃𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2523, 24bitr3i 266 . . . . 5 ((𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ ∃𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2625exbii 1771 . . . 4 (∃𝑧(𝑧𝐴 ∧ ∃𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2722, 26bitri 264 . . 3 (∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))))
2827anbi2i 729 . 2 ((∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝑤(𝑤𝐵 ∧ (𝑧𝐴 ∧ ∀𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))))
2920, 21, 283bitr4i 292 1 ((∃!𝑥𝐴 ∃!𝑦𝐵 𝜑 ∧ ∀𝑥𝐴 ∃*𝑦𝐵 𝜑) ↔ (∃𝑥𝐴𝑦𝐵 𝜑 ∧ ∃𝑧𝐴𝑤𝐵𝑥𝐴𝑦𝐵 (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384  wex 1701  wcel 1987  wral 2907  wrex 2908  ∃!wreu 2909  ∃*wrmo 2910
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-eu 2473  df-mo 2474  df-cleq 2614  df-clel 2617  df-ral 2912  df-rex 2913  df-reu 2914  df-rmo 2915
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator