Documentation

CslibFrontier.Foundations.Data.Nat.Choose.Sum

Polynomial bounds on partial binomial sums #

∑_{i ≤ d} n ^ i ≤ (n + 1) ^ d (Cslib.sum_range_pow_le_add_one_pow), hence ∑_{i ≤ d} (n choose i) ≤ (n + 1) ^ d (Cslib.sum_range_choose_le_add_one_pow). The second bound counts the subsets of at most d of n points, as in Sauer's lemma and in low-degree polynomial dimension counts. Cslib.sum_choose_le_exp_one_mul_div_pow gives the sharper (e n / d) ^ d. Weighting by a ^ ℓ bounds the volume of a Hamming ball of radius r: (∑_{j ≤ r} C(ℓ, j)) * a ^ ℓ ≤ a ^ r * (a + 1) ^ ℓ (Cslib.sum_range_choose_mul_pow_le).

Main results #

theorem Cslib.sum_range_pow_le_add_one_pow (n d : ℕ) :
∑ i ∈ Finset.range (d + 1), n ^ i ≤ (n + 1) ^ d

∑_{i ≤ d} n ^ i ≤ (n + 1) ^ d.

theorem Cslib.sum_range_choose_le_add_one_pow (n d : ℕ) :
∑ i ∈ Finset.range (d + 1), n.choose i ≤ (n + 1) ^ d

∑_{i ≤ d} (n choose i) ≤ (n + 1) ^ d.

theorem Cslib.sum_range_choose_mul_pow_le (a ℓ r : ℕ) (ha : 1 ≤ a := by omega) :
(∑ j ∈ Finset.range (r + 1), ℓ.choose j) * a ^ ℓ ≤ a ^ r * (a + 1) ^ ℓ

A binomial estimate for the volume of a Hamming ball: (∑_{j ≤ r} C(ℓ, j)) * a ^ ℓ ≤ a ^ r * (a + 1) ^ ℓ for 1 ≤ a, obtained from the binomial expansion of (1 + a) ^ ℓ.