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

Theorem opreuopreu 7719
 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 5542 . . . 4 (𝑝 ∈ (𝐴 × 𝐵) → ∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵)))
2 simprl 770 . . . . . . 7 ((𝜑 ∧ (𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵))) → 𝑝 = ⟨𝑎, 𝑏⟩)
3 vex 3444 . . . . . . . . . . . . . . 15 𝑎 ∈ V
4 vex 3444 . . . . . . . . . . . . . . 15 𝑏 ∈ V
53, 4op1st 7682 . . . . . . . . . . . . . 14 (1st ‘⟨𝑎, 𝑏⟩) = 𝑎
65eqcomi 2807 . . . . . . . . . . . . 13 𝑎 = (1st ‘⟨𝑎, 𝑏⟩)
73, 4op2nd 7683 . . . . . . . . . . . . . 14 (2nd ‘⟨𝑎, 𝑏⟩) = 𝑏
87eqcomi 2807 . . . . . . . . . . . . 13 𝑏 = (2nd ‘⟨𝑎, 𝑏⟩)
96, 8pm3.2i 474 . . . . . . . . . . . 12 (𝑎 = (1st ‘⟨𝑎, 𝑏⟩) ∧ 𝑏 = (2nd ‘⟨𝑎, 𝑏⟩))
10 fveq2 6646 . . . . . . . . . . . . . 14 (𝑝 = ⟨𝑎, 𝑏⟩ → (1st𝑝) = (1st ‘⟨𝑎, 𝑏⟩))
1110eqeq2d 2809 . . . . . . . . . . . . 13 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝑎 = (1st𝑝) ↔ 𝑎 = (1st ‘⟨𝑎, 𝑏⟩)))
12 fveq2 6646 . . . . . . . . . . . . . 14 (𝑝 = ⟨𝑎, 𝑏⟩ → (2nd𝑝) = (2nd ‘⟨𝑎, 𝑏⟩))
1312eqeq2d 2809 . . . . . . . . . . . . 13 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝑏 = (2nd𝑝) ↔ 𝑏 = (2nd ‘⟨𝑎, 𝑏⟩)))
1411, 13anbi12d 633 . . . . . . . . . . . 12 (𝑝 = ⟨𝑎, 𝑏⟩ → ((𝑎 = (1st𝑝) ∧ 𝑏 = (2nd𝑝)) ↔ (𝑎 = (1st ‘⟨𝑎, 𝑏⟩) ∧ 𝑏 = (2nd ‘⟨𝑎, 𝑏⟩))))
159, 14mpbiri 261 . . . . . . . . . . 11 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝑎 = (1st𝑝) ∧ 𝑏 = (2nd𝑝)))
16 opreuopreu.a . . . . . . . . . . 11 ((𝑎 = (1st𝑝) ∧ 𝑏 = (2nd𝑝)) → (𝜓𝜑))
1715, 16syl 17 . . . . . . . . . 10 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝜓𝜑))
1817biimprd 251 . . . . . . . . 9 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝜑𝜓))
1918adantr 484 . . . . . . . 8 ((𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵)) → (𝜑𝜓))
2019impcom 411 . . . . . . 7 ((𝜑 ∧ (𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵))) → 𝜓)
212, 20jca 515 . . . . . 6 ((𝜑 ∧ (𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵))) → (𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓))
2221ex 416 . . . . 5 (𝜑 → ((𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵)) → (𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓)))
23222eximdv 1920 . . . 4 (𝜑 → (∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝐴𝑏𝐵)) → ∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓)))
241, 23syl5com 31 . . 3 (𝑝 ∈ (𝐴 × 𝐵) → (𝜑 → ∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓)))
2517biimpa 480 . . . . 5 ((𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓) → 𝜑)
2625a1i 11 . . . 4 (𝑝 ∈ (𝐴 × 𝐵) → ((𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓) → 𝜑))
2726exlimdvv 1935 . . 3 (𝑝 ∈ (𝐴 × 𝐵) → (∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓) → 𝜑))
2824, 27impbid 215 . 2 (𝑝 ∈ (𝐴 × 𝐵) → (𝜑 ↔ ∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓)))
2928reubiia 3343 1 (∃!𝑝 ∈ (𝐴 × 𝐵)𝜑 ↔ ∃!𝑝 ∈ (𝐴 × 𝐵)∃𝑎𝑏(𝑝 = ⟨𝑎, 𝑏⟩ ∧ 𝜓))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 209   ∧ wa 399   = wceq 1538  ∃wex 1781   ∈ wcel 2111  ∃!wreu 3108  ⟨cop 4531   × cxp 5518  ‘cfv 6325  1st c1st 7672  2nd c2nd 7673 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5168  ax-nul 5175  ax-pow 5232  ax-pr 5296  ax-un 7444 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ral 3111  df-rex 3112  df-reu 3113  df-rab 3115  df-v 3443  df-sbc 3721  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4802  df-br 5032  df-opab 5094  df-mpt 5112  df-id 5426  df-xp 5526  df-rel 5527  df-cnv 5528  df-co 5529  df-dm 5530  df-rn 5531  df-iota 6284  df-fun 6327  df-fv 6333  df-1st 7674  df-2nd 7675 This theorem is referenced by:  2sqreuopb  26062
 Copyright terms: Public domain W3C validator