Booleans #
This file proves various trivial lemmas about booleans and their relation to decidable propositions.
Tags #
bool, boolean, Bool, De Morgan
theorem
Bool.beq_eq_decide_eq
{α : Type u_1}
[BEq α]
[LawfulBEq α]
[DecidableEq α]
(a : α)
(b : α)
:
De Morgan's laws for booleans #
Equations
- Bool.linearOrder = LinearOrder.mk Bool.linearOrder.proof_5 inferInstance inferInstance inferInstance
convert a ℕ
to a Bool
, 0 -> false
, everything else -> true
Equations
- Bool.ofNat n = decide (n ≠ 0)
Instances For
@[simp]