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

Theorem had1 1402
Description: If the first parameter is true, the half adder is equivalent to the equality of the other two inputs. (Contributed by Mario Carneiro, 4-Sep-2016.)
Assertion
Ref Expression
had1 ⊢ (φ → (hadd(φ, ψ, χ) ↔ (ψ ↔ χ)))

Proof of Theorem had1
StepHypRef Expression
1 hadbi 1387 . . 3 ⊢ (hadd(φ, ψ, χ) ↔ ((φ ↔ ψ) ↔ χ))
2 biass 348 . . 3 ⊢ (((φ ↔ ψ) ↔ χ) ↔ (φ ↔ (ψ ↔ χ)))
31, 2bitri 240 . 2 ⊢ (hadd(φ, ψ, χ) ↔ (φ ↔ (ψ ↔ χ)))
4 id 19 . . . 4 ⊢ (φ → φ)
5 biidd 228 . . . 4 ⊢ (φ → ((ψ ↔ χ) ↔ (ψ ↔ χ)))
64, 52thd 231 . . 3 ⊢ (φ → (φ ↔ ((ψ ↔ χ) ↔ (ψ ↔ χ))))
7 biass 348 . . 3 ⊢ (((φ ↔ (ψ ↔ χ)) ↔ (ψ ↔ χ)) ↔ (φ ↔ ((ψ ↔ χ) ↔ (ψ ↔ χ))))
86, 7sylibr 203 . 2 ⊢ (φ → ((φ ↔ (ψ ↔ χ)) ↔ (ψ ↔ χ)))
93, 8syl5bb 248 1 ⊢ (φ → (hadd(φ, ψ, χ) ↔ (ψ ↔ χ)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 176  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:  had0  1403
  Copyright terms: Public domain W3C validator