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 Bool.decide_true (since := "2024-06-07")]
Alias of Bool.decide_true
.
@[deprecated Bool.decide_false (since := "2024-06-07")]
Alias of Bool.decide_false
.
@[deprecated decide_eq_true_iff (since := "2024-06-07")]
Alias of decide_eq_true_iff
.
@[deprecated decide_eq_true_iff (since := "2024-06-07")]
Alias of decide_eq_true_iff
.
@[deprecated Bool.false_ne_true (since := "2024-06-07")]
Alias of Bool.false_ne_true
.
@[deprecated eq_true_of_ne_false (since := "2024-06-07")]
Alias of eq_true_of_ne_false
.
@[deprecated eq_false_of_ne_true (since := "2024-06-07")]
Alias of eq_false_of_ne_true
.
@[deprecated Bool.not_not_eq (since := "2024-06-07")]
Alias of Bool.not_not_eq
.
De Morgan's laws for booleans #
convert a ℕ
to a Bool
, 0 -> false
, everything else -> true
Equations
- Bool.ofNat n = decide (n ≠ 0)
Instances For
@[simp]