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

Theorem reu3op 6184
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 3657 . 2 (∃!𝑝 ∈ (𝑋 × 𝑌)𝜓 ↔ (∃𝑝 ∈ (𝑋 × 𝑌)𝜓 ∧ ∃𝑞 ∈ (𝑋 × 𝑌)∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = 𝑞)))
2 reu3op.a . . . 4 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝜓𝜒))
32rexxp 5740 . . 3 (∃𝑝 ∈ (𝑋 × 𝑌)𝜓 ↔ ∃𝑎𝑋𝑏𝑌 𝜒)
4 eqeq2 2750 . . . . . . 7 (𝑞 = ⟨𝑥, 𝑦⟩ → (𝑝 = 𝑞𝑝 = ⟨𝑥, 𝑦⟩))
54imbi2d 340 . . . . . 6 (𝑞 = ⟨𝑥, 𝑦⟩ → ((𝜓𝑝 = 𝑞) ↔ (𝜓𝑝 = ⟨𝑥, 𝑦⟩)))
65ralbidv 3120 . . . . 5 (𝑞 = ⟨𝑥, 𝑦⟩ → (∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = 𝑞) ↔ ∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = ⟨𝑥, 𝑦⟩)))
76rexxp 5740 . . . 4 (∃𝑞 ∈ (𝑋 × 𝑌)∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = 𝑞) ↔ ∃𝑥𝑋𝑦𝑌𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = ⟨𝑥, 𝑦⟩))
8 eqeq1 2742 . . . . . . . 8 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝑝 = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩))
92, 8imbi12d 344 . . . . . . 7 (𝑝 = ⟨𝑎, 𝑏⟩ → ((𝜓𝑝 = ⟨𝑥, 𝑦⟩) ↔ (𝜒 → ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩)))
109ralxp 5739 . . . . . 6 (∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = ⟨𝑥, 𝑦⟩) ↔ ∀𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩))
11 eqcom 2745 . . . . . . . . 9 (⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)
1211a1i 11 . . . . . . . 8 (((𝑥𝑋𝑦𝑌) ∧ (𝑎𝑋𝑏𝑌)) → (⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩))
1312imbi2d 340 . . . . . . 7 (((𝑥𝑋𝑦𝑌) ∧ (𝑎𝑋𝑏𝑌)) → ((𝜒 → ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩) ↔ (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
14132ralbidva 3121 . . . . . 6 ((𝑥𝑋𝑦𝑌) → (∀𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩) ↔ ∀𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
1510, 14syl5bb 282 . . . . 5 ((𝑥𝑋𝑦𝑌) → (∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = ⟨𝑥, 𝑦⟩) ↔ ∀𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
16152rexbiia 3226 . . . 4 (∃𝑥𝑋𝑦𝑌𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = ⟨𝑥, 𝑦⟩) ↔ ∃𝑥𝑋𝑦𝑌𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩))
177, 16bitri 274 . . 3 (∃𝑞 ∈ (𝑋 × 𝑌)∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = 𝑞) ↔ ∃𝑥𝑋𝑦𝑌𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩))
183, 17anbi12i 626 . 2 ((∃𝑝 ∈ (𝑋 × 𝑌)𝜓 ∧ ∃𝑞 ∈ (𝑋 × 𝑌)∀𝑝 ∈ (𝑋 × 𝑌)(𝜓𝑝 = 𝑞)) ↔ (∃𝑎𝑋𝑏𝑌 𝜒 ∧ ∃𝑥𝑋𝑦𝑌𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
191, 18bitri 274 1 (∃!𝑝 ∈ (𝑋 × 𝑌)𝜓 ↔ (∃𝑎𝑋𝑏𝑌 𝜒 ∧ ∃𝑥𝑋𝑦𝑌𝑎𝑋𝑏𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wral 3063  wrex 3064  ∃!wreu 3065  cop 4564   × cxp 5578
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-iun 4923  df-opab 5133  df-xp 5586  df-rel 5587
This theorem is referenced by:  opreu2reurex  6186
  Copyright terms: Public domain W3C validator