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

Theorem cador 1600
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(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)))

Proof of Theorem cador
StepHypRef Expression
1 xor2 1501 . . . . . . 7 ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓)))
21rbaib 539 . . . . . 6 (¬ (𝜑𝜓) → ((𝜑𝜓) ↔ (𝜑𝜓)))
32anbi1d 629 . . . . 5 (¬ (𝜑𝜓) → (((𝜑𝜓) ∧ 𝜒) ↔ ((𝜑𝜓) ∧ 𝜒)))
4 ancom 461 . . . . 5 (((𝜑𝜓) ∧ 𝜒) ↔ (𝜒 ∧ (𝜑𝜓)))
5 andir 1002 . . . . 5 (((𝜑𝜓) ∧ 𝜒) ↔ ((𝜑𝜒) ∨ (𝜓𝜒)))
63, 4, 53bitr3g 314 . . . 4 (¬ (𝜑𝜓) → ((𝜒 ∧ (𝜑𝜓)) ↔ ((𝜑𝜒) ∨ (𝜓𝜒))))
76pm5.74i 272 . . 3 ((¬ (𝜑𝜓) → (𝜒 ∧ (𝜑𝜓))) ↔ (¬ (𝜑𝜓) → ((𝜑𝜒) ∨ (𝜓𝜒))))
8 df-or 842 . . 3 (((𝜑𝜓) ∨ (𝜒 ∧ (𝜑𝜓))) ↔ (¬ (𝜑𝜓) → (𝜒 ∧ (𝜑𝜓))))
9 df-or 842 . . 3 (((𝜑𝜓) ∨ ((𝜑𝜒) ∨ (𝜓𝜒))) ↔ (¬ (𝜑𝜓) → ((𝜑𝜒) ∨ (𝜓𝜒))))
107, 8, 93bitr4i 304 . 2 (((𝜑𝜓) ∨ (𝜒 ∧ (𝜑𝜓))) ↔ ((𝜑𝜓) ∨ ((𝜑𝜒) ∨ (𝜓𝜒))))
11 df-cad 1599 . 2 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∨ (𝜒 ∧ (𝜑𝜓))))
12 3orass 1082 . 2 (((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)) ↔ ((𝜑𝜓) ∨ ((𝜑𝜒) ∨ (𝜓𝜒))))
1310, 11, 123bitr4i 304 1 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 207  wa 396  wo 841  w3o 1078  wxo 1495  caddwcad 1598
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 208  df-an 397  df-or 842  df-3or 1080  df-xor 1496  df-cad 1599
This theorem is referenced by:  cadan  1601  cadnot  1607
  Copyright terms: Public domain W3C validator