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

Theorem had0 1534
Description: If the first input is false, then the adder sum is equivalent to the exclusive disjunction of the other two inputs. (Contributed by Mario Carneiro, 4-Sep-2016.) (Proof shortened by Wolf Lammen, 12-Jul-2020.)
Assertion
Ref Expression
had0 𝜑 → (hadd(𝜑, 𝜓, 𝜒) ↔ (𝜓𝜒)))

Proof of Theorem had0
StepHypRef Expression
1 had1 1533 . . 3 𝜑 → (hadd(¬ 𝜑, ¬ 𝜓, ¬ 𝜒) ↔ (¬ 𝜓 ↔ ¬ 𝜒)))
2 hadnot 1532 . . 3 (¬ hadd(𝜑, 𝜓, 𝜒) ↔ hadd(¬ 𝜑, ¬ 𝜓, ¬ 𝜒))
3 xnor 1458 . . . 4 ((𝜓𝜒) ↔ ¬ (𝜓𝜒))
4 notbi 308 . . . 4 ((𝜓𝜒) ↔ (¬ 𝜓 ↔ ¬ 𝜒))
53, 4bitr3i 265 . . 3 (¬ (𝜓𝜒) ↔ (¬ 𝜓 ↔ ¬ 𝜒))
61, 2, 53bitr4g 302 . 2 𝜑 → (¬ hadd(𝜑, 𝜓, 𝜒) ↔ ¬ (𝜓𝜒)))
76con4bid 306 1 𝜑 → (hadd(𝜑, 𝜓, 𝜒) ↔ (𝜓𝜒)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wxo 1456  haddwhad 1523
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 196  df-xor 1457  df-had 1524
This theorem is referenced by:  hadifp  1535  sadadd2lem2  15010  saddisjlem  15024
  Copyright terms: Public domain W3C validator