OctoInform Beta

OpenAI preprint, September 2026 · §4. Trace moments for iterated matrix multiplication

Lemma 4.2: Exact upper bounds and exponential-loss lower bounds for nonnegative falling-factorial expansions in single-group and two-group forms

Comparing weak-composition averages with independent geometric moments.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

In homogeneous depth-five lower bounds for iterated matrix multiplication IMMn,n\mathrm{IMM}_{n,n}, trace-moment estimates for differentiation-multiplication operators act on the tensor product HV(a)⊗HU(b)H_V(a) \otimes H_U(b) of homogeneous polynomial spaces of degrees aa and bb in the vv derivative variables VV and uu multiplication variables UU. Computing such moments leads to averaging functions of monomial exponent vectors over all weak compositions of a fixed degree. Because the fixed-degree constraint couples the coordinates of a weak composition, it is convenient to compare these averages with the corresponding moments of independent geometric random variables, whose expectations factorize across coordinates. Lemma 4.2 supplies both an exact upper bound and an exponential-loss lower bound for functions admitting nonnegative falling-factorial expansions, in single-group and two-group forms.

Falling-factorial expansions

Let ℕ={0,1,2,…}\mathbb{N} = \{0, 1, 2, \dots\}. For z,k∈ℕz, k \in \mathbb{N}, the kk-th falling factorial is (z)k=∏r=0k−1(z−r)(z)_k = \prod_{r=0}^{k-1} (z - r), with the empty product (z)0=1(z)_0 = 1 and (z)k=0(z)_k = 0 whenever k>zk > z. For a finite set σ\sigma and functions d,M:σ→ℕd, M : \sigma \to \mathbb{N}, the falling-factorial monomial Φd(M)∈ℕ\Phi_d(M) \in \mathbb{N} is defined by (1): Φd(M)=∏i∈σ(M(i))d(i).\Phi_d(M) = \prod_{i \in \sigma} (M(i))_{d(i)}.(1)✦

For a finite set σ\sigma, a function f:ℕσ→ℕf : \mathbb{N}^\sigma \to \mathbb{N}, a subset S⊆σS \subseteq \sigma, and an integer H0∈ℕH_0 \in \mathbb{N}, a nonnegative factorial expansion FF of ff supported on SS of order at most H0H_0 consists of a finite index set JJ, coefficients c:J→ℕc : J \to \mathbb{N}, and exponent vectors d:J→ℕσd : J \to \mathbb{N}^\sigma such that ∑i∈σdj(i)≤H0\sum_{i \in \sigma} d_j(i) \le H_0 for every j∈Jj \in J, dj(i)=0d_j(i) = 0 for every j∈Jj \in J and every i∈σ\Si \in \sigma \setminus S, and ff satisfies (2) for every M∈ℕσM \in \mathbb{N}^\sigma: f(M)=∑j∈JcjΦdj(M).f(M) = \sum_{j \in J} c_j \Phi_{d_j}(M).(2)✦

Uniform and geometric means

For a finite set σ\sigma and t∈ℕt \in \mathbb{N}, let 𝒞(σ,t)={M∈ℕσ:∑i∈σM(i)=t}\mathcal{C}(\sigma, t) = \{ M \in \mathbb{N}^\sigma : \sum_{i \in \sigma} M(i) = t \} be the finite set of weak compositions of tt into parts indexed by σ\sigma. For a function f:ℕσ→ℕf : \mathbb{N}^\sigma \to \mathbb{N}, the uniform composition mean μ(f;t)∈ℝ\mu(f; t) \in \mathbb{R} is the arithmetic average of ff over 𝒞(σ,t)\mathcal{C}(\sigma, t), given by (3) (taking the value 00 if 𝒞(σ,t)\mathcal{C}(\sigma, t) is empty, which occurs only when σ\sigma is empty and t>0t > 0): μ(f;t)=1|𝒞(σ,t)|∑M∈𝒞(σ,t)f(M).\mu(f; t) = \frac{1}{|\mathcal{C}(\sigma, t)|} \sum_{M \in \mathcal{C}(\sigma, t)} f(M).(3)✦

A uniformly chosen basis monomial of HV(a)⊗HU(b)H_V(a) \otimes H_U(b) has independent exponent vectors distributed uniformly over weak compositions of aa into vv parts and of bb into uu parts. For finite sets ι\iota and κ\kappa, write (M,N)∈ℕι⊔κ(M, N) \in \mathbb{N}^{\iota \sqcup \kappa} for the combined vector agreeing with M∈ℕιM \in \mathbb{N}^\iota on ι\iota and with N∈ℕκN \in \mathbb{N}^\kappa on κ\kappa. For a function f:ℕι⊔κ→ℕf : \mathbb{N}^{\iota \sqcup \kappa} \to \mathbb{N} and a,b∈ℕa, b \in \mathbb{N}, the two-group uniform mean μ2(f;a,b)∈ℝ\mu_2(f; a, b) \in \mathbb{R} is given by (4) (again taking the value 00 if either 𝒞(ι,a)\mathcal{C}(\iota, a) or 𝒞(κ,b)\mathcal{C}(\kappa, b) is empty): μ2(f;a,b)=1|𝒞(ι,a)|∑M∈𝒞(ι,a)1|𝒞(κ,b)|∑N∈𝒞(κ,b)f(M,N).\mu_2(f; a, b) = \frac{1}{|\mathcal{C}(\iota, a)|} \sum_{M \in \mathcal{C}(\iota, a)} \frac{1}{|\mathcal{C}(\kappa, b)|} \sum_{N \in \mathcal{C}(\kappa, b)} f(M, N).(4)✦

This sum records the expectation of a falling-factorial expansion under independent geometric random variables on the nonnegative integers with a common mean. For a finite set σ\sigma, a finite subset ss of an index set JJ, real coefficients c:J→ℝc : J \to \mathbb{R}, exponent vectors d:J→ℕσd : J \to \mathbb{N}^\sigma, and a real parameter G∈ℝG \in \mathbb{R}, the product-geometric expansion value Γ(s,c,d;G)∈ℝ\Gamma(s, c, d; G) \in \mathbb{R} is defined by (5), with G0=1G^0 = 1 for every G∈ℝG \in \mathbb{R}: Γ(s,c,d;G)=∑j∈scj(∏i∈σdj(i)!)G∑i∈σdj(i).\Gamma(s, c, d; G) = \sum_{j \in s} c_j \left(\prod_{i \in \sigma} d_j(i)!\right) G^{\sum_{i \in \sigma} d_j(i)}.(5)✦ Given a nonnegative factorial expansion F=(J,c,d)F = (J, c, d) of f:ℕσ→ℕf : \mathbb{N}^\sigma \to \mathbb{N} and G∈ℝG \in \mathbb{R}, the expansion geometric mean γ(F;G)∈ℝ\gamma(F; G) \in \mathbb{R} is Γ(J,c,d;G)\Gamma(J, c, d; G), with the coefficients cjc_j viewed as real numbers.✦

For finite sets ι\iota and κ\kappa, a finite subset ss of an index set JJ, real coefficients c:J→ℝc : J \to \mathbb{R}, exponent vectors d:J→ℕιd : J \to \mathbb{N}^\iota and e:J→ℕκe : J \to \mathbb{N}^\kappa, and real parameters A,B∈ℝA, B \in \mathbb{R}, the two-group geometric expansion value Γ2(s,c,d,e;A,B)∈ℝ\Gamma_2(s, c, d, e; A, B) \in \mathbb{R} is defined by (6): Γ2(s,c,d,e;A,B)=∑j∈scj(∏i∈ιdj(i)!)(∏k∈κej(k)!)A∑i∈ιdj(i)B∑k∈κej(k).\Gamma_2(s, c, d, e; A, B) = \sum_{j \in s} c_j \left(\prod_{i \in \iota} d_j(i)!\right) \left(\prod_{k \in \kappa} e_j(k)!\right) A^{\sum_{i \in \iota} d_j(i)} B^{\sum_{k \in \kappa} e_j(k)}.(6)✦ Given a nonnegative factorial expansion F=(J,c,d)F = (J, c, d) of f:ℕι⊔κ→ℕf : \mathbb{N}^{\iota \sqcup \kappa} \to \mathbb{N} and A,B∈ℝA, B \in \mathbb{R}, the two-group geometric mean γ2(F;A,B)∈ℝ\gamma_2(F; A, B) \in \mathbb{R} is Γ2(J,c,d|ι,d|κ;A,B)\Gamma_2(J, c, d|_{\iota}, d|_{\kappa}; A, B), where d|ιd|_{\iota} and d|κd|_{\kappa} are the restrictions of the exponent vectors djd_j to ι\iota and κ\kappa, respectively.✦

The claim

Lemma 4.2. Let σ\sigma be a nonempty finite set, f:ℕσ→ℕf : \mathbb{N}^\sigma \to \mathbb{N}, S⊆σS \subseteq \sigma, H0∈ℕH_0 \in \mathbb{N}, and FF a nonnegative factorial expansion of ff supported on SS of order at most H0H_0. For every t∈ℕt \in \mathbb{N}, μ(f;t)≤γ(F;t|σ|).\mu(f; t) \le \gamma\left(F; \frac{t}{|\sigma|}\right).(7)✦ If in addition t>0t > 0 and 2H0≤t2 H_0 \le t, then exp⁡(−H02t−H022|σ|)γ(F;t|σ|)≤μ(f;t).\exp\left(-\frac{H_0^2}{t} - \frac{H_0^2}{2|\sigma|}\right) \gamma\left(F; \frac{t}{|\sigma|}\right) \le \mu(f; t).(8)✦

Let ι\iota and κ\kappa be nonempty finite sets, f:ℕι⊔κ→ℕf : \mathbb{N}^{\iota \sqcup \kappa} \to \mathbb{N}, S⊆ι⊔κS \subseteq \iota \sqcup \kappa, H0∈ℕH_0 \in \mathbb{N}, and FF a nonnegative factorial expansion of ff supported on SS of order at most H0H_0. For all a,b∈ℕa, b \in \mathbb{N}, μ2(f;a,b)≤γ2(F;a|ι|,b|κ|).\mu_2(f; a, b) \le \gamma_2\left(F; \frac{a}{|\iota|}, \frac{b}{|\kappa|}\right).(9)✦ If in addition a>0a > 0, b>0b > 0, 2H0≤a2 H_0 \le a, and 2H0≤b2 H_0 \le b, then exp⁡(−H02a−H022|ι|−H02b−H022|κ|)γ2(F;a|ι|,b|κ|)≤μ2(f;a,b).\exp\left(-\frac{H_0^2}{a} - \frac{H_0^2}{2|\iota|} - \frac{H_0^2}{b} - \frac{H_0^2}{2|\kappa|}\right) \gamma_2\left(F; \frac{a}{|\iota|}, \frac{b}{|\kappa|}\right) \le \mu_2(f; a, b).(10)✦

In the paper, the result reads: for a uniform random weak composition M=(M1,…,Mr)M = (M_1, \dots, M_r) of t∈ℕt \in \mathbb{N} into r≥1r \ge 1 parts and independent geometric random variables Z=(Z1,…,Zr)Z = (Z_1, \dots, Z_r) on ℕ\mathbb{N} of mean t/rt/r, any polynomial PP with nonnegative coefficients in the falling-factorial monomial basis satisfies 𝔼[P(M)]≤𝔼[P(Z)]\mathbb{E}[P(M)] \le \mathbb{E}[P(Z)], and when t>0t > 0 and all terms have total order at most H0≤t/2H_0 \le t/2, also 𝔼[P(M)]≥exp⁡(−H02/t−H02/(2r))𝔼[P(Z)]\mathbb{E}[P(M)] \ge \exp(-H_0^2/t - H_0^2/(2r))\,\mathbb{E}[P(Z)], where r=|σ|r = |\sigma| and 𝔼[P(M)]\mathbb{E}[P(M)] and 𝔼[P(Z)]\mathbb{E}[P(Z)] correspond to μ(f;t)\mu(f; t) and γ(F;t/|σ|)\gamma(F; t/|\sigma|). The Lean library states these comparisons algebraically via finite averages and explicit expansion sums without probability spaces, in both single-group and two-group forms.

What is checked

The Lean library states the four bounds (7), (8), (9), and (10) of Lemma 4.2 over nonnegative factorial expansions of functions on finite index sets σ\sigma or disjoint unions ι⊔κ\iota \sqcup \kappa, assuming nonemptiness of the index sets throughout and the positivity and order conditions 2H0≤t2 H_0 \le t (or 2H0≤a2 H_0 \le a and 2H0≤b2 H_0 \le b) for the lower bounds.