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

Theorem cad0 1641
Description: If one input is false, then the adder carry is true exactly when both of the other two inputs are true. (Contributed by Mario Carneiro, 8-Sep-2016.) (Proof shortened by Wolf Lammen, 21-Sep-2024.)
Assertion
Ref Expression
cad0 𝜒 → (cadd(𝜑, 𝜓, 𝜒) ↔ (𝜑𝜓)))

Proof of Theorem cad0
StepHypRef Expression
1 df-cad 1630 . . 3 (cadd(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∨ (𝜒 ∧ (𝜑𝜓))))
2 idd 25 . . . 4 𝜒 → ((𝜑𝜓) → (𝜑𝜓)))
3 pm2.21 124 . . . . 5 𝜒 → (𝜒 → (𝜑𝜓)))
43adantrd 496 . . . 4 𝜒 → ((𝜒 ∧ (𝜑𝜓)) → (𝜑𝜓)))
52, 4jaod 872 . . 3 𝜒 → (((𝜑𝜓) ∨ (𝜒 ∧ (𝜑𝜓))) → (𝜑𝜓)))
61, 5biimtrid 245 . 2 𝜒 → (cadd(𝜑, 𝜓, 𝜒) → (𝜑𝜓)))
7 cad11 1639 . 2 ((𝜑𝜓) → cadd(𝜑, 𝜓, 𝜒))
86, 7impbid1 228 1 𝜒 → (cadd(𝜑, 𝜓, 𝜒) ↔ (𝜑𝜓)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 400  wo 860  wxo 1534  caddwcad 1629
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 210  df-an 401  df-or 861  df-cad 1630
This theorem is referenced by:  cadifp  1642  sadadd2lem2  16498  sadcaddlem  16505  saddisjlem  16512
  Copyright terms: Public domain W3C validator