NFE Home New Foundations Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  NFE Home  >  Th. List  >  hadbi GIF version

Theorem hadbi 1387
Description: The half adder is the same as the triple biconditional. (Contributed by Mario Carneiro, 4-Sep-2016.)
Assertion
Ref Expression
hadbi ⊢ (hadd(φ, ψ, χ) ↔ ((φ ↔ ψ) ↔ χ))

Proof of Theorem hadbi
StepHypRef Expression
1 df-xor 1305 . 2 ⊢ (((φ ⊻ ψ) ⊻ χ) ↔ ¬ ((φ ⊻ ψ) ↔ χ))
2 df-had 1380 . 2 ⊢ (hadd(φ, ψ, χ) ↔ ((φ ⊻ ψ) ⊻ χ))
3 xnor 1306 . . . 4 ⊢ ((φ ↔ ψ) ↔ ¬ (φ ⊻ ψ))
43bibi1i 305 . . 3 ⊢ (((φ ↔ ψ) ↔ χ) ↔ (¬ (φ ⊻ ψ) ↔ χ))
5 nbbn 347 . . 3 ⊢ ((¬ (φ ⊻ ψ) ↔ χ) ↔ ¬ ((φ ⊻ ψ) ↔ χ))
64, 5bitri 240 . 2 ⊢ (((φ ↔ ψ) ↔ χ) ↔ ¬ ((φ ⊻ ψ) ↔ χ))
71, 2, 63bitr4i 268 1 ⊢ (hadd(φ, ψ, χ) ↔ ((φ ↔ ψ) ↔ χ))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ↔ wb 176   ⊻ wxo 1304  haddwhad 1378
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8
This proof depends on definitions:  df-bi 177  df-xor 1305  df-had 1380
This theorem is used by:  had1  1402
  Copyright terms: Public domain W3C validator