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

Theorem 2reu5 3719
Description: Double restricted existential uniqueness in terms of restricted existential quantification and restricted universal quantification, analogous to 2eu5 2683 and reu3 3688. (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 3130 . . . . . . . 8 ((∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) → ∃𝑥 ∈ 𝐴 (∃𝑦 ∈ 𝐵 𝜑 ∧ ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))))
2 r19.29r 3130 . . . . . . . . 9 ((∃𝑦 ∈ 𝐵 𝜑 ∧ ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) → ∃𝑦 ∈ 𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))))
32reximi 3104 . . . . . . . 8 (∃𝑥 ∈ 𝐴 (∃𝑦 ∈ 𝐵 𝜑 ∧ ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) → ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))))
4 pm3.35 815 . . . . . . . . . 10 ((𝜑 ∧ (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))
54reximi 3104 . . . . . . . . 9 (∃𝑦 ∈ 𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) → ∃𝑦 ∈ 𝐵 (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))
65reximi 3104 . . . . . . . 8 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝜑 ∧ (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) → ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))
7 eleq1w 2847 . . . . . . . . . . . . 13 (𝑥 = 𝑧 → (𝑥 ∈ 𝐴 ↔ 𝑧 ∈ 𝐴))
8 eleq1w 2847 . . . . . . . . . . . . 13 (𝑦 = 𝑤 → (𝑦 ∈ 𝐵 ↔ 𝑤 ∈ 𝐵))
97, 8bi2anan9 650 . . . . . . . . . . . 12 ((𝑥 = 𝑧 ∧ 𝑦 = 𝑤) → ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ↔ (𝑧 ∈ 𝐴 ∧ 𝑤 ∈ 𝐵)))
109biimpac 484 . . . . . . . . . . 11 (((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)) → (𝑧 ∈ 𝐴 ∧ 𝑤 ∈ 𝐵))
1110ancomd 467 . . . . . . . . . 10 (((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)) → (𝑤 ∈ 𝐵 ∧ 𝑧 ∈ 𝐴))
1211ex 418 . . . . . . . . 9 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ((𝑥 = 𝑧 ∧ 𝑦 = 𝑤) → (𝑤 ∈ 𝐵 ∧ 𝑧 ∈ 𝐴)))
1312rexlimivv 3208 . . . . . . . 8 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 = 𝑧 ∧ 𝑦 = 𝑤) → (𝑤 ∈ 𝐵 ∧ 𝑧 ∈ 𝐴))
141, 3, 6, 134syl 20 . . . . . . 7 ((∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) → (𝑤 ∈ 𝐵 ∧ 𝑧 ∈ 𝐴))
1514ex 418 . . . . . 6 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)) → (𝑤 ∈ 𝐵 ∧ 𝑧 ∈ 𝐴)))
1615pm4.71rd 572 . . . . 5 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)) ↔ ((𝑤 ∈ 𝐵 ∧ 𝑧 ∈ 𝐴) ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)))))
17 anass 474 . . . . 5 (((𝑤 ∈ 𝐵 ∧ 𝑧 ∈ 𝐴) ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) ↔ (𝑤 ∈ 𝐵 ∧ (𝑧 ∈ 𝐴 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)))))
1816, 17bitrdi 290 . . . 4 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)) ↔ (𝑤 ∈ 𝐵 ∧ (𝑧 ∈ 𝐴 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))))))
19182exbidv 1958 . . 3 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 → (∃𝑧∃𝑤∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)) ↔ ∃𝑧∃𝑤(𝑤 ∈ 𝐵 ∧ (𝑧 ∈ 𝐴 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))))))
2019pm5.32i 585 . 2 ((∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 ∧ ∃𝑧∃𝑤∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) ↔ (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 ∧ ∃𝑧∃𝑤(𝑤 ∈ 𝐵 ∧ (𝑧 ∈ 𝐴 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))))))
21 2reu5lem3 3718 . 2 ((∃!𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝜑 ∧ ∀𝑥 ∈ 𝐴 ∃*𝑦 ∈ 𝐵 𝜑) ↔ (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 ∧ ∃𝑧∃𝑤∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))))
22 df-rex 3091 . . . 4 (∃𝑧 ∈ 𝐴 ∃𝑤 ∈ 𝐵 ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)) ↔ ∃𝑧(𝑧 ∈ 𝐴 ∧ ∃𝑤 ∈ 𝐵 ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))))
23 r19.42v 3198 . . . . . 6 (∃𝑤 ∈ 𝐵 (𝑧 ∈ 𝐴 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) ↔ (𝑧 ∈ 𝐴 ∧ ∃𝑤 ∈ 𝐵 ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))))
24 df-rex 3091 . . . . . 6 (∃𝑤 ∈ 𝐵 (𝑧 ∈ 𝐴 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) ↔ ∃𝑤(𝑤 ∈ 𝐵 ∧ (𝑧 ∈ 𝐴 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)))))
2523, 24bitr3i 280 . . . . 5 ((𝑧 ∈ 𝐴 ∧ ∃𝑤 ∈ 𝐵 ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) ↔ ∃𝑤(𝑤 ∈ 𝐵 ∧ (𝑧 ∈ 𝐴 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)))))
2625exbii 1880 . . . 4 (∃𝑧(𝑧 ∈ 𝐴 ∧ ∃𝑤 ∈ 𝐵 ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) ↔ ∃𝑧∃𝑤(𝑤 ∈ 𝐵 ∧ (𝑧 ∈ 𝐴 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)))))
2722, 26bitri 278 . . 3 (∃𝑧 ∈ 𝐴 ∃𝑤 ∈ 𝐵 ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)) ↔ ∃𝑧∃𝑤(𝑤 ∈ 𝐵 ∧ (𝑧 ∈ 𝐴 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤)))))
2827anbi2i 635 . 2 ((∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 ∧ ∃𝑧 ∈ 𝐴 ∃𝑤 ∈ 𝐵 ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))) ↔ (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 ∧ ∃𝑧∃𝑤(𝑤 ∈ 𝐵 ∧ (𝑧 ∈ 𝐴 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))))))
2920, 21, 283bitr4i 306 1 ((∃!𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝜑 ∧ ∀𝑥 ∈ 𝐴 ∃*𝑦 ∈ 𝐵 𝜑) ↔ (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 ∧ ∃𝑧 ∈ 𝐴 ∃𝑤 ∈ 𝐵 ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 (𝜑 → (𝑥 = 𝑧 ∧ 𝑦 = 𝑤))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∃wex 1811   ∈ wcel 2146  ∀wral 3080  ∃wrex 3090  ∃!wreu 3367  ∃*wrmo 3368
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-10 2179  ax-11 2196  ax-12 2215
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-ex 1812  df-nf 1816  df-mo 2567  df-eu 2597  df-clel 2839  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator