Documentation

CslibFrontier.Foundations.Data.Nat.Choose.Vandermonde

Products and sums of binomial coefficients #

Choosing D x of N x elements in each of several disjoint blocks chooses Σ D x of the Σ N x elements, so a product of binomial coefficients is at most the binomial coefficient of the sums (Nat.prod_choose_le_choose_sum, from Vandermonde's identity). Fewer selected elements are absorbed by stars and bars: C(N, D) ≤ C(N + K, K) for D ≤ K (Nat.choose_le_add_choose_of_le). Quantitatively, C(N + K, K) ≤ (3 R) ^ K when N + K ≤ R K (Nat.add_choose_le_three_mul_pow), from K ^ K ≤ 3 ^ K K!; this is the bound C(N + K, K) ≤ (e (N + K) / K) ^ K with e replaced by 3.

Main results #

theorem Nat.choose_le_choose_add_add (n k j : ℕ) :
n.choose k ≤ (n + j).choose (k + j)

C(n, k) ≤ C(n + j, k + j).

theorem Nat.choose_le_add_choose_of_le {N D K : ℕ} (hD : D ≤ K) :
N.choose D ≤ (N + K).choose K

Fewer selected elements: C(N, D) ≤ C(N + K, K) for D ≤ K.

theorem Nat.prod_choose_le_choose_sum {ι : Type u_1} (s : Finset ι) (N D : ι → ℕ) :
∏ x ∈ s, (N x).choose (D x) ≤ (∑ x ∈ s, N x).choose (∑ x ∈ s, D x)

Vandermonde's inequality: a product of binomial coefficients is at most the binomial coefficient of the sums.

theorem Nat.add_choose_le_three_mul_pow {N K R : ℕ} (hR : N + K ≤ R * K) :
(N + K).choose K ≤ (3 * R) ^ K

Stars and bars, quantitatively: if N + K ≤ R K, then C(N + K, K) ≤ (3 R) ^ K.