Theorems · Theorem · order theory
List.argmax_concat
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] [inst_1 : DecidableLT β] (f : α → β) (a : α) (l : List α),
List.argmax f (l ++ [a]) = Option.casesOn (List.argmax f l) (some a) fun c => if f c < f a then some a else some c- Defined in
- Mathlib.Data.List.MinMax
- Cited by
- 2 results in Mathlib
- Foundations
- Depth 13 from the axioms · uses propext, Quot.sound
- Assumes
- PreorderDecidableLT
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites3
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.argmaxstatement and proof · cited by 15
- List.argAuxproof · cited by 6
Cited by2
Results whose statement or proof uses this declaration.
- List.maximum_concatproof · cited by 1
- List.argmax_consproof · cited by 0