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

Theorem dfid2 5511
Description: Alternate definition of the identity relation. Instance of dfid3 5512 not requiring auxiliary axioms. (Contributed by NM, 15-Mar-2007.) Reduce axiom usage. (Revised by GG, 4-Nov-2024.) (Proof shortened by BJ, 5-Nov-2024.)

Use df-id 5509 instead to make the semantics of the constructor df-opab 5152 clearer. (New usage is discouraged.)

Assertion
Ref Expression
dfid2 I = {⟨𝑥, 𝑥⟩ ∣ 𝑥 = 𝑥}

Proof of Theorem dfid2
Dummy variables 𝑦 𝑧 𝑢 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-id 5509 . 2 I = {⟨𝑥, 𝑦⟩ ∣ 𝑥 = 𝑦}
2 equcomi 2018 . . . . . . . . . . . 12 (𝑥 = 𝑦𝑦 = 𝑥)
32opeq2d 4829 . . . . . . . . . . 11 (𝑥 = 𝑦 → ⟨𝑥, 𝑦⟩ = ⟨𝑥, 𝑥⟩)
43eqeq2d 2742 . . . . . . . . . 10 (𝑥 = 𝑦 → (𝑧 = ⟨𝑥, 𝑦⟩ ↔ 𝑧 = ⟨𝑥, 𝑥⟩))
54pm5.32ri 575 . . . . . . . . 9 ((𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝑥 = 𝑦) ↔ (𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑦))
65exbii 1849 . . . . . . . 8 (∃𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝑥 = 𝑦) ↔ ∃𝑦(𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑦))
7 ax6evr 2016 . . . . . . . . 9 𝑦 𝑥 = 𝑦
8 19.42v 1954 . . . . . . . . 9 (∃𝑦(𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑦) ↔ (𝑧 = ⟨𝑥, 𝑥⟩ ∧ ∃𝑦 𝑥 = 𝑦))
97, 8mpbiran2 710 . . . . . . . 8 (∃𝑦(𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑦) ↔ 𝑧 = ⟨𝑥, 𝑥⟩)
106, 9bitri 275 . . . . . . 7 (∃𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝑥 = 𝑦) ↔ 𝑧 = ⟨𝑥, 𝑥⟩)
11 eqidd 2732 . . . . . . . 8 (𝑧 = ⟨𝑥, 𝑥⟩ → 𝑥 = 𝑥)
1211pm4.71i 559 . . . . . . 7 (𝑧 = ⟨𝑥, 𝑥⟩ ↔ (𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑥))
1310, 12bitri 275 . . . . . 6 (∃𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝑥 = 𝑦) ↔ (𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑥))
1413exbii 1849 . . . . 5 (∃𝑥𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝑥 = 𝑦) ↔ ∃𝑥(𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑥))
15 id 22 . . . . . . . . 9 (𝑥 = 𝑢𝑥 = 𝑢)
1615, 15opeq12d 4830 . . . . . . . 8 (𝑥 = 𝑢 → ⟨𝑥, 𝑥⟩ = ⟨𝑢, 𝑢⟩)
1716eqeq2d 2742 . . . . . . 7 (𝑥 = 𝑢 → (𝑧 = ⟨𝑥, 𝑥⟩ ↔ 𝑧 = ⟨𝑢, 𝑢⟩))
1815, 15eqeq12d 2747 . . . . . . 7 (𝑥 = 𝑢 → (𝑥 = 𝑥𝑢 = 𝑢))
1917, 18anbi12d 632 . . . . . 6 (𝑥 = 𝑢 → ((𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑥) ↔ (𝑧 = ⟨𝑢, 𝑢⟩ ∧ 𝑢 = 𝑢)))
2019exexw 2054 . . . . 5 (∃𝑥(𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑥) ↔ ∃𝑥𝑥(𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑥))
2114, 20bitri 275 . . . 4 (∃𝑥𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝑥 = 𝑦) ↔ ∃𝑥𝑥(𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑥))
2221abbii 2798 . . 3 {𝑧 ∣ ∃𝑥𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝑥 = 𝑦)} = {𝑧 ∣ ∃𝑥𝑥(𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑥)}
23 df-opab 5152 . . 3 {⟨𝑥, 𝑦⟩ ∣ 𝑥 = 𝑦} = {𝑧 ∣ ∃𝑥𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝑥 = 𝑦)}
24 df-opab 5152 . . 3 {⟨𝑥, 𝑥⟩ ∣ 𝑥 = 𝑥} = {𝑧 ∣ ∃𝑥𝑥(𝑧 = ⟨𝑥, 𝑥⟩ ∧ 𝑥 = 𝑥)}
2522, 23, 243eqtr4i 2764 . 2 {⟨𝑥, 𝑦⟩ ∣ 𝑥 = 𝑦} = {⟨𝑥, 𝑥⟩ ∣ 𝑥 = 𝑥}
261, 25eqtri 2754 1 I = {⟨𝑥, 𝑥⟩ ∣ 𝑥 = 𝑥}
Colors of variables: wff setvar class
Syntax hints:  wa 395   = wceq 1541  wex 1780  {cab 2709  cop 4579  {copab 5151   I cid 5508
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1968  ax-7 2009  ax-8 2113  ax-9 2121  ax-ext 2703
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3an 1088  df-tru 1544  df-fal 1554  df-ex 1781  df-sb 2068  df-clab 2710  df-cleq 2723  df-clel 2806  df-rab 3396  df-v 3438  df-dif 3900  df-un 3902  df-ss 3914  df-nul 4281  df-if 4473  df-sn 4574  df-pr 4576  df-op 4580  df-opab 5152  df-id 5509
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator