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

Theorem hadbi123d 1388
Description: Equality theorem for half adder. (Contributed by Mario Carneiro, 4-Sep-2016.)
Hypotheses
Ref Expression
hadbid.1  |-  ( ph  ->  ( ps  <->  ch )
)
hadbid.2  |-  ( ph  ->  ( th  <->  ta )
)
hadbid.3  |-  ( ph  ->  ( et  <->  ze )
)
Assertion
Ref Expression
hadbi123d  |-  ( ph  ->  (hadd ( ps ,  th ,  et )  <-> hadd ( ch ,  ta ,  ze ) ) )

Proof of Theorem hadbi123d
StepHypRef Expression
1 hadbid.1 . . . 4  |-  ( ph  ->  ( ps  <->  ch )
)
2 hadbid.2 . . . 4  |-  ( ph  ->  ( th  <->  ta )
)
31, 2xorbi12d 1321 . . 3  |-  ( ph  ->  ( ( ps  \/_  th )  <->  ( ch  \/_  ta ) ) )
4 hadbid.3 . . 3  |-  ( ph  ->  ( et  <->  ze )
)
53, 4xorbi12d 1321 . 2  |-  ( ph  ->  ( ( ( ps 
\/_  th )  \/_  et ) 
<->  ( ( ch  \/_  ta )  \/_  ze )
) )
6 df-had 1386 . 2  |-  (hadd ( ps ,  th ,  et )  <->  ( ( ps 
\/_  th )  \/_  et ) )
7 df-had 1386 . 2  |-  (hadd ( ch ,  ta ,  ze )  <->  ( ( ch 
\/_  ta )  \/_  ze ) )
85, 6, 73bitr4g 280 1  |-  ( ph  ->  (hadd ( ps ,  th ,  et )  <-> hadd ( ch ,  ta ,  ze ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 177    \/_ wxo 1310  haddwhad 1384
This theorem is referenced by:  hadbi123i  1390  sadfval  12927  sadval  12931
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 1311  df-had 1386
  Copyright terms: Public domain W3C validator