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

Theorem hadbi 1396
Description: The half adder is the same as the triple biconditional. (Contributed by Mario Carneiro, 4-Sep-2016.)
Assertion
Ref Expression
hadbi  |-  (hadd (
ph ,  ps ,  ch )  <->  ( ( ph  <->  ps )  <->  ch ) )

Proof of Theorem hadbi
StepHypRef Expression
1 df-xor 1314 . 2  |-  ( ( ( ph  \/_  ps )  \/_  ch )  <->  -.  (
( ph  \/_  ps )  <->  ch ) )
2 df-had 1389 . 2  |-  (hadd (
ph ,  ps ,  ch )  <->  ( ( ph  \/_ 
ps )  \/_  ch ) )
3 xnor 1315 . . . 4  |-  ( (
ph 
<->  ps )  <->  -.  ( ph  \/_  ps ) )
43bibi1i 306 . . 3  |-  ( ( ( ph  <->  ps )  <->  ch )  <->  ( -.  ( ph  \/_  ps )  <->  ch )
)
5 nbbn 348 . . 3  |-  ( ( -.  ( ph  \/_  ps ) 
<->  ch )  <->  -.  (
( ph  \/_  ps )  <->  ch ) )
64, 5bitri 241 . 2  |-  ( ( ( ph  <->  ps )  <->  ch )  <->  -.  ( ( ph  \/_  ps )  <->  ch )
)
71, 2, 63bitr4i 269 1  |-  (hadd (
ph ,  ps ,  ch )  <->  ( ( ph  <->  ps )  <->  ch ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    <-> wb 177    \/_ wxo 1313  haddwhad 1387
This theorem is referenced by:  had1  1411
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 178  df-xor 1314  df-had 1389
  Copyright terms: Public domain W3C validator