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

Theorem opthreg 9081
Description: Theorem for alternate representation of ordered pairs, requiring the Axiom of Regularity ax-reg 9056 (via the preleq 9079 step). See df-op 4574 for a description of other ordered pair representations. Exercise 34 of [Enderton] p. 207. (Contributed by NM, 16-Oct-1996.) (Proof shortened by AV, 15-Jun-2022.)
Hypotheses
Ref Expression
opthreg.1 𝐴 ∈ V
opthreg.2 𝐵 ∈ V
opthreg.3 𝐶 ∈ V
opthreg.4 𝐷 ∈ V
Assertion
Ref Expression
opthreg ({𝐴, {𝐴, 𝐵}} = {𝐶, {𝐶, 𝐷}} ↔ (𝐴 = 𝐶𝐵 = 𝐷))

Proof of Theorem opthreg
StepHypRef Expression
1 opthreg.1 . . . . 5 𝐴 ∈ V
21prid1 4698 . . . 4 𝐴 ∈ {𝐴, 𝐵}
3 opthreg.3 . . . . 5 𝐶 ∈ V
43prid1 4698 . . . 4 𝐶 ∈ {𝐶, 𝐷}
5 prex 5333 . . . . 5 {𝐴, 𝐵} ∈ V
65preleq 9079 . . . 4 (((𝐴 ∈ {𝐴, 𝐵} ∧ 𝐶 ∈ {𝐶, 𝐷}) ∧ {𝐴, {𝐴, 𝐵}} = {𝐶, {𝐶, 𝐷}}) → (𝐴 = 𝐶 ∧ {𝐴, 𝐵} = {𝐶, 𝐷}))
72, 4, 6mpanl12 700 . . 3 ({𝐴, {𝐴, 𝐵}} = {𝐶, {𝐶, 𝐷}} → (𝐴 = 𝐶 ∧ {𝐴, 𝐵} = {𝐶, 𝐷}))
8 preq1 4669 . . . . . 6 (𝐴 = 𝐶 → {𝐴, 𝐵} = {𝐶, 𝐵})
98eqeq1d 2823 . . . . 5 (𝐴 = 𝐶 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐶, 𝐵} = {𝐶, 𝐷}))
10 opthreg.2 . . . . . 6 𝐵 ∈ V
11 opthreg.4 . . . . . 6 𝐷 ∈ V
1210, 11preqr2 4780 . . . . 5 ({𝐶, 𝐵} = {𝐶, 𝐷} → 𝐵 = 𝐷)
139, 12syl6bi 255 . . . 4 (𝐴 = 𝐶 → ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐵 = 𝐷))
1413imdistani 571 . . 3 ((𝐴 = 𝐶 ∧ {𝐴, 𝐵} = {𝐶, 𝐷}) → (𝐴 = 𝐶𝐵 = 𝐷))
157, 14syl 17 . 2 ({𝐴, {𝐴, 𝐵}} = {𝐶, {𝐶, 𝐷}} → (𝐴 = 𝐶𝐵 = 𝐷))
16 preq1 4669 . . . 4 (𝐴 = 𝐶 → {𝐴, {𝐴, 𝐵}} = {𝐶, {𝐴, 𝐵}})
1716adantr 483 . . 3 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐴, {𝐴, 𝐵}} = {𝐶, {𝐴, 𝐵}})
18 preq12 4671 . . . 4 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷})
1918preq2d 4676 . . 3 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐶, {𝐴, 𝐵}} = {𝐶, {𝐶, 𝐷}})
2017, 19eqtrd 2856 . 2 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐴, {𝐴, 𝐵}} = {𝐶, {𝐶, 𝐷}})
2115, 20impbii 211 1 ({𝐴, {𝐴, 𝐵}} = {𝐶, {𝐶, 𝐷}} ↔ (𝐴 = 𝐶𝐵 = 𝐷))
Colors of variables: wff setvar class
Syntax hints:  wb 208  wa 398   = wceq 1537  wcel 2114  Vcvv 3494  {cpr 4569
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 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pr 5330  ax-reg 9056
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3773  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4568  df-pr 4570  df-op 4574  df-br 5067  df-opab 5129  df-eprel 5465  df-fr 5514
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator