Booleans #
This file proves various trivial lemmas about booleans and their relation to decidable propositions.
Tags #
bool, boolean, Bool, De Morgan
This section contains lemmas about booleans which were present in core Lean 3. The remainder of this file contains lemmas about booleans from mathlib 3.
@[deprecated decide_true_eq_true]
Alias of decide_true_eq_true
.
@[deprecated decide_false_eq_false]
Alias of decide_false_eq_false
.
@[deprecated decide_eq_true_iff]
Alias of decide_eq_true_iff
.
@[deprecated decide_eq_true_iff]
Alias of decide_eq_true_iff
.
@[deprecated Bool.false_ne_true]
Alias of Bool.false_ne_true
.
@[deprecated eq_true_of_ne_false]
Alias of eq_true_of_ne_false
.
@[deprecated eq_false_of_ne_true]
Alias of eq_false_of_ne_true
.
@[deprecated Bool.not_not_eq]
Alias of Bool.not_not_eq
.
De Morgan's laws for booleans #
Equations
- Bool.linearOrder = LinearOrder.mk Bool.linearOrder.proof_5 inferInstance inferInstance inferInstance Bool.linearOrder.proof_6 Bool.linearOrder.proof_7 Bool.linearOrder.proof_8
convert a ℕ
to a Bool
, 0 -> false
, everything else -> true
Equations
- Bool.ofNat n = decide (n ≠ 0)
Instances For
@[simp]