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

Theorem cador 1547
Description: The adder carry in disjunctive normal form. (Contributed by Mario Carneiro, 4-Sep-2016.) (Proof shortened by Wolf Lammen, 11-Jul-2020.)
Assertion
Ref Expression
cador  |-  (cadd (
ph ,  ps ,  ch )  <->  ( ( ph  /\ 
ps )  \/  ( ph  /\  ch )  \/  ( ps  /\  ch ) ) )

Proof of Theorem cador
StepHypRef Expression
1 xor2 1470 . . . . . . 7  |-  ( (
ph  \/_  ps )  <->  ( ( ph  \/  ps )  /\  -.  ( ph  /\ 
ps ) ) )
21rbaib 947 . . . . . 6  |-  ( -.  ( ph  /\  ps )  ->  ( ( ph  \/_ 
ps )  <->  ( ph  \/  ps ) ) )
32anbi1d 741 . . . . 5  |-  ( -.  ( ph  /\  ps )  ->  ( ( (
ph  \/_  ps )  /\  ch )  <->  ( ( ph  \/  ps )  /\  ch ) ) )
4 ancom 466 . . . . 5  |-  ( ( ( ph  \/_  ps )  /\  ch )  <->  ( ch  /\  ( ph  \/_  ps ) ) )
5 andir 912 . . . . 5  |-  ( ( ( ph  \/  ps )  /\  ch )  <->  ( ( ph  /\  ch )  \/  ( ps  /\  ch ) ) )
63, 4, 53bitr3g 302 . . . 4  |-  ( -.  ( ph  /\  ps )  ->  ( ( ch 
/\  ( ph  \/_  ps ) )  <->  ( ( ph  /\  ch )  \/  ( ps  /\  ch ) ) ) )
76pm5.74i 260 . . 3  |-  ( ( -.  ( ph  /\  ps )  ->  ( ch 
/\  ( ph  \/_  ps ) ) )  <->  ( -.  ( ph  /\  ps )  ->  ( ( ph  /\  ch )  \/  ( ps  /\  ch ) ) ) )
8 df-or 385 . . 3  |-  ( ( ( ph  /\  ps )  \/  ( ch  /\  ( ph  \/_  ps ) ) )  <->  ( -.  ( ph  /\  ps )  ->  ( ch  /\  ( ph  \/_  ps ) ) ) )
9 df-or 385 . . 3  |-  ( ( ( ph  /\  ps )  \/  ( ( ph  /\  ch )  \/  ( ps  /\  ch ) ) )  <->  ( -.  ( ph  /\  ps )  ->  ( ( ph  /\  ch )  \/  ( ps  /\  ch ) ) ) )
107, 8, 93bitr4i 292 . 2  |-  ( ( ( ph  /\  ps )  \/  ( ch  /\  ( ph  \/_  ps ) ) )  <->  ( ( ph  /\  ps )  \/  ( ( ph  /\  ch )  \/  ( ps  /\  ch ) ) ) )
11 df-cad 1546 . 2  |-  (cadd (
ph ,  ps ,  ch )  <->  ( ( ph  /\ 
ps )  \/  ( ch  /\  ( ph  \/_  ps ) ) ) )
12 3orass 1040 . 2  |-  ( ( ( ph  /\  ps )  \/  ( ph  /\ 
ch )  \/  ( ps  /\  ch ) )  <-> 
( ( ph  /\  ps )  \/  (
( ph  /\  ch )  \/  ( ps  /\  ch ) ) ) )
1310, 11, 123bitr4i 292 1  |-  (cadd (
ph ,  ps ,  ch )  <->  ( ( ph  /\ 
ps )  \/  ( ph  /\  ch )  \/  ( ps  /\  ch ) ) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 196    \/ wo 383    /\ wa 384    \/ w3o 1036    \/_ wxo 1464  caddwcad 1545
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  df-3or 1038  df-xor 1465  df-cad 1546
This theorem is referenced by:  cadan  1548  cadnot  1554
  Copyright terms: Public domain W3C validator