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

Theorem xor 935
Description: Two ways to express "exclusive or." Theorem *5.22 of [WhiteheadRussell] p. 124. (Contributed by NM, 3-Jan-2005.) (Proof shortened by Wolf Lammen, 22-Jan-2013.)
Assertion
Ref Expression
xor  |-  ( -.  ( ph  <->  ps )  <->  ( ( ph  /\  -.  ps )  \/  ( ps  /\  -.  ph )
) )

Proof of Theorem xor
StepHypRef Expression
1 iman 440 . . . 4  |-  ( (
ph  ->  ps )  <->  -.  ( ph  /\  -.  ps )
)
2 iman 440 . . . 4  |-  ( ( ps  ->  ph )  <->  -.  ( ps  /\  -.  ph )
)
31, 2anbi12i 733 . . 3  |-  ( ( ( ph  ->  ps )  /\  ( ps  ->  ph ) )  <->  ( -.  ( ph  /\  -.  ps )  /\  -.  ( ps 
/\  -.  ph ) ) )
4 dfbi2 660 . . 3  |-  ( (
ph 
<->  ps )  <->  ( ( ph  ->  ps )  /\  ( ps  ->  ph )
) )
5 ioran 511 . . 3  |-  ( -.  ( ( ph  /\  -.  ps )  \/  ( ps  /\  -.  ph )
)  <->  ( -.  ( ph  /\  -.  ps )  /\  -.  ( ps  /\  -.  ph ) ) )
63, 4, 53bitr4ri 293 . 2  |-  ( -.  ( ( ph  /\  -.  ps )  \/  ( ps  /\  -.  ph )
)  <->  ( ph  <->  ps )
)
76con1bii 346 1  |-  ( -.  ( ph  <->  ps )  <->  ( ( ph  /\  -.  ps )  \/  ( ps  /\  -.  ph )
) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 196    \/ wo 383    /\ wa 384
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386
This theorem is referenced by:  dfbi3OLD  995  pm5.24  996  4exmidOLD  998  excxor  1469  elsymdif  3849  symdif2  3852  rpnnen2lem12  14954  ist0-3  21149  eliuniincex  39292  eliincex  39293  abnotataxb  41083  ldepslinc  42298
  Copyright terms: Public domain W3C validator