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

Theorem hadnot 1383
Description: The half adder distributes over negation. (Contributed by Mario Carneiro, 4-Sep-2016.)
Assertion
Ref Expression
hadnot  |-  ( -. hadd
( ph ,  ps ,  ch )  <-> hadd ( -.  ph ,  -.  ps ,  -.  ch ) )

Proof of Theorem hadnot
StepHypRef Expression
1 xorneg 1304 . . . 4  |-  ( ( -.  ph  \/_  -.  ps ) 
<->  ( ph  \/_  ps ) )
2 biid 227 . . . 4  |-  ( -. 
ch 
<->  -.  ch )
31, 2xorbi12i 1305 . . 3  |-  ( ( ( -.  ph  \/_  -.  ps )  \/_  -.  ch ) 
<->  ( ( ph  \/_  ps )  \/_  -.  ch )
)
4 xorneg2 1303 . . 3  |-  ( ( ( ph  \/_  ps )  \/_  -.  ch )  <->  -.  ( ( ph  \/_  ps )  \/_  ch ) )
53, 4bitr2i 241 . 2  |-  ( -.  ( ( ph  \/_  ps )  \/_  ch )  <->  ( ( -.  ph  \/_  -.  ps )  \/_  -.  ch ) )
6 df-had 1370 . . 3  |-  (hadd (
ph ,  ps ,  ch )  <->  ( ( ph  \/_ 
ps )  \/_  ch ) )
76notbii 287 . 2  |-  ( -. hadd
( ph ,  ps ,  ch )  <->  -.  ( ( ph  \/_  ps )  \/_  ch ) )
8 df-had 1370 . 2  |-  (hadd ( -.  ph ,  -.  ps ,  -.  ch )  <->  ( ( -.  ph  \/_  -.  ps )  \/_  -.  ch ) )
95, 7, 83bitr4i 268 1  |-  ( -. hadd
( ph ,  ps ,  ch )  <-> hadd ( -.  ph ,  -.  ps ,  -.  ch ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    <-> wb 176    \/_ wxo 1295  haddwhad 1368
This theorem is referenced by:  had0  1393
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8
This theorem depends on definitions:  df-bi 177  df-xor 1296  df-had 1370
  Copyright terms: Public domain W3C validator