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

Theorem prneimg 4051
Description: Two pairs are not equal if at least one element of the first pair is not contained in the second pair. (Contributed by Alexander van der Vekens, 13-Aug-2017.)
Assertion
Ref Expression
prneimg  |-  ( ( ( A  e.  U  /\  B  e.  V
)  /\  ( C  e.  X  /\  D  e.  Y ) )  -> 
( ( ( A  =/=  C  /\  A  =/=  D )  \/  ( B  =/=  C  /\  B  =/=  D ) )  ->  { A ,  B }  =/=  { C ,  D } ) )

Proof of Theorem prneimg
StepHypRef Expression
1 preq12bg 4049 . . . . 5  |-  ( ( ( A  e.  U  /\  B  e.  V
)  /\  ( C  e.  X  /\  D  e.  Y ) )  -> 
( { A ,  B }  =  { C ,  D }  <->  ( ( A  =  C  /\  B  =  D )  \/  ( A  =  D  /\  B  =  C ) ) ) )
2 orddi 864 . . . . . 6  |-  ( ( ( A  =  C  /\  B  =  D )  \/  ( A  =  D  /\  B  =  C ) )  <->  ( (
( A  =  C  \/  A  =  D )  /\  ( A  =  C  \/  B  =  C ) )  /\  ( ( B  =  D  \/  A  =  D )  /\  ( B  =  D  \/  B  =  C )
) ) )
3 simpll 753 . . . . . . 7  |-  ( ( ( ( A  =  C  \/  A  =  D )  /\  ( A  =  C  \/  B  =  C )
)  /\  ( ( B  =  D  \/  A  =  D )  /\  ( B  =  D  \/  B  =  C ) ) )  -> 
( A  =  C  \/  A  =  D ) )
4 pm1.4 386 . . . . . . . 8  |-  ( ( B  =  D  \/  B  =  C )  ->  ( B  =  C  \/  B  =  D ) )
54ad2antll 728 . . . . . . 7  |-  ( ( ( ( A  =  C  \/  A  =  D )  /\  ( A  =  C  \/  B  =  C )
)  /\  ( ( B  =  D  \/  A  =  D )  /\  ( B  =  D  \/  B  =  C ) ) )  -> 
( B  =  C  \/  B  =  D ) )
63, 5jca 532 . . . . . 6  |-  ( ( ( ( A  =  C  \/  A  =  D )  /\  ( A  =  C  \/  B  =  C )
)  /\  ( ( B  =  D  \/  A  =  D )  /\  ( B  =  D  \/  B  =  C ) ) )  -> 
( ( A  =  C  \/  A  =  D )  /\  ( B  =  C  \/  B  =  D )
) )
72, 6sylbi 195 . . . . 5  |-  ( ( ( A  =  C  /\  B  =  D )  \/  ( A  =  D  /\  B  =  C ) )  -> 
( ( A  =  C  \/  A  =  D )  /\  ( B  =  C  \/  B  =  D )
) )
81, 7syl6bi 228 . . . 4  |-  ( ( ( A  e.  U  /\  B  e.  V
)  /\  ( C  e.  X  /\  D  e.  Y ) )  -> 
( { A ,  B }  =  { C ,  D }  ->  ( ( A  =  C  \/  A  =  D )  /\  ( B  =  C  \/  B  =  D )
) ) )
9 ianor 488 . . . . . 6  |-  ( -.  ( A  =/=  C  /\  A  =/=  D
)  <->  ( -.  A  =/=  C  \/  -.  A  =/=  D ) )
10 nne 2610 . . . . . . 7  |-  ( -.  A  =/=  C  <->  A  =  C )
11 nne 2610 . . . . . . 7  |-  ( -.  A  =/=  D  <->  A  =  D )
1210, 11orbi12i 521 . . . . . 6  |-  ( ( -.  A  =/=  C  \/  -.  A  =/=  D
)  <->  ( A  =  C  \/  A  =  D ) )
139, 12bitr2i 250 . . . . 5  |-  ( ( A  =  C  \/  A  =  D )  <->  -.  ( A  =/=  C  /\  A  =/=  D
) )
14 ianor 488 . . . . . 6  |-  ( -.  ( B  =/=  C  /\  B  =/=  D
)  <->  ( -.  B  =/=  C  \/  -.  B  =/=  D ) )
15 nne 2610 . . . . . . 7  |-  ( -.  B  =/=  C  <->  B  =  C )
16 nne 2610 . . . . . . 7  |-  ( -.  B  =/=  D  <->  B  =  D )
1715, 16orbi12i 521 . . . . . 6  |-  ( ( -.  B  =/=  C  \/  -.  B  =/=  D
)  <->  ( B  =  C  \/  B  =  D ) )
1814, 17bitr2i 250 . . . . 5  |-  ( ( B  =  C  \/  B  =  D )  <->  -.  ( B  =/=  C  /\  B  =/=  D
) )
1913, 18anbi12i 697 . . . 4  |-  ( ( ( A  =  C  \/  A  =  D )  /\  ( B  =  C  \/  B  =  D ) )  <->  ( -.  ( A  =/=  C  /\  A  =/=  D
)  /\  -.  ( B  =/=  C  /\  B  =/=  D ) ) )
208, 19syl6ib 226 . . 3  |-  ( ( ( A  e.  U  /\  B  e.  V
)  /\  ( C  e.  X  /\  D  e.  Y ) )  -> 
( { A ,  B }  =  { C ,  D }  ->  ( -.  ( A  =/=  C  /\  A  =/=  D )  /\  -.  ( B  =/=  C  /\  B  =/=  D
) ) ) )
21 pm4.56 495 . . 3  |-  ( ( -.  ( A  =/= 
C  /\  A  =/=  D )  /\  -.  ( B  =/=  C  /\  B  =/=  D ) )  <->  -.  (
( A  =/=  C  /\  A  =/=  D
)  \/  ( B  =/=  C  /\  B  =/=  D ) ) )
2220, 21syl6ib 226 . 2  |-  ( ( ( A  e.  U  /\  B  e.  V
)  /\  ( C  e.  X  /\  D  e.  Y ) )  -> 
( { A ,  B }  =  { C ,  D }  ->  -.  ( ( A  =/=  C  /\  A  =/=  D )  \/  ( B  =/=  C  /\  B  =/=  D ) ) ) )
2322necon2ad 2657 1  |-  ( ( ( A  e.  U  /\  B  e.  V
)  /\  ( C  e.  X  /\  D  e.  Y ) )  -> 
( ( ( A  =/=  C  /\  A  =/=  D )  \/  ( B  =/=  C  /\  B  =/=  D ) )  ->  { A ,  B }  =/=  { C ,  D } ) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    \/ wo 368    /\ wa 369    = wceq 1369    e. wcel 1756    =/= wne 2604   {cpr 3877
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2422
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-clab 2428  df-cleq 2434  df-clel 2437  df-nfc 2566  df-ne 2606  df-v 2972  df-un 3331  df-sn 3876  df-pr 3878
This theorem is referenced by:  prnebg  4052  symg2bas  15901  m2detleib  18435  usgraexmpldifpr  23316  zlmodzxzldeplem  31037
  Copyright terms: Public domain W3C validator