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

Theorem cad1 1650
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 cadan 1642 . . 3 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)))
2 3anass 1111 . . 3 (((𝜑𝜓) ∧ (𝜑𝜒) ∧ (𝜓𝜒)) ↔ ((𝜑𝜓) ∧ ((𝜑𝜒) ∧ (𝜓𝜒))))
31, 2bitri 278 . 2 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∧ ((𝜑𝜒) ∧ (𝜓𝜒))))
4 olc 882 . . . 4 (𝜒 → (𝜑𝜒))
5 olc 882 . . . 4 (𝜒 → (𝜓𝜒))
64, 5jca 521 . . 3 (𝜒 → ((𝜑𝜒) ∧ (𝜓𝜒)))
76biantrud 541 . 2 (𝜒 → ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ((𝜑𝜒) ∧ (𝜓𝜒)))))
83, 7bitr4id 293 1 (𝜒 → (cadd(𝜑, 𝜓, 𝜒) ↔ (𝜑𝜓)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  wi 4  wb 209  wa 401  wo 861  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:  cadifp  1652  sadadd2lem2  16533  sadcaddlem  16540
  Copyright terms: Public domain W3C validator