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

Theorem eupath2lem1 21700
Description: Lemma for eupath2 21703. (Contributed by Mario Carneiro, 8-Apr-2015.)
Assertion
Ref Expression
eupath2lem1  |-  ( U  e.  V  ->  ( U  e.  if ( A  =  B ,  (/)
,  { A ,  B } )  <->  ( A  =/=  B  /\  ( U  =  A  \/  U  =  B ) ) ) )

Proof of Theorem eupath2lem1
StepHypRef Expression
1 eleq2 2498 . . 3  |-  ( (/)  =  if ( A  =  B ,  (/) ,  { A ,  B }
)  ->  ( U  e.  (/)  <->  U  e.  if ( A  =  B ,  (/) ,  { A ,  B } ) ) )
21bibi1d 312 . 2  |-  ( (/)  =  if ( A  =  B ,  (/) ,  { A ,  B }
)  ->  ( ( U  e.  (/)  <->  ( A  =/=  B  /\  ( U  =  A  \/  U  =  B ) ) )  <-> 
( U  e.  if ( A  =  B ,  (/) ,  { A ,  B } )  <->  ( A  =/=  B  /\  ( U  =  A  \/  U  =  B ) ) ) ) )
3 eleq2 2498 . . 3  |-  ( { A ,  B }  =  if ( A  =  B ,  (/) ,  { A ,  B }
)  ->  ( U  e.  { A ,  B } 
<->  U  e.  if ( A  =  B ,  (/)
,  { A ,  B } ) ) )
43bibi1d 312 . 2  |-  ( { A ,  B }  =  if ( A  =  B ,  (/) ,  { A ,  B }
)  ->  ( ( U  e.  { A ,  B }  <->  ( A  =/=  B  /\  ( U  =  A  \/  U  =  B ) ) )  <-> 
( U  e.  if ( A  =  B ,  (/) ,  { A ,  B } )  <->  ( A  =/=  B  /\  ( U  =  A  \/  U  =  B ) ) ) ) )
5 noel 3633 . . . 4  |-  -.  U  e.  (/)
65a1i 11 . . 3  |-  ( ( U  e.  V  /\  A  =  B )  ->  -.  U  e.  (/) )
7 simpl 445 . . . . 5  |-  ( ( A  =/=  B  /\  ( U  =  A  \/  U  =  B
) )  ->  A  =/=  B )
87neneqd 2618 . . . 4  |-  ( ( A  =/=  B  /\  ( U  =  A  \/  U  =  B
) )  ->  -.  A  =  B )
9 simpr 449 . . . 4  |-  ( ( U  e.  V  /\  A  =  B )  ->  A  =  B )
108, 9nsyl3 114 . . 3  |-  ( ( U  e.  V  /\  A  =  B )  ->  -.  ( A  =/= 
B  /\  ( U  =  A  \/  U  =  B ) ) )
116, 102falsed 342 . 2  |-  ( ( U  e.  V  /\  A  =  B )  ->  ( U  e.  (/)  <->  ( A  =/=  B  /\  ( U  =  A  \/  U  =  B )
) ) )
12 elprg 3832 . . 3  |-  ( U  e.  V  ->  ( U  e.  { A ,  B }  <->  ( U  =  A  \/  U  =  B ) ) )
13 df-ne 2602 . . . 4  |-  ( A  =/=  B  <->  -.  A  =  B )
14 ibar 492 . . . 4  |-  ( A  =/=  B  ->  (
( U  =  A  \/  U  =  B )  <->  ( A  =/= 
B  /\  ( U  =  A  \/  U  =  B ) ) ) )
1513, 14sylbir 206 . . 3  |-  ( -.  A  =  B  -> 
( ( U  =  A  \/  U  =  B )  <->  ( A  =/=  B  /\  ( U  =  A  \/  U  =  B ) ) ) )
1612, 15sylan9bb 682 . 2  |-  ( ( U  e.  V  /\  -.  A  =  B
)  ->  ( U  e.  { A ,  B } 
<->  ( A  =/=  B  /\  ( U  =  A  \/  U  =  B ) ) ) )
172, 4, 11, 16ifbothda 3770 1  |-  ( U  e.  V  ->  ( U  e.  if ( A  =  B ,  (/)
,  { A ,  B } )  <->  ( A  =/=  B  /\  ( U  =  A  \/  U  =  B ) ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 178    \/ wo 359    /\ wa 360    = wceq 1653    e. wcel 1726    =/= wne 2600   (/)c0 3629   ifcif 3740   {cpr 3816
This theorem is referenced by:  eupath2lem2  21701  eupath2lem3  21702
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1667  ax-8 1688  ax-6 1745  ax-7 1750  ax-11 1762  ax-12 1951  ax-ext 2418
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-clab 2424  df-cleq 2430  df-clel 2433  df-nfc 2562  df-ne 2602  df-v 2959  df-dif 3324  df-un 3326  df-nul 3630  df-if 3741  df-sn 3821  df-pr 3822
  Copyright terms: Public domain W3C validator