Documentation

CslibFrontier.Foundations.Algebra.BigOperators.Selection

The largest weights beat every fractional selection #

For real weights w on a finite type and a fractional selection 0 ≤ c ≤ 1 of total mass ∑ c = d, some set S of exactly d elements has ∑ w c ≤ ∑_{i ∈ S} w (Finset.exists_card_eq_sum_mul_le). Take S maximizing ∑_S w among the d-sets: every weight outside S is at most every weight inside, by exchange, and a threshold between them bounds the difference. Equivalently, a linear function on the hypersimplex {c ∈ [0,1]ⁿ | ∑ c = d} attains its maximum at a 0/1 vertex.

Main results #

theorem Finset.exists_card_eq_sum_mul_le {N : Type u_1} [Fintype N] (w c : N → ℝ) (hc0 : ∀ (i : N), 0 ≤ c i) (hc1 : ∀ (i : N), c i ≤ 1) {d : ℕ} (hd : ∑ i : N, c i = ↑d) :
∃ (S : Finset N), S.card = d ∧ ∑ i : N, w i * c i ≤ ∑ i ∈ S, w i

The d largest weights beat every fractional selection of total mass d.