Minima and maxima #
min? #
theorem
List.foldl_min
{α : Type u_1}
[Min α]
[Std.IdempotentOp min]
[Std.Associative min]
{l : List α}
{a : α}
:
max? #
theorem
List.foldl_max
{α : Type u_1}
[Max α]
[Std.IdempotentOp max]
[Std.Associative max]
{l : List α}
{a : α}
:
@[reducible, inline, deprecated List.min?_nil (since := "2024-09-29")]
Equations
Instances For
@[reducible, inline, deprecated List.min?_cons (since := "2024-09-29")]
Equations
Instances For
@[reducible, inline, deprecated List.min?_eq_none_iff (since := "2024-09-29")]
Instances For
@[reducible, inline, deprecated List.min?_eq_some_iff (since := "2024-09-29")]
abbrev
List.minimum?_eq_some_iff
{α : Type u_1}
{a : α}
[Min α]
[LE α]
[anti : Std.Antisymm fun (x1 x2 : α) => x1 ≤ x2]
(le_refl : ∀ (a : α), a ≤ a)
(min_eq_or : ∀ (a b : α), min a b = a ∨ min a b = b)
(le_min_iff : ∀ (a b c : α), a ≤ min b c ↔ a ≤ b ∧ a ≤ c)
{xs : List α}
:
Instances For
@[reducible, inline, deprecated List.max?_nil (since := "2024-09-29")]
Equations
Instances For
@[reducible, inline, deprecated List.max?_cons (since := "2024-09-29")]
Equations
Instances For
@[reducible, inline, deprecated List.max?_eq_none_iff (since := "2024-09-29")]
Instances For
@[reducible, inline, deprecated List.max?_eq_some_iff (since := "2024-09-29")]
abbrev
List.maximum?_eq_some_iff
{α : Type u_1}
{a : α}
[Max α]
[LE α]
[anti : Std.Antisymm fun (x1 x2 : α) => x1 ≤ x2]
(le_refl : ∀ (a : α), a ≤ a)
(max_eq_or : ∀ (a b : α), max a b = a ∨ max a b = b)
(max_le_iff : ∀ (a b c : α), max b c ≤ a ↔ b ≤ a ∧ c ≤ a)
{xs : List α}
: