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

Theorem cadan 1628
Description: The adder carry in conjunctive normal form. (Contributed by Mario Carneiro, 4-Sep-2016.) (Proof shortened by Wolf Lammen, 25-Sep-2018.)
Assertion
Ref Expression
cadan (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)))

Proof of Theorem cadan
StepHypRef Expression
1 df-3or 1098 . . . 4 (((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)) ↔ (((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (𝜓𝜒)))
2 cador 1627 . . . 4 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)))
3 andi 1020 . . . . 5 ((𝜑 ∧ (𝜓𝜒)) ↔ ((𝜑𝜓) ∨ (𝜑𝜒)))
43orbi1i 924 . . . 4 (((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)) ↔ (((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (𝜓𝜒)))
51, 2, 43bitr4i 305 . . 3 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)))
6 ordir 1019 . . 3 (((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)) ↔ ((𝜑 ∨ (𝜓𝜒)) ∧ ((𝜓𝜒) ∨ (𝜓𝜒))))
7 ordi 1018 . . . 4 ((𝜑 ∨ (𝜓𝜒)) ↔ ((𝜑𝜓) ∧ (𝜑𝜒)))
8 orcom 881 . . . . 5 (((𝜓𝜒) ∨ (𝜓𝜒)) ↔ ((𝜓𝜒) ∨ (𝜓𝜒)))
9 animorl 990 . . . . . 6 ((𝜓𝜒) → (𝜓𝜒))
10 pm4.72 962 . . . . . 6 (((𝜓𝜒) → (𝜓𝜒)) ↔ ((𝜓𝜒) ↔ ((𝜓𝜒) ∨ (𝜓𝜒))))
119, 10mpbi 232 . . . . 5 ((𝜓𝜒) ↔ ((𝜓𝜒) ∨ (𝜓𝜒)))
128, 11bitr4i 280 . . . 4 (((𝜓𝜒) ∨ (𝜓𝜒)) ↔ (𝜓𝜒))
137, 12anbi12i 637 . . 3 (((𝜑 ∨ (𝜓𝜒)) ∧ ((𝜓𝜒) ∨ (𝜓𝜒))) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
145, 6, 133bitri 299 . 2 (cadd(𝜑, 𝜓, 𝜒) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
15 df-3an 1099 . 2 (((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
1614, 15bitr4i 280 1 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 399  wo 858  w3o 1096  w3a 1097  caddwcad 1625
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 209  df-an 400  df-or 859  df-3or 1098  df-3an 1099  df-xor 1531  df-cad 1626
This theorem is referenced by:  cadcomb  1632  cadnot  1634  cad1  1636
  Copyright terms: Public domain W3C validator