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

Theorem cad1 1613
Description: If one input is true, then the adder carry is true exactly when at least one of the other two inputs is true. (Contributed by Mario Carneiro, 8-Sep-2016.) (Proof shortened by Wolf Lammen, 19-Jun-2020.)
Assertion
Ref Expression
cad1 (𝜒 → (cadd(𝜑, 𝜓, 𝜒) ↔ (𝜑𝜓)))

Proof of Theorem cad1
StepHypRef Expression
1 olc 864 . . . 4 (𝜒 → (𝜑𝜒))
2 olc 864 . . . 4 (𝜒 → (𝜓𝜒))
31, 2jca 514 . . 3 (𝜒 → ((𝜑𝜒) ∧ (𝜓𝜒)))
43biantrud 534 . 2 (𝜒 → ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ((𝜑𝜒) ∧ (𝜓𝜒)))))
5 cadan 1606 . . 3 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)))
6 3anass 1091 . . 3 (((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)) ↔ ((𝜑𝜓) ∧ ((𝜑𝜒) ∧ (𝜓𝜒))))
75, 6bitri 277 . 2 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∧ ((𝜑𝜒) ∧ (𝜓𝜒))))
84, 7syl6rbbr 292 1 (𝜒 → (cadd(𝜑, 𝜓, 𝜒) ↔ (𝜑𝜓)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  wo 843  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:  cadifp  1615  sadadd2lem2  15793  sadcaddlem  15800
  Copyright terms: Public domain W3C validator