English
For a preorder α and a list l, the maximum of l is defined as the argmax of the identity function on l, yielding the largest element of l in the preorder, with the empty list yielding the bottom element.
Русский
Для частичной упорядоченности α и списка l максимумом списка считается элемент списка, достигающий максимума для функции identidad, т.е. наибольший элемент по порядку; пустой список соответствует нижней границе.
LaTeX
$$$\operatorname{maximum} l := \operatorname{argmax} \mathrm{id} \, l$$
Lean4
/-- `maximum l` returns a `WithBot α`, the largest element of `l` for nonempty lists, and `⊥` for
`[]` -/
def maximum (l : List α) : WithBot α :=
argmax id l