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

Theorem cadan 1606
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 1084 . . . 4 (((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)) ↔ (((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (𝜓𝜒)))
2 cador 1605 . . . 4 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)))
3 andi 1004 . . . . 5 ((𝜑 ∧ (𝜓𝜒)) ↔ ((𝜑𝜓) ∨ (𝜑𝜒)))
43orbi1i 910 . . . 4 (((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)) ↔ (((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (𝜓𝜒)))
51, 2, 43bitr4i 305 . . 3 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)))
6 ordir 1003 . . 3 (((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)) ↔ ((𝜑 ∨ (𝜓𝜒)) ∧ ((𝜓𝜒) ∨ (𝜓𝜒))))
7 ordi 1002 . . . 4 ((𝜑 ∨ (𝜓𝜒)) ↔ ((𝜑𝜓) ∧ (𝜑𝜒)))
8 orcom 866 . . . . 5 (((𝜓𝜒) ∨ (𝜓𝜒)) ↔ ((𝜓𝜒) ∨ (𝜓𝜒)))
9 animorl 974 . . . . . 6 ((𝜓𝜒) → (𝜓𝜒))
10 pm4.72 946 . . . . . 6 (((𝜓𝜒) → (𝜓𝜒)) ↔ ((𝜓𝜒) ↔ ((𝜓𝜒) ∨ (𝜓𝜒))))
119, 10mpbi 232 . . . . 5 ((𝜓𝜒) ↔ ((𝜓𝜒) ∨ (𝜓𝜒)))
128, 11bitr4i 280 . . . 4 (((𝜓𝜒) ∨ (𝜓𝜒)) ↔ (𝜓𝜒))
137, 12anbi12i 628 . . 3 (((𝜑 ∨ (𝜓𝜒)) ∧ ((𝜓𝜒) ∨ (𝜓𝜒))) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
145, 6, 133bitri 299 . 2 (cadd(𝜑, 𝜓, 𝜒) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
15 df-3an 1085 . 2 (((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
1614, 15bitr4i 280 1 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  wo 843  w3o 1082  w3a 1083  caddwcad 1603
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 399  df-or 844  df-3or 1084  df-3an 1085  df-xor 1501  df-cad 1604
This theorem is referenced by:  cadcomb  1610  cadnot  1612  cad1  1613
  Copyright terms: Public domain W3C validator