Theorems · Definition · order theory
List.argmax
{α : Type u_1} → {β : Type u_2} → [inst : Preorder β] → [DecidableLT β] → (α → β) → List α → Option αargmax f l returns some a, where f a is maximal among the elements of l, in the sense
that there is no b ∈ l with f a < f b. If a, b are such that f a = f b, it returns
whichever of a or b comes first in the list. argmax f [] = none.
- Defined in
- Mathlib.Data.List.MinMax
- Cited by
- 15 results in Mathlib
- Foundations
- Depth 7 from the axioms · uses no axioms
- Assumes
- PreorderDecidableLT
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites2
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Preorderstatement and proof · cited by 7,952
- List.argAuxproof · cited by 6
Cited by16
Results whose statement or proof uses this declaration.
- List.maximumproof · cited by 25
- List.le_of_mem_argmaxstatement and proof · cited by 3
- List.not_lt_of_mem_argmaxstatement · cited by 2
- List.argmax_concatstatement and proof · cited by 2
- List.argmax_eq_nonestatement · cited by 2
- List.argmax_memstatement and proof · cited by 2
- List.index_of_argmaxstatement and proof · cited by 1
- List.maximum_concatproof · cited by 1
- List.maximum_eq_coe_iffproof · cited by 1
- Submodule.exists_isTorsionByproof · cited by 1
- List.argmax_eq_some_iffstatement · cited by 1
- List.mem_argmax_iffstatement and proof · cited by 1