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

Theorem had0 1455
Description: If the first parameter is false, the half adder is equivalent to the XOR of the other two inputs. (Contributed by Mario Carneiro, 4-Sep-2016.)
Assertion
Ref Expression
had0  |-  ( -. 
ph  ->  (hadd ( ph ,  ps ,  ch )  <->  ( ps  \/_  ch )
) )

Proof of Theorem had0
StepHypRef Expression
1 had1 1454 . . 3  |-  ( -. 
ph  ->  (hadd ( -. 
ph ,  -.  ps ,  -.  ch )  <->  ( -.  ps 
<->  -.  ch ) ) )
2 hadnot 1445 . . 3  |-  ( -. hadd
( ph ,  ps ,  ch )  <-> hadd ( -.  ph ,  -.  ps ,  -.  ch ) )
3 df-xor 1361 . . . . 5  |-  ( ( -.  ps  \/_  -.  ch )  <->  -.  ( -.  ps 
<->  -.  ch ) )
4 xorneg 1372 . . . . 5  |-  ( ( -.  ps  \/_  -.  ch )  <->  ( ps  \/_  ch ) )
53, 4bitr3i 251 . . . 4  |-  ( -.  ( -.  ps  <->  -.  ch )  <->  ( ps  \/_  ch )
)
65con1bii 331 . . 3  |-  ( -.  ( ps  \/_  ch ) 
<->  ( -.  ps  <->  -.  ch )
)
71, 2, 63bitr4g 288 . 2  |-  ( -. 
ph  ->  ( -. hadd ( ph ,  ps ,  ch ) 
<->  -.  ( ps  \/_  ch ) ) )
87con4bid 293 1  |-  ( -. 
ph  ->  (hadd ( ph ,  ps ,  ch )  <->  ( ps  \/_  ch )
) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 184    \/_ wxo 1360  haddwhad 1429
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 185  df-xor 1361  df-had 1431
This theorem is referenced by:  sadadd2lem2  13959  saddisjlem  13973
  Copyright terms: Public domain W3C validator