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

Theorem opiota 7872
Description: The property of a uniquely specified ordered pair. The proof uses properties of the description binder. (Contributed by Mario Carneiro, 21-May-2015.)
Hypotheses
Ref Expression
opiota.1 𝐼 = (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑))
opiota.2 𝑋 = (1st𝐼)
opiota.3 𝑌 = (2nd𝐼)
opiota.4 (𝑥 = 𝐶 → (𝜑𝜓))
opiota.5 (𝑦 = 𝐷 → (𝜓𝜒))
Assertion
Ref Expression
opiota (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → ((𝐶𝐴𝐷𝐵𝜒) ↔ (𝐶 = 𝑋𝐷 = 𝑌)))
Distinct variable groups:   𝑥,𝑦,𝑧,𝐴   𝑥,𝐵,𝑦,𝑧   𝑥,𝐶,𝑦,𝑧   𝜒,𝑦   𝜑,𝑧   𝑥,𝐷,𝑦,𝑧   𝜓,𝑥
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝜓(𝑦,𝑧)   𝜒(𝑥,𝑧)   𝐼(𝑥,𝑦,𝑧)   𝑋(𝑥,𝑦,𝑧)   𝑌(𝑥,𝑦,𝑧)

Proof of Theorem opiota
StepHypRef Expression
1 opiota.4 . . . . . . 7 (𝑥 = 𝐶 → (𝜑𝜓))
2 opiota.5 . . . . . . 7 (𝑦 = 𝐷 → (𝜓𝜒))
31, 2ceqsrex2v 3580 . . . . . 6 ((𝐶𝐴𝐷𝐵) → (∃𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑) ↔ 𝜒))
43bicomd 222 . . . . 5 ((𝐶𝐴𝐷𝐵) → (𝜒 ↔ ∃𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑)))
5 opex 5373 . . . . . . . 8 𝐶, 𝐷⟩ ∈ V
65a1i 11 . . . . . . 7 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → ⟨𝐶, 𝐷⟩ ∈ V)
7 id 22 . . . . . . 7 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → ∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑))
8 eqeq1 2742 . . . . . . . . . . 11 (𝑧 = ⟨𝐶, 𝐷⟩ → (𝑧 = ⟨𝑥, 𝑦⟩ ↔ ⟨𝐶, 𝐷⟩ = ⟨𝑥, 𝑦⟩))
9 eqcom 2745 . . . . . . . . . . . 12 (⟨𝐶, 𝐷⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑥, 𝑦⟩ = ⟨𝐶, 𝐷⟩)
10 vex 3426 . . . . . . . . . . . . 13 𝑥 ∈ V
11 vex 3426 . . . . . . . . . . . . 13 𝑦 ∈ V
1210, 11opth 5385 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ = ⟨𝐶, 𝐷⟩ ↔ (𝑥 = 𝐶𝑦 = 𝐷))
139, 12bitri 274 . . . . . . . . . . 11 (⟨𝐶, 𝐷⟩ = ⟨𝑥, 𝑦⟩ ↔ (𝑥 = 𝐶𝑦 = 𝐷))
148, 13bitrdi 286 . . . . . . . . . 10 (𝑧 = ⟨𝐶, 𝐷⟩ → (𝑧 = ⟨𝑥, 𝑦⟩ ↔ (𝑥 = 𝐶𝑦 = 𝐷)))
1514anbi1d 629 . . . . . . . . 9 (𝑧 = ⟨𝐶, 𝐷⟩ → ((𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑)))
16152rexbidv 3228 . . . . . . . 8 (𝑧 = ⟨𝐶, 𝐷⟩ → (∃𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ∃𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑)))
1716adantl 481 . . . . . . 7 ((∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ∧ 𝑧 = ⟨𝐶, 𝐷⟩) → (∃𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ∃𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑)))
18 nfeu1 2588 . . . . . . 7 𝑧∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)
19 nfvd 1919 . . . . . . 7 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → Ⅎ𝑧𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑))
20 nfcvd 2907 . . . . . . 7 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → 𝑧𝐶, 𝐷⟩)
216, 7, 17, 18, 19, 20iota2df 6405 . . . . . 6 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (∃𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑) ↔ (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)) = ⟨𝐶, 𝐷⟩))
22 eqcom 2745 . . . . . . 7 (⟨𝐶, 𝐷⟩ = 𝐼𝐼 = ⟨𝐶, 𝐷⟩)
23 opiota.1 . . . . . . . 8 𝐼 = (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑))
2423eqeq1i 2743 . . . . . . 7 (𝐼 = ⟨𝐶, 𝐷⟩ ↔ (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)) = ⟨𝐶, 𝐷⟩)
2522, 24bitri 274 . . . . . 6 (⟨𝐶, 𝐷⟩ = 𝐼 ↔ (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)) = ⟨𝐶, 𝐷⟩)
2621, 25bitr4di 288 . . . . 5 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (∃𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑) ↔ ⟨𝐶, 𝐷⟩ = 𝐼))
274, 26sylan9bbr 510 . . . 4 ((∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ∧ (𝐶𝐴𝐷𝐵)) → (𝜒 ↔ ⟨𝐶, 𝐷⟩ = 𝐼))
2827pm5.32da 578 . . 3 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (((𝐶𝐴𝐷𝐵) ∧ 𝜒) ↔ ((𝐶𝐴𝐷𝐵) ∧ ⟨𝐶, 𝐷⟩ = 𝐼)))
29 opelxpi 5617 . . . . . . . . . 10 ((𝑥𝐴𝑦𝐵) → ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵))
30 simpl 482 . . . . . . . . . . 11 ((𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → 𝑧 = ⟨𝑥, 𝑦⟩)
3130eleq1d 2823 . . . . . . . . . 10 ((𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (𝑧 ∈ (𝐴 × 𝐵) ↔ ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵)))
3229, 31syl5ibrcom 246 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → ((𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → 𝑧 ∈ (𝐴 × 𝐵)))
3332rexlimivv 3220 . . . . . . . 8 (∃𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → 𝑧 ∈ (𝐴 × 𝐵))
3433abssi 3999 . . . . . . 7 {𝑧 ∣ ∃𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)} ⊆ (𝐴 × 𝐵)
35 iotacl 6404 . . . . . . 7 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)) ∈ {𝑧 ∣ ∃𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)})
3634, 35sselid 3915 . . . . . 6 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)) ∈ (𝐴 × 𝐵))
3723, 36eqeltrid 2843 . . . . 5 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → 𝐼 ∈ (𝐴 × 𝐵))
38 opelxp 5616 . . . . . 6 (⟨𝐶, 𝐷⟩ ∈ (𝐴 × 𝐵) ↔ (𝐶𝐴𝐷𝐵))
39 eleq1 2826 . . . . . 6 (⟨𝐶, 𝐷⟩ = 𝐼 → (⟨𝐶, 𝐷⟩ ∈ (𝐴 × 𝐵) ↔ 𝐼 ∈ (𝐴 × 𝐵)))
4038, 39bitr3id 284 . . . . 5 (⟨𝐶, 𝐷⟩ = 𝐼 → ((𝐶𝐴𝐷𝐵) ↔ 𝐼 ∈ (𝐴 × 𝐵)))
4137, 40syl5ibrcom 246 . . . 4 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (⟨𝐶, 𝐷⟩ = 𝐼 → (𝐶𝐴𝐷𝐵)))
4241pm4.71rd 562 . . 3 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (⟨𝐶, 𝐷⟩ = 𝐼 ↔ ((𝐶𝐴𝐷𝐵) ∧ ⟨𝐶, 𝐷⟩ = 𝐼)))
43 1st2nd2 7843 . . . . 5 (𝐼 ∈ (𝐴 × 𝐵) → 𝐼 = ⟨(1st𝐼), (2nd𝐼)⟩)
4437, 43syl 17 . . . 4 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → 𝐼 = ⟨(1st𝐼), (2nd𝐼)⟩)
4544eqeq2d 2749 . . 3 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (⟨𝐶, 𝐷⟩ = 𝐼 ↔ ⟨𝐶, 𝐷⟩ = ⟨(1st𝐼), (2nd𝐼)⟩))
4628, 42, 453bitr2d 306 . 2 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (((𝐶𝐴𝐷𝐵) ∧ 𝜒) ↔ ⟨𝐶, 𝐷⟩ = ⟨(1st𝐼), (2nd𝐼)⟩))
47 df-3an 1087 . 2 ((𝐶𝐴𝐷𝐵𝜒) ↔ ((𝐶𝐴𝐷𝐵) ∧ 𝜒))
48 opiota.2 . . . . 5 𝑋 = (1st𝐼)
4948eqeq2i 2751 . . . 4 (𝐶 = 𝑋𝐶 = (1st𝐼))
50 opiota.3 . . . . 5 𝑌 = (2nd𝐼)
5150eqeq2i 2751 . . . 4 (𝐷 = 𝑌𝐷 = (2nd𝐼))
5249, 51anbi12i 626 . . 3 ((𝐶 = 𝑋𝐷 = 𝑌) ↔ (𝐶 = (1st𝐼) ∧ 𝐷 = (2nd𝐼)))
53 fvex 6769 . . . 4 (1st𝐼) ∈ V
54 fvex 6769 . . . 4 (2nd𝐼) ∈ V
5553, 54opth2 5389 . . 3 (⟨𝐶, 𝐷⟩ = ⟨(1st𝐼), (2nd𝐼)⟩ ↔ (𝐶 = (1st𝐼) ∧ 𝐷 = (2nd𝐼)))
5652, 55bitr4i 277 . 2 ((𝐶 = 𝑋𝐷 = 𝑌) ↔ ⟨𝐶, 𝐷⟩ = ⟨(1st𝐼), (2nd𝐼)⟩)
5746, 47, 563bitr4g 313 1 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → ((𝐶𝐴𝐷𝐵𝜒) ↔ (𝐶 = 𝑋𝐷 = 𝑌)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  ∃!weu 2568  {cab 2715  wrex 3064  Vcvv 3422  cop 4564   × cxp 5578  cio 6374  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-rab 3072  df-v 3424  df-sbc 3712  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:  oeeui  8395
  Copyright terms: Public domain W3C validator