Documentation

CslibFrontier.Foundations.Combinatorics.WeightBudget

Counting tuples of bounded weight #

Give each coordinate i of a tuple β : ι → ℕ a positive weight w i, with at most m coordinates of each weight. This file bounds the number of tuples of total weight ∑ i, w i * β i < p by the partition generating function:

This is the count (D.15) of the exponent tuples of the modes in the proof of the Boolean tensor contraction theorem of [OAI26k] (§D.4.5, pp. 62–63), where the modes play the coordinates and their weights are their divisibility exponents.

The proof. Put x = e^{-θ}. Every tuple of weight below p has x ^ (weight) ≥ x ^ p, and the sum of x ^ (weight) over all tuples is at most the generating product ∏ i, (1 - x ^ w i)⁻¹. Its logarithm is ∑ i, -log (1 - x ^ w i), which is at most m times the sum of -log (1 - e^{-θ j}) over the distinct weights j. Expanding the logarithm and summing the geometric series bounds that sum (Cslib.sum_neg_log_one_sub_exp_le):

∑_{j ≥ 1} -log (1 - e^{-θ j}) = ∑_{h ≥ 1} 1 / (h (e^{θ h} - 1)) ≤ (1 / θ) ∑_{h ≥ 1} 1 / h² = π² / (6 θ),

using e^y - 1 ≥ y and ∑ 1 / h² = π² / 6 (hasSum_zeta_two).

Main results #

References #

theorem Cslib.sum_neg_log_one_sub_exp_le {θ : ℝ} (hθ : 0 < θ) (s : Finset ℕ) (hs : 0 ∉ s) :
∑ j ∈ s, -Real.log (1 - Real.exp (-(θ * ↑j))) ≤ Real.pi ^ 2 / (6 * θ)

The logarithm of the partition generating function. For θ > 0 and every finite set s of positive integers, ∑_{j ∈ s} -log (1 - e^{-θ j}) ≤ π² / (6 θ).

theorem Cslib.card_le_exp_of_sum_mul_lt {ι : Type u_1} [Fintype ι] {w : ι → ℕ} (hw : ∀ (i : ι), 0 < w i) {m : ℕ} (hm : ∀ (j : ℕ), {i : ι | w i = j}.card ≤ m) {p : ℕ} {S : Finset (ι → ℕ)} (hS : ∀ β ∈ S, ∑ i : ι, w i * β i < p) {θ : ℝ} (hθ : 0 < θ) :
↑S.card ≤ Real.exp (θ * ↑p + ↑m * (Real.pi ^ 2 / (6 * θ)))

Counting tuples of bounded weight by the generating function. Let every coordinate have a positive weight, with at most m coordinates of each weight. Then for every θ > 0 there are at most exp (θ p + m π² / (6 θ)) tuples of total weight below p.

theorem Cslib.card_le_two_pow_of_sum_mul_lt {ι : Type u_1} [Fintype ι] {w : ι → ℕ} (hw : ∀ (i : ι), 0 < w i) {m : ℕ} (hm : ∀ (j : ℕ), {i : ι | w i = j}.card ≤ m) {p : ℕ} {S : Finset (ι → ℕ)} (hS : ∀ β ∈ S, ∑ i : ι, w i * β i < p) :
S.card ≤ 2 ^ (4 * (m * p).sqrt + 4)

Counting tuples of bounded weight, natural-number form. Let every coordinate have a positive weight, with at most m coordinates of each weight. Then there are at most 2 ^ (4 ⌊√(m p)⌋ + 4) tuples of total weight below p: the generating-function bound at θ = √(m / p).