MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  prel12 Structured version   Unicode version

Theorem prel12 3967
Description: Equality of two unordered pairs. (Contributed by NM, 17-Oct-1996.)
Hypotheses
Ref Expression
preq12b.1  |-  A  e. 
_V
preq12b.2  |-  B  e. 
_V
preq12b.3  |-  C  e. 
_V
preq12b.4  |-  D  e. 
_V
Assertion
Ref Expression
prel12  |-  ( -.  A  =  B  -> 
( { A ,  B }  =  { C ,  D }  <->  ( A  e.  { C ,  D }  /\  B  e.  { C ,  D } ) ) )

Proof of Theorem prel12
StepHypRef Expression
1 preq12b.1 . . . . 5  |-  A  e. 
_V
21prid1 3904 . . . 4  |-  A  e. 
{ A ,  B }
3 eleq2 2496 . . . 4  |-  ( { A ,  B }  =  { C ,  D }  ->  ( A  e. 
{ A ,  B } 
<->  A  e.  { C ,  D } ) )
42, 3mpbii 203 . . 3  |-  ( { A ,  B }  =  { C ,  D }  ->  A  e.  { C ,  D }
)
5 preq12b.2 . . . . 5  |-  B  e. 
_V
65prid2 3905 . . . 4  |-  B  e. 
{ A ,  B }
7 eleq2 2496 . . . 4  |-  ( { A ,  B }  =  { C ,  D }  ->  ( B  e. 
{ A ,  B } 
<->  B  e.  { C ,  D } ) )
86, 7mpbii 203 . . 3  |-  ( { A ,  B }  =  { C ,  D }  ->  B  e.  { C ,  D }
)
94, 8jca 519 . 2  |-  ( { A ,  B }  =  { C ,  D }  ->  ( A  e. 
{ C ,  D }  /\  B  e.  { C ,  D }
) )
101elpr 3824 . . . 4  |-  ( A  e.  { C ,  D }  <->  ( A  =  C  \/  A  =  D ) )
11 eqeq2 2444 . . . . . . . . . . . 12  |-  ( B  =  D  ->  ( A  =  B  <->  A  =  D ) )
1211notbid 286 . . . . . . . . . . 11  |-  ( B  =  D  ->  ( -.  A  =  B  <->  -.  A  =  D ) )
13 orel2 373 . . . . . . . . . . 11  |-  ( -.  A  =  D  -> 
( ( A  =  C  \/  A  =  D )  ->  A  =  C ) )
1412, 13syl6bi 220 . . . . . . . . . 10  |-  ( B  =  D  ->  ( -.  A  =  B  ->  ( ( A  =  C  \/  A  =  D )  ->  A  =  C ) ) )
1514com3l 77 . . . . . . . . 9  |-  ( -.  A  =  B  -> 
( ( A  =  C  \/  A  =  D )  ->  ( B  =  D  ->  A  =  C ) ) )
1615imp 419 . . . . . . . 8  |-  ( ( -.  A  =  B  /\  ( A  =  C  \/  A  =  D ) )  -> 
( B  =  D  ->  A  =  C ) )
1716ancrd 538 . . . . . . 7  |-  ( ( -.  A  =  B  /\  ( A  =  C  \/  A  =  D ) )  -> 
( B  =  D  ->  ( A  =  C  /\  B  =  D ) ) )
18 eqeq2 2444 . . . . . . . . . . . 12  |-  ( B  =  C  ->  ( A  =  B  <->  A  =  C ) )
1918notbid 286 . . . . . . . . . . 11  |-  ( B  =  C  ->  ( -.  A  =  B  <->  -.  A  =  C ) )
20 orel1 372 . . . . . . . . . . 11  |-  ( -.  A  =  C  -> 
( ( A  =  C  \/  A  =  D )  ->  A  =  D ) )
2119, 20syl6bi 220 . . . . . . . . . 10  |-  ( B  =  C  ->  ( -.  A  =  B  ->  ( ( A  =  C  \/  A  =  D )  ->  A  =  D ) ) )
2221com3l 77 . . . . . . . . 9  |-  ( -.  A  =  B  -> 
( ( A  =  C  \/  A  =  D )  ->  ( B  =  C  ->  A  =  D ) ) )
2322imp 419 . . . . . . . 8  |-  ( ( -.  A  =  B  /\  ( A  =  C  \/  A  =  D ) )  -> 
( B  =  C  ->  A  =  D ) )
2423ancrd 538 . . . . . . 7  |-  ( ( -.  A  =  B  /\  ( A  =  C  \/  A  =  D ) )  -> 
( B  =  C  ->  ( A  =  D  /\  B  =  C ) ) )
2517, 24orim12d 812 . . . . . 6  |-  ( ( -.  A  =  B  /\  ( A  =  C  \/  A  =  D ) )  -> 
( ( B  =  D  \/  B  =  C )  ->  (
( A  =  C  /\  B  =  D )  \/  ( A  =  D  /\  B  =  C ) ) ) )
265elpr 3824 . . . . . . 7  |-  ( B  e.  { C ,  D }  <->  ( B  =  C  \/  B  =  D ) )
27 orcom 377 . . . . . . 7  |-  ( ( B  =  C  \/  B  =  D )  <->  ( B  =  D  \/  B  =  C )
)
2826, 27bitri 241 . . . . . 6  |-  ( B  e.  { C ,  D }  <->  ( B  =  D  \/  B  =  C ) )
29 preq12b.3 . . . . . . 7  |-  C  e. 
_V
30 preq12b.4 . . . . . . 7  |-  D  e. 
_V
311, 5, 29, 30preq12b 3966 . . . . . 6  |-  ( { A ,  B }  =  { C ,  D } 
<->  ( ( A  =  C  /\  B  =  D )  \/  ( A  =  D  /\  B  =  C )
) )
3225, 28, 313imtr4g 262 . . . . 5  |-  ( ( -.  A  =  B  /\  ( A  =  C  \/  A  =  D ) )  -> 
( B  e.  { C ,  D }  ->  { A ,  B }  =  { C ,  D } ) )
3332ex 424 . . . 4  |-  ( -.  A  =  B  -> 
( ( A  =  C  \/  A  =  D )  ->  ( B  e.  { C ,  D }  ->  { A ,  B }  =  { C ,  D }
) ) )
3410, 33syl5bi 209 . . 3  |-  ( -.  A  =  B  -> 
( A  e.  { C ,  D }  ->  ( B  e.  { C ,  D }  ->  { A ,  B }  =  { C ,  D } ) ) )
3534imp3a 421 . 2  |-  ( -.  A  =  B  -> 
( ( A  e. 
{ C ,  D }  /\  B  e.  { C ,  D }
)  ->  { A ,  B }  =  { C ,  D }
) )
369, 35impbid2 196 1  |-  ( -.  A  =  B  -> 
( { A ,  B }  =  { C ,  D }  <->  ( A  e.  { C ,  D }  /\  B  e.  { C ,  D } ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 177    \/ wo 358    /\ wa 359    = wceq 1652    e. wcel 1725   _Vcvv 2948   {cpr 3807
This theorem is referenced by:  dfac2  8003
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2416
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-v 2950  df-un 3317  df-sn 3812  df-pr 3813
  Copyright terms: Public domain W3C validator