Documentation

CslibFrontier.Foundations.Data.Finset.PowerSum

A power-sum inequality #

For nonnegative c₁, …, cₙ and k ≥ 1, Alon, Matias and Szegedy bound the product of the first and (2 k - 1)-th power sums by the k-th one [AlonMatiasSzegedy1999, Fact in the proof of Theorem 2.1]:

(∑ cᵢ) (∑ cᵢ ^ (2 k - 1)) ≤ n ^ (1 - 1 / k) (∑ cᵢ ^ k) ^ 2.

Finset.sum_mul_sum_pow_le states it raised to the k-th power, which avoids real exponents, with k + 1 in place of k. The proof is the source's: with M = max cᵢ, M ^ k ≤ ∑ cᵢ ^ k and ∑ cᵢ ^ (2 k - 1) ≤ M ^ (k - 1) ∑ cᵢ ^ k, while (∑ cᵢ) ^ k ≤ n ^ (k - 1) ∑ cᵢ ^ k is the power mean inequality pow_sum_le_card_mul_sum_pow. The source notes that c₁ = n ^ (1 / k), c₂ = ⋯ = cₙ = 1 shows the inequality is tight up to a constant factor.

Main results #

References #

theorem Finset.sum_mul_sum_pow_le {ι : Type u_1} {α : Type u_2} [CommSemiring α] [LinearOrder α] [IsStrictOrderedRing α] [ExistsAddOfLE α] (s : Finset ι) {c : ι → α} (hc : ∀ i ∈ s, 0 ≤ c i) (k : ℕ) :
((∑ i ∈ s, c i) * ∑ i ∈ s, c i ^ (2 * k + 1)) ^ (k + 1) ≤ ↑s.card ^ k * (∑ i ∈ s, c i ^ (k + 1)) ^ (2 * (k + 1))

The AMS power-sum inequality [AlonMatiasSzegedy1999, Fact in the proof of Theorem 2.1]: for nonnegative c on a finite set of size n, ((∑ cᵢ) (∑ cᵢ ^ (2 k + 1))) ^ (k + 1) ≤ n ^ k (∑ cᵢ ^ (k + 1)) ^ (2 (k + 1)), that is, (∑ cᵢ) (∑ cᵢ ^ (2 k' - 1)) ≤ n ^ (1 - 1 / k') (∑ cᵢ ^ k') ^ 2 for k' = k + 1.