HomeHome Metamath Proof Explorer < Previous   Next >
Related theorems
Unicode version

Theorem opthreg 6802
Description: Theorem for alternate representation of ordered pairs, requiring the Axiom of Regularity ax-reg 6789 (via the preleq 6801 step). See df-op 3264 for a description of other ordered pair representations. Exercise 34 of [Enderton] p. 207. (Contributed by NM, 16-Oct-1996.)
Hypotheses
Ref Expression
preleq.1  |-  A  e. 
_V
preleq.2  |-  B  e. 
_V
preleq.3  |-  C  e. 
_V
preleq.4  |-  D  e. 
_V
Assertion
Ref Expression
opthreg  |-  ( { A ,  { A ,  B } }  =  { C ,  { C ,  D } }  <->  ( A  =  C  /\  B  =  D ) )

Proof of Theorem opthreg
StepHypRef Expression
1 preleq.1 . . . . 5  |-  A  e. 
_V
21prid1 3344 . . . 4  |-  A  e. 
{ A ,  B }
3 preleq.3 . . . . 5  |-  C  e. 
_V
43prid1 3344 . . . 4  |-  C  e. 
{ C ,  D }
5 prex 3772 . . . . 5  |-  { A ,  B }  e.  _V
6 prex 3772 . . . . 5  |-  { C ,  D }  e.  _V
71, 5, 3, 6preleq 6801 . . . 4  |-  ( ( ( A  e.  { A ,  B }  /\  C  e.  { C ,  D } )  /\  { A ,  { A ,  B } }  =  { C ,  { C ,  D } } )  ->  ( A  =  C  /\  { A ,  B }  =  { C ,  D }
) )
82, 4, 7mpanl12 656 . . 3  |-  ( { A ,  { A ,  B } }  =  { C ,  { C ,  D } }  ->  ( A  =  C  /\  { A ,  B }  =  { C ,  D } ) )
9 preq1 3316 . . . . . 6  |-  ( A  =  C  ->  { A ,  B }  =  { C ,  B }
)
109eqeq1d 2072 . . . . 5  |-  ( A  =  C  ->  ( { A ,  B }  =  { C ,  D } 
<->  { C ,  B }  =  { C ,  D } ) )
11 preleq.2 . . . . . 6  |-  B  e. 
_V
12 preleq.4 . . . . . 6  |-  D  e. 
_V
1311, 12preqr2 3389 . . . . 5  |-  ( { C ,  B }  =  { C ,  D }  ->  B  =  D )
1410, 13syl6bi 217 . . . 4  |-  ( A  =  C  ->  ( { A ,  B }  =  { C ,  D }  ->  B  =  D ) )
1514imdistani 664 . . 3  |-  ( ( A  =  C  /\  { A ,  B }  =  { C ,  D } )  ->  ( A  =  C  /\  B  =  D )
)
168, 15syl 15 . 2  |-  ( { A ,  { A ,  B } }  =  { C ,  { C ,  D } }  ->  ( A  =  C  /\  B  =  D )
)
17 preq1 3316 . . . 4  |-  ( A  =  C  ->  { A ,  { A ,  B } }  =  { C ,  { A ,  B } } )
1817adantr 445 . . 3  |-  ( ( A  =  C  /\  B  =  D )  ->  { A ,  { A ,  B } }  =  { C ,  { A ,  B } } )
19 preq12 3318 . . . 4  |-  ( ( A  =  C  /\  B  =  D )  ->  { A ,  B }  =  { C ,  D } )
2019preq2d 3323 . . 3  |-  ( ( A  =  C  /\  B  =  D )  ->  { C ,  { A ,  B } }  =  { C ,  { C ,  D } } )
2118, 20eqtrd 2096 . 2  |-  ( ( A  =  C  /\  B  =  D )  ->  { A ,  { A ,  B } }  =  { C ,  { C ,  D } } )
2216, 21impbii 178 1  |-  ( { A ,  { A ,  B } }  =  { C ,  { C ,  D } }  <->  ( A  =  C  /\  B  =  D ) )
Colors of variables: wff set class
Syntax hints:    <-> wb 174    /\ wa 356    = wceq 1520    e. wcel 1522   _Vcvv 2475   {cpr 3256
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-5 1442  ax-6 1443  ax-7 1444  ax-gen 1445  ax-8 1524  ax-11 1525  ax-14 1527  ax-17 1529  ax-12o 1562  ax-10 1576  ax-9 1582  ax-4 1589  ax-16 1775  ax-ext 2046  ax-sep 3701  ax-nul 3709  ax-pr 3769  ax-reg 6789
This theorem depends on definitions:  df-bi 175  df-or 357  df-an 358  df-3an 898  df-ex 1447  df-sb 1736  df-eu 1958  df-mo 1959  df-clab 2052  df-cleq 2057  df-clel 2060  df-ne 2184  df-ral 2278  df-rex 2279  df-rab 2281  df-v 2477  df-sbc 2651  df-dif 2796  df-un 2798  df-in 2800  df-ss 2804  df-nul 3073  df-if 3182  df-sn 3261  df-pr 3262  df-op 3264  df-br 3587  df-opab 3641  df-eprel 3856  df-fr 3903
Copyright terms: Public domain