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

Theorem cadan 1642
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 1104 . . . 4 (((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)) ↔ (((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (𝜓𝜒)))
2 cador 1641 . . . 4 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∨ (𝜑𝜒) ∨ (𝜓𝜒)))
3 andi 1025 . . . . 5 ((𝜑 ∧ (𝜓𝜒)) ↔ ((𝜑𝜓) ∨ (𝜑𝜒)))
43orbi1i 927 . . . 4 (((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)) ↔ (((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (𝜓𝜒)))
51, 2, 43bitr4i 306 . . 3 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)))
6 ordir 1024 . . 3 (((𝜑 ∧ (𝜓𝜒)) ∨ (𝜓𝜒)) ↔ ((𝜑 ∨ (𝜓𝜒)) ∧ ((𝜓𝜒) ∨ (𝜓𝜒))))
7 ordi 1023 . . . 4 ((𝜑 ∨ (𝜓𝜒)) ↔ ((𝜑𝜓) ∧ (𝜑𝜒)))
8 orcom 884 . . . . 5 (((𝜓𝜒) ∨ (𝜓𝜒)) ↔ ((𝜓𝜒) ∨ (𝜓𝜒)))
9 animorl 993 . . . . . 6 ((𝜓𝜒) → (𝜓𝜒))
10 pm4.72 964 . . . . . 6 (((𝜓𝜒) → (𝜓𝜒)) ↔ ((𝜓𝜒) ↔ ((𝜓𝜒) ∨ (𝜓𝜒))))
119, 10mpbi 233 . . . . 5 ((𝜓𝜒) ↔ ((𝜓𝜒) ∨ (𝜓𝜒)))
128, 11bitr4i 281 . . . 4 (((𝜓𝜒) ∨ (𝜓𝜒)) ↔ (𝜓𝜒))
137, 12anbi12i 640 . . 3 (((𝜑 ∨ (𝜓𝜒)) ∧ ((𝜓𝜒) ∨ (𝜓𝜒))) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
145, 6, 133bitri 300 . 2 (cadd(𝜑, 𝜓, 𝜒) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
15 df-3an 1105 . 2 (((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)) ↔ (((𝜑𝜓) ∧ (𝜑𝜒)) ∧ (𝜓𝜒)))
1614, 15bitr4i 281 1 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  wi 4  wb 209  wa 401  wo 861  w3o 1102  w3a 1103  caddwcad 1639
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-xor 1542  df-cad 1640
This theorem is used by:  cadcomb  1646  cadnot  1648  cad1  1650
  Copyright terms: Public domain W3C validator