The argmax set of a function on a finset #
Finset.argmax s f is the finset of elements of s at which f attains its
maximum over s. Mathlib has only the tie-breaking List.argmax : List α → Option α; the set-valued form is the natural companion of Finset.max' and
Finset.exists_max_image, and the carrier for argmax correspondences
(set-valued best responses) in game-theoretic consumers.
[UPSTREAM] candidate: Mathlib.Data.Finset.Max.
Main definitions #
Finset.argmax s f— the score-maximal elements ofs.
Main statements #
mem_argmax— membership characterization (simp normal form).argmax_nonempty— nonempty on nonempty input (viaexists_max_image).argmax_comp_strictMono— invariance under strictly monotone rescaling.
The argmax set is invariant under strictly monotone rescaling of the score — inverse-temperature changes do not move the argmax.
Membership in an argmax over univ, through a surjection: a maximizes
φ ∘ e iff e a maximizes φ. Collapses argmax over a function space to
argmax over values when the objective factors through evaluation.
Membership in the argmax of a coordinatewise sum over a finite pi type:
g maximizes ∑ i, φ i (g i) iff every coordinate maximizes its own
summand. The additive-separability workhorse for best responses in games.
A Finset.fold max is attained either at the initial value or at some
element. [UPSTREAM] candidate alongside argmax.