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:
- for every
θ > 0there are at mostexp (θ p + m π² / (6 θ))of them (Cslib.card_le_exp_of_sum_mul_lt); - taking
θ = √(m / p), there are at most2 ^ (4 ⌊√(m p)⌋ + 4)(Cslib.card_le_two_pow_of_sum_mul_lt).
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 #
Cslib.sum_neg_log_one_sub_exp_le:∑_{j ∈ s} -log (1 - e^{-θ j}) ≤ π² / (6 θ)for a finite setsof positive integers.Cslib.card_le_exp_of_sum_mul_lt: the generating-function bound on the number of tuples.Cslib.card_le_two_pow_of_sum_mul_lt: its natural-number form2 ^ (4 ⌊√(m p)⌋ + 4).
References #
- OpenAI, The Exponential Time Hypothesis is False, §D.4.5, the count (D.15) and the estimate following it (pp. 62–63).
The logarithm of the partition generating function. For θ > 0 and every finite set
s of positive integers, ∑_{j ∈ s} -log (1 - e^{-θ j}) ≤ π² / (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.
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).