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

Theorem reu3op 6135
Description: There is a unique ordered pair fulfilling a wff iff there are uniquely two sets fulfilling a corresponding wff. (Contributed by AV, 1-Jul-2023.)
Hypothesis
Ref Expression
reu3op.a (𝑝 = ⟨𝑎, 𝑏⟩ → (𝜓𝜒))
Assertion
Ref Expression
reu3op (∃!𝑝 ∈ (𝑋 × 𝑌)𝜓 ↔ (∃𝑎𝑋𝑏𝑌 𝜒 ∧ ∃𝑥𝑋𝑦𝑌𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
Distinct variable groups:   𝑋,𝑎,𝑏,𝑝,𝑥,𝑦   𝑌,𝑎,𝑏,𝑝,𝑥,𝑦   𝜓,𝑎,𝑏,𝑥,𝑦   𝜒,𝑝
Allowed substitution hints:   𝜓(𝑝)   𝜒(𝑥,𝑦,𝑎,𝑏)

Proof of Theorem reu3op
Dummy variable 𝑞 is distinct from all other variables.
StepHypRef Expression
1 reu3 3629 . 2 (∃!𝑝 ∈ (𝑋 × 𝑌)𝜓 ↔ (∃𝑝 ∈ (𝑋 × 𝑌)𝜓 ∧ ∃𝑞 ∈ (𝑋 × 𝑌)∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = 𝑞)))
2 reu3op.a . . . 4 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝜓𝜒))
32rexxp 5696 . . 3 (∃𝑝 ∈ (𝑋 × 𝑌)𝜓 ↔ ∃𝑎𝑋𝑏𝑌 𝜒)
4 eqeq2 2748 . . . . . . 7 (𝑞 = ⟨𝑥, 𝑦⟩ → (𝑝 = 𝑞𝑝 = ⟨𝑥, 𝑦⟩))
54imbi2d 344 . . . . . 6 (𝑞 = ⟨𝑥, 𝑦⟩ → ((𝜓𝑝 = 𝑞) ↔ (𝜓𝑝 = ⟨𝑥, 𝑦⟩)))
65ralbidv 3108 . . . . 5 (𝑞 = ⟨𝑥, 𝑦⟩ → (∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = 𝑞) ↔ ∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = ⟨𝑥, 𝑦⟩)))
76rexxp 5696 . . . 4 (∃𝑞 ∈ (𝑋 × 𝑌)∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = 𝑞) ↔ ∃𝑥𝑋𝑦𝑌𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = ⟨𝑥, 𝑦⟩))
8 eqeq1 2740 . . . . . . . 8 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝑝 = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩))
92, 8imbi12d 348 . . . . . . 7 (𝑝 = ⟨𝑎, 𝑏⟩ → ((𝜓𝑝 = ⟨𝑥, 𝑦⟩) ↔ (𝜒 → ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩)))
109ralxp 5695 . . . . . 6 (∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = ⟨𝑥, 𝑦⟩) ↔ ∀𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩))
11 eqcom 2743 . . . . . . . . 9 (⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)
1211a1i 11 . . . . . . . 8 (((𝑥𝑋𝑦𝑌) ∧ (𝑎𝑋𝑏𝑌)) → (⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩))
1312imbi2d 344 . . . . . . 7 (((𝑥𝑋𝑦𝑌) ∧ (𝑎𝑋𝑏𝑌)) → ((𝜒 → ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩) ↔ (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
14132ralbidva 3109 . . . . . 6 ((𝑥𝑋𝑦𝑌) → (∀𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩) ↔ ∀𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
1510, 14syl5bb 286 . . . . 5 ((𝑥𝑋𝑦𝑌) → (∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = ⟨𝑥, 𝑦⟩) ↔ ∀𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
16152rexbiia 3207 . . . 4 (∃𝑥𝑋𝑦𝑌𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = ⟨𝑥, 𝑦⟩) ↔ ∃𝑥𝑋𝑦𝑌𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩))
177, 16bitri 278 . . 3 (∃𝑞 ∈ (𝑋 × 𝑌)∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = 𝑞) ↔ ∃𝑥𝑋𝑦𝑌𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩))
183, 17anbi12i 630 . 2 ((∃𝑝 ∈ (𝑋 × 𝑌)𝜓 ∧ ∃𝑞 ∈ (𝑋 × 𝑌)∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = 𝑞)) ↔ (∃𝑎𝑋𝑏𝑌 𝜒 ∧ ∃𝑥𝑋𝑦𝑌𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
191, 18bitri 278 1 (∃!𝑝 ∈ (𝑋 × 𝑌)𝜓 ↔ (∃𝑎𝑋𝑏𝑌 𝜒 ∧ ∃𝑥𝑋𝑦𝑌𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1543  wcel 2112  wral 3051  wrex 3052  ∃!wreu 3053  cop 4533   × cxp 5534
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2018  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2160  ax-12 2177  ax-ext 2708  ax-sep 5177  ax-nul 5184  ax-pr 5307
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2073  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2728  df-clel 2809  df-nfc 2879  df-ral 3056  df-rex 3057  df-reu 3058  df-rmo 3059  df-rab 3060  df-v 3400  df-sbc 3684  df-csb 3799  df-dif 3856  df-un 3858  df-in 3860  df-ss 3870  df-nul 4224  df-if 4426  df-sn 4528  df-pr 4530  df-op 4534  df-iun 4892  df-opab 5102  df-xp 5542  df-rel 5543
This theorem is referenced by:  opreu2reurex  6137
  Copyright terms: Public domain W3C validator