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

Theorem opreuopreu 7849
Description: There is a unique ordered pair fulfilling a wff iff its components fulfil a corresponding wff. (Contributed by AV, 2-Jul-2023.)
Hypothesis
Ref Expression
opreuopreu.a ((𝑎 = (1st𝑝) ∧ 𝑏 = (2nd𝑝)) → (𝜓𝜑))
Assertion
Ref Expression
opreuopreu (∃!𝑝 ∈ (𝐴 × 𝐵)𝜑 ↔ ∃!𝑝 ∈ (𝐴 × 𝐵)∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓))
Distinct variable groups:   𝐴,𝑎,𝑏,𝑝   𝐵,𝑎,𝑏,𝑝   𝜑,𝑎,𝑏
Allowed substitution hints:   𝜑(𝑝)   𝜓(𝑝,𝑎,𝑏)

Proof of Theorem opreuopreu
StepHypRef Expression
1 elxpi 5602 . . . 4 (𝑝 ∈ (𝐴 × 𝐵) → ∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵)))
2 simprl 767 . . . . . . 7 ((𝜑 ∧ (𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵))) → 𝑝 = ⟨𝑎, 𝑏⟩)
3 vex 3426 . . . . . . . . . . . . . . 15 𝑎 ∈ V
4 vex 3426 . . . . . . . . . . . . . . 15 𝑏 ∈ V
53, 4op1st 7812 . . . . . . . . . . . . . 14 (1st ‘⟨𝑎, 𝑏⟩) = 𝑎
65eqcomi 2747 . . . . . . . . . . . . 13 𝑎 = (1st ‘⟨𝑎, 𝑏⟩)
73, 4op2nd 7813 . . . . . . . . . . . . . 14 (2nd ‘⟨𝑎, 𝑏⟩) = 𝑏
87eqcomi 2747 . . . . . . . . . . . . 13 𝑏 = (2nd ‘⟨𝑎, 𝑏⟩)
96, 8pm3.2i 470 . . . . . . . . . . . 12 (𝑎 = (1st ‘⟨𝑎, 𝑏⟩) ∧ 𝑏 = (2nd ‘⟨𝑎, 𝑏⟩))
10 fveq2 6756 . . . . . . . . . . . . . 14 (𝑝 = ⟨𝑎, 𝑏⟩ → (1st𝑝) = (1st ‘⟨𝑎, 𝑏⟩))
1110eqeq2d 2749 . . . . . . . . . . . . 13 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝑎 = (1st𝑝) ↔ 𝑎 = (1st ‘⟨𝑎, 𝑏⟩)))
12 fveq2 6756 . . . . . . . . . . . . . 14 (𝑝 = ⟨𝑎, 𝑏⟩ → (2nd𝑝) = (2nd ‘⟨𝑎, 𝑏⟩))
1312eqeq2d 2749 . . . . . . . . . . . . 13 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝑏 = (2nd𝑝) ↔ 𝑏 = (2nd ‘⟨𝑎, 𝑏⟩)))
1411, 13anbi12d 630 . . . . . . . . . . . 12 (𝑝 = ⟨𝑎, 𝑏⟩ → ((𝑎 = (1st𝑝) ∧ 𝑏 = (2nd𝑝)) ↔ (𝑎 = (1st ‘⟨𝑎, 𝑏⟩) ∧ 𝑏 = (2nd ‘⟨𝑎, 𝑏⟩))))
159, 14mpbiri 257 . . . . . . . . . . 11 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝑎 = (1st𝑝) ∧ 𝑏 = (2nd𝑝)))
16 opreuopreu.a . . . . . . . . . . 11 ((𝑎 = (1st𝑝) ∧ 𝑏 = (2nd𝑝)) → (𝜓𝜑))
1715, 16syl 17 . . . . . . . . . 10 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝜓𝜑))
1817biimprd 247 . . . . . . . . 9 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝜑𝜓))
1918adantr 480 . . . . . . . 8 ((𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵)) → (𝜑𝜓))
2019impcom 407 . . . . . . 7 ((𝜑 ∧ (𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵))) → 𝜓)
212, 20jca 511 . . . . . 6 ((𝜑 ∧ (𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵))) → (𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓))
2221ex 412 . . . . 5 (𝜑 → ((𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵)) → (𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓)))
23222eximdv 1923 . . . 4 (𝜑 → (∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵)) → ∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓)))
241, 23syl5com 31 . . 3 (𝑝 ∈ (𝐴 × 𝐵) → (𝜑 → ∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓)))
2517biimpa 476 . . . . 5 ((𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓) → 𝜑)
2625a1i 11 . . . 4 (𝑝 ∈ (𝐴 × 𝐵) → ((𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓) → 𝜑))
2726exlimdvv 1938 . . 3 (𝑝 ∈ (𝐴 × 𝐵) → (∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓) → 𝜑))
2824, 27impbid 211 . 2 (𝑝 ∈ (𝐴 × 𝐵) → (𝜑 ↔ ∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓)))
2928reubiia 3316 1 (∃!𝑝 ∈ (𝐴 × 𝐵)𝜑 ↔ ∃!𝑝 ∈ (𝐴 × 𝐵)∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  ∃!wreu 3065  cop 4564   × cxp 5578  cfv 6418  1st c1st 7802  2nd c2nd 7803
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  ax-un 7566
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-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  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-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-iota 6376  df-fun 6420  df-fv 6426  df-1st 7804  df-2nd 7805
This theorem is referenced by:  2sqreuopb  26521
  Copyright terms: Public domain W3C validator