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

Theorem opiota 7899
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 3587 . . . . . 6 ((𝐶𝐴𝐷𝐵) → (∃𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑) ↔ 𝜒))
43bicomd 222 . . . . 5 ((𝐶𝐴𝐷𝐵) → (𝜒 ↔ ∃𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑)))
5 opex 5379 . . . . . . . 8 𝐶, 𝐷⟩ ∈ V
65a1i 11 . . . . . . 7 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → ⟨𝐶, 𝐷⟩ ∈ V)
7 id 22 . . . . . . 7 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → ∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑))
8 eqeq1 2742 . . . . . . . . . . 11 (𝑧 = ⟨𝐶, 𝐷⟩ → (𝑧 = ⟨𝑥, 𝑦⟩ ↔ ⟨𝐶, 𝐷⟩ = ⟨𝑥, 𝑦⟩))
9 eqcom 2745 . . . . . . . . . . . 12 (⟨𝐶, 𝐷⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑥, 𝑦⟩ = ⟨𝐶, 𝐷⟩)
10 vex 3436 . . . . . . . . . . . . 13 𝑥 ∈ V
11 vex 3436 . . . . . . . . . . . . 13 𝑦 ∈ V
1210, 11opth 5391 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ = ⟨𝐶, 𝐷⟩ ↔ (𝑥 = 𝐶𝑦 = 𝐷))
139, 12bitri 274 . . . . . . . . . . 11 (⟨𝐶, 𝐷⟩ = ⟨𝑥, 𝑦⟩ ↔ (𝑥 = 𝐶𝑦 = 𝐷))
148, 13bitrdi 287 . . . . . . . . . 10 (𝑧 = ⟨𝐶, 𝐷⟩ → (𝑧 = ⟨𝑥, 𝑦⟩ ↔ (𝑥 = 𝐶𝑦 = 𝐷)))
1514anbi1d 630 . . . . . . . . 9 (𝑧 = ⟨𝐶, 𝐷⟩ → ((𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑)))
16152rexbidv 3229 . . . . . . . 8 (𝑧 = ⟨𝐶, 𝐷⟩ → (∃𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ∃𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑)))
1716adantl 482 . . . . . . 7 ((∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ∧ 𝑧 = ⟨𝐶, 𝐷⟩) → (∃𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ∃𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑)))
18 nfeu1 2588 . . . . . . 7 𝑧∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)
19 nfvd 1918 . . . . . . 7 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → Ⅎ𝑧𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑))
20 nfcvd 2908 . . . . . . 7 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → 𝑧𝐶, 𝐷⟩)
216, 7, 17, 18, 19, 20iota2df 6420 . . . . . 6 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (∃𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑) ↔ (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)) = ⟨𝐶, 𝐷⟩))
22 eqcom 2745 . . . . . . 7 (⟨𝐶, 𝐷⟩ = 𝐼𝐼 = ⟨𝐶, 𝐷⟩)
23 opiota.1 . . . . . . . 8 𝐼 = (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑))
2423eqeq1i 2743 . . . . . . 7 (𝐼 = ⟨𝐶, 𝐷⟩ ↔ (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)) = ⟨𝐶, 𝐷⟩)
2522, 24bitri 274 . . . . . 6 (⟨𝐶, 𝐷⟩ = 𝐼 ↔ (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)) = ⟨𝐶, 𝐷⟩)
2621, 25bitr4di 289 . . . . 5 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (∃𝑥𝐴𝑦𝐵 ((𝑥 = 𝐶𝑦 = 𝐷) ∧ 𝜑) ↔ ⟨𝐶, 𝐷⟩ = 𝐼))
274, 26sylan9bbr 511 . . . 4 ((∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ∧ (𝐶𝐴𝐷𝐵)) → (𝜒 ↔ ⟨𝐶, 𝐷⟩ = 𝐼))
2827pm5.32da 579 . . 3 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (((𝐶𝐴𝐷𝐵) ∧ 𝜒) ↔ ((𝐶𝐴𝐷𝐵) ∧ ⟨𝐶, 𝐷⟩ = 𝐼)))
29 opelxpi 5626 . . . . . . . . . 10 ((𝑥𝐴𝑦𝐵) → ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵))
30 simpl 483 . . . . . . . . . . 11 ((𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → 𝑧 = ⟨𝑥, 𝑦⟩)
3130eleq1d 2823 . . . . . . . . . 10 ((𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (𝑧 ∈ (𝐴 × 𝐵) ↔ ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵)))
3229, 31syl5ibrcom 246 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → ((𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → 𝑧 ∈ (𝐴 × 𝐵)))
3332rexlimivv 3221 . . . . . . . 8 (∃𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → 𝑧 ∈ (𝐴 × 𝐵))
3433abssi 4003 . . . . . . 7 {𝑧 ∣ ∃𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)} ⊆ (𝐴 × 𝐵)
35 iotacl 6419 . . . . . . 7 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)) ∈ {𝑧 ∣ ∃𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)})
3634, 35sselid 3919 . . . . . 6 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (℩𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)) ∈ (𝐴 × 𝐵))
3723, 36eqeltrid 2843 . . . . 5 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → 𝐼 ∈ (𝐴 × 𝐵))
38 opelxp 5625 . . . . . 6 (⟨𝐶, 𝐷⟩ ∈ (𝐴 × 𝐵) ↔ (𝐶𝐴𝐷𝐵))
39 eleq1 2826 . . . . . 6 (⟨𝐶, 𝐷⟩ = 𝐼 → (⟨𝐶, 𝐷⟩ ∈ (𝐴 × 𝐵) ↔ 𝐼 ∈ (𝐴 × 𝐵)))
4038, 39bitr3id 285 . . . . 5 (⟨𝐶, 𝐷⟩ = 𝐼 → ((𝐶𝐴𝐷𝐵) ↔ 𝐼 ∈ (𝐴 × 𝐵)))
4137, 40syl5ibrcom 246 . . . 4 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (⟨𝐶, 𝐷⟩ = 𝐼 → (𝐶𝐴𝐷𝐵)))
4241pm4.71rd 563 . . 3 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (⟨𝐶, 𝐷⟩ = 𝐼 ↔ ((𝐶𝐴𝐷𝐵) ∧ ⟨𝐶, 𝐷⟩ = 𝐼)))
43 1st2nd2 7870 . . . . 5 (𝐼 ∈ (𝐴 × 𝐵) → 𝐼 = ⟨(1st𝐼), (2nd𝐼)⟩)
4437, 43syl 17 . . . 4 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → 𝐼 = ⟨(1st𝐼), (2nd𝐼)⟩)
4544eqeq2d 2749 . . 3 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (⟨𝐶, 𝐷⟩ = 𝐼 ↔ ⟨𝐶, 𝐷⟩ = ⟨(1st𝐼), (2nd𝐼)⟩))
4628, 42, 453bitr2d 307 . 2 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → (((𝐶𝐴𝐷𝐵) ∧ 𝜒) ↔ ⟨𝐶, 𝐷⟩ = ⟨(1st𝐼), (2nd𝐼)⟩))
47 df-3an 1088 . 2 ((𝐶𝐴𝐷𝐵𝜒) ↔ ((𝐶𝐴𝐷𝐵) ∧ 𝜒))
48 opiota.2 . . . . 5 𝑋 = (1st𝐼)
4948eqeq2i 2751 . . . 4 (𝐶 = 𝑋𝐶 = (1st𝐼))
50 opiota.3 . . . . 5 𝑌 = (2nd𝐼)
5150eqeq2i 2751 . . . 4 (𝐷 = 𝑌𝐷 = (2nd𝐼))
5249, 51anbi12i 627 . . 3 ((𝐶 = 𝑋𝐷 = 𝑌) ↔ (𝐶 = (1st𝐼) ∧ 𝐷 = (2nd𝐼)))
53 fvex 6787 . . . 4 (1st𝐼) ∈ V
54 fvex 6787 . . . 4 (2nd𝐼) ∈ V
5553, 54opth2 5395 . . 3 (⟨𝐶, 𝐷⟩ = ⟨(1st𝐼), (2nd𝐼)⟩ ↔ (𝐶 = (1st𝐼) ∧ 𝐷 = (2nd𝐼)))
5652, 55bitr4i 277 . 2 ((𝐶 = 𝑋𝐷 = 𝑌) ↔ ⟨𝐶, 𝐷⟩ = ⟨(1st𝐼), (2nd𝐼)⟩)
5746, 47, 563bitr4g 314 1 (∃!𝑧𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) → ((𝐶𝐴𝐷𝐵𝜒) ↔ (𝐶 = 𝑋𝐷 = 𝑌)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wcel 2106  ∃!weu 2568  {cab 2715  wrex 3065  Vcvv 3432  cop 4567   × cxp 5587  cio 6389  cfv 6433  1st c1st 7829  2nd c2nd 7830
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-iota 6391  df-fun 6435  df-fv 6441  df-1st 7831  df-2nd 7832
This theorem is referenced by:  oeeui  8433
  Copyright terms: Public domain W3C validator