Documentation

CslibFrontier.Foundations.Data.Finset.KthLargest.Moment

Moments of a zero-padded maximum #

The maximum power is bounded by the sum of powers, including the empty set. Extracted from Samuel Schlesinger's heavy-count rarity proof for reuse with random rows.

theorem Finset.abs_kthLargest_pow_le_sum {V : Type u_1} {s : ℕ} (S : Finset V) (b : V → ℝ) (hs : s ≠ 0) :
|kthLargest 1 S fun (y : V) => |b y|| ^ s ≤ ∑ y ∈ S, |b y| ^ s

A full-slice maximum costs at most the sum of absolute entry powers.