Lemmas about List.minimum?
and `List.maximum?. #
Minima and maxima #
minimum? #
theorem
List.minimum?_cons
{α : Type u_1}
{x : α}
[Min α]
{xs : List α}
:
(x :: xs).minimum? = some (List.foldl min x xs)
maximum? #
theorem
List.maximum?_cons
{α : Type u_1}
{x : α}
[Max α]
{xs : List α}
:
(x :: xs).maximum? = some (List.foldl max x xs)