Documentation

CslibFrontier.Foundations.Combinatorics.CompositionMomentLinear

Moments of products of linear forms over weak compositions #

The comparisons of CompositionMoment between the factorial moments of a uniform weak composition M of t into the parts S and those of independent geometric variables of mean G = t / r, r the number of parts, extend from one product of falling factorials to every product over the parts i of polynomials in M i with nonnegative coefficients in the basis of falling factorials OpenAI, §4. A polynomial ∑ d, γ d * (z)_d is compared with its geometric moment ∑ d, γ d * d! * G ^ d.

The two cases used for the trace moments of iterated matrix multiplication are a linear form a * z + b in every part, with geometric moment a * G + b, and a product of two linear forms (a₁ * z + b₁) * (a₂ * z + b₂), with geometric moment (a₁ * G + b₁) * (a₂ * G + b₂) + a₁ * a₂ * (G ^ 2 + G).

Main results #

References #

theorem Finset.sum_finsuppAntidiag_prod_sum_descFactorial_le {ι : Type u_1} [DecidableEq ι] {S : Finset ι} (hS : S.Nonempty) (t D : ℕ) (γ : ι → ℕ → ℕ) :
↑(∑ M ∈ S.finsuppAntidiag t, ∏ i ∈ S, ∑ d ∈ range D, γ i d * (M i).descFactorial d) ≤ ↑(S.card.multichoose t) * ∏ i ∈ S, ∑ d ∈ range D, ↑(γ i d) * (↑d.factorial * (↑t / ↑S.card) ^ d)

Upper comparison. For polynomials with nonnegative coefficients γ i in the basis of falling factorials, the sum over the weak compositions M of t of the product of their values at M i is at most the number of compositions times the product of their geometric moments.

theorem Finset.le_sum_finsuppAntidiag_prod_sum_descFactorial {ι : Type u_1} [DecidableEq ι] {S : Finset ι} (hS : S.Nonempty) (t D : ℕ) (γ : ι → ℕ → ℕ) (e : ι → ℕ) (hγ : ∀ i ∈ S, ∀ (d : ℕ), e i < d → γ i d = 0) (h : 2 * ∑ i ∈ S, e i ≤ t) :
Real.exp (-(↑(∑ i ∈ S, e i) ^ 2 / ↑t) - ↑(∑ i ∈ S, e i) ^ 2 / (2 * ↑S.card)) * (↑(S.card.multichoose t) * ∏ i ∈ S, ∑ d ∈ range D, ↑(γ i d) * (↑d.factorial * (↑t / ↑S.card) ^ d)) ≤ ↑(∑ M ∈ S.finsuppAntidiag t, ∏ i ∈ S, ∑ d ∈ range D, γ i d * (M i).descFactorial d)

Lower comparison. If the polynomial of the part i has degree at most e i in the basis of falling factorials and H = ∑ i ∈ S, e i is at most t / 2, then the sum of the upper comparison is at least exp (-(H ^ 2 / t) - H ^ 2 / (2 * r)) times its bound.

theorem Finset.le_sum_finsuppAntidiag_prod_linear {ι : Type u_1} [DecidableEq ι] {S : Finset ι} (hS : S.Nonempty) (t : ℕ) (a b : ι → ℕ) (h : 2 * {i ∈ S | a i ≠ 0}.card ≤ t) :
Real.exp (-(↑{i ∈ S | a i ≠ 0}.card ^ 2 / ↑t) - ↑{i ∈ S | a i ≠ 0}.card ^ 2 / (2 * ↑S.card)) * (↑(S.card.multichoose t) * ∏ i ∈ S, (↑(a i) * (↑t / ↑S.card) + ↑(b i))) ≤ ↑(∑ M ∈ S.finsuppAntidiag t, ∏ i ∈ S, (a i * M i + b i))

Lower comparison for linear forms. If at most t / 2 of the linear forms a i * z + b i are not constant, the sum over the weak compositions M of t of ∏ i ∈ S, (a i * M i + b i) is at least exp (-(c ^ 2 / t) - c ^ 2 / (2 * r)) times the number of compositions times ∏ i ∈ S, (a i * (t / r) + b i), where c is the number of nonconstant forms.

theorem Finset.sum_finsuppAntidiag_prod_linear_mul_linear_le {ι : Type u_1} [DecidableEq ι] {S : Finset ι} (hS : S.Nonempty) (t : ℕ) (a₁ b₁ a₂ b₂ : ι → ℕ) :
↑(∑ M ∈ S.finsuppAntidiag t, ∏ i ∈ S, (a₁ i * M i + b₁ i) * (a₂ i * M i + b₂ i)) ≤ ↑(S.card.multichoose t) * ∏ i ∈ S, ((↑(a₁ i) * (↑t / ↑S.card) + ↑(b₁ i)) * (↑(a₂ i) * (↑t / ↑S.card) + ↑(b₂ i)) + ↑(a₁ i) * ↑(a₂ i) * ((↑t / ↑S.card) ^ 2 + ↑t / ↑S.card))

Upper comparison for products of two linear forms. The sum over the weak compositions M of t of ∏ i ∈ S, (a₁ i * M i + b₁ i) * (a₂ i * M i + b₂ i) is at most the number of compositions times the product of the geometric moments (a₁ i * G + b₁ i) * (a₂ i * G + b₂ i) + a₁ i * a₂ i * (G ^ 2 + G), where G = t / r.