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 1088 . . . 4 (((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)) ↔ (((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (𝜓𝜒)))
2 cador 1605 . . . 4 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)))
3 andi 1008 . . . . 5 ((𝜑 ∧ (𝜓𝜒)) ↔ ((𝜑𝜓) ∨ (𝜑𝜒)))
43orbi1i 912 . . . 4 (((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)) ↔ (((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (𝜓𝜒)))
51, 2, 43bitr4i 303 . . 3 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)))
6 ordir 1007 . . 3 (((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)) ↔ ((𝜑 ∨ (𝜓𝜒)) ∧ ((𝜓𝜒) ∨ (𝜓𝜒))))
7 ordi 1006 . . . 4 ((𝜑 ∨ (𝜓𝜒)) ↔ ((𝜑𝜓) ∧ (𝜑𝜒)))
8 orcom 869 . . . . 5 (((𝜓𝜒) ∨ (𝜓𝜒)) ↔ ((𝜓𝜒) ∨ (𝜓𝜒)))
9 animorl 978 . . . . . 6 ((𝜓𝜒) → (𝜓𝜒))
10 pm4.72 950 . . . . . 6 (((𝜓𝜒) → (𝜓𝜒)) ↔ ((𝜓𝜒) ↔ ((𝜓𝜒) ∨ (𝜓𝜒))))
119, 10mpbi 230 . . . . 5 ((𝜓𝜒) ↔ ((𝜓𝜒) ∨ (𝜓𝜒)))
128, 11bitr4i 278 . . . 4 (((𝜓𝜒) ∨ (𝜓𝜒)) ↔ (𝜓𝜒))
137, 12anbi12i 627 . . 3 (((𝜑 ∨ (𝜓𝜒)) ∧ ((𝜓𝜒) ∨ (𝜓𝜒))) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
145, 6, 133bitri 297 . 2 (cadd(𝜑, 𝜓, 𝜒) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
15 df-3an 1089 . 2 (((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
1614, 15bitr4i 278 1 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 206  wa 395  wo 846  w3o 1086  w3a 1087  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 207  df-an 396  df-or 847  df-3or 1088  df-3an 1089  df-xor 1509  df-cad 1604
This theorem is referenced by:  cadcomb  1610  cadnot  1612  cad1  1614
  Copyright terms: Public domain W3C validator