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

Theorem cadan 1548
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 1038 . . . 4 (((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)) ↔ (((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (𝜓𝜒)))
2 cador 1547 . . . 4 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)))
3 andi 911 . . . . 5 ((𝜑 ∧ (𝜓𝜒)) ↔ ((𝜑𝜓) ∨ (𝜑𝜒)))
43orbi1i 542 . . . 4 (((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)) ↔ (((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (𝜓𝜒)))
51, 2, 43bitr4i 292 . . 3 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)))
6 ordir 909 . . 3 (((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)) ↔ ((𝜑 ∨ (𝜓𝜒)) ∧ ((𝜓𝜒) ∨ (𝜓𝜒))))
7 ordi 908 . . . 4 ((𝜑 ∨ (𝜓𝜒)) ↔ ((𝜑𝜓) ∧ (𝜑𝜒)))
8 orcom 402 . . . . 5 (((𝜓𝜒) ∨ (𝜓𝜒)) ↔ ((𝜓𝜒) ∨ (𝜓𝜒)))
9 animorl 505 . . . . . 6 ((𝜓𝜒) → (𝜓𝜒))
10 pm4.72 920 . . . . . 6 (((𝜓𝜒) → (𝜓𝜒)) ↔ ((𝜓𝜒) ↔ ((𝜓𝜒) ∨ (𝜓𝜒))))
119, 10mpbi 220 . . . . 5 ((𝜓𝜒) ↔ ((𝜓𝜒) ∨ (𝜓𝜒)))
128, 11bitr4i 267 . . . 4 (((𝜓𝜒) ∨ (𝜓𝜒)) ↔ (𝜓𝜒))
137, 12anbi12i 733 . . 3 (((𝜑 ∨ (𝜓𝜒)) ∧ ((𝜓𝜒) ∨ (𝜓𝜒))) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
145, 6, 133bitri 286 . 2 (cadd(𝜑, 𝜓, 𝜒) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
15 df-3an 1039 . 2 (((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
1614, 15bitr4i 267 1 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wo 383  wa 384  w3o 1036  w3a 1037  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-3an 1039  df-xor 1465  df-cad 1546
This theorem is referenced by:  cadcomb  1552  cadnot  1554  cad1  1555
  Copyright terms: Public domain W3C validator