OctoInform Beta

OpenAI preprint, September 2026 · §3. A variance inequality for three rows

Lemma 3.2: Under factorial product weights on triples summing to mm, the variance of ∑i=13bi(xi)\sum_{i=1}^3 b_i(x_i) is at most 2∑i=13Var⁡(bi(xi))2 \sum_{i=1}^3 \operatorname{Var}(b_i(x_i))

Variance inequality for additive functions of three weighted counts.

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

For three arbitrary real-valued random variables, the Cauchy-Schwarz inequality bounds the variance of their sum by three times the sum of their individual variances. When the variables are functions of the three coordinates of a random nonnegative integer triple (x1,x2,x3)(x_1, x_2, x_3) constrained to a fixed total mm, the sum constraint couples the coordinates and can yield a tighter factor. Lemma 3.2 establishes the factor 22 for arbitrary real-valued coordinate functions b1,b2,b3b_1, b_2, b_3 whenever the triple is distributed according to a factorial product weight on the triples summing to mm.

The weighted triple distribution

For a nonnegative integer mm, let 𝒯m\mathcal{T}_m be the finite set of triples x=(x1,x2,x3)x = (x_1, x_2, x_3) with coordinates in {0,1,…,m}\{0, 1, \ldots, m\} that sum to mm: 𝒯m={(x1,x2,x3)∈{0,1,…,m}3:x1+x2+x3=m}.\mathcal{T}_m = \bigl\{ (x_1, x_2, x_3) \in \{0, 1, \ldots, m\}^3 : x_1 + x_2 + x_3 = m \bigr\}.(1)✦

For nonnegative integers α\alpha and tt, the coordinate weight wα(t)w_\alpha(t) is the positive real number wα(t)=1t!(t+α)!.w_\alpha(t) = \frac{1}{t!\,(t + \alpha)!}.(2)✦

Fix a triple of nonnegative integer parameters α=(α1,α2,α3)\alpha = (\alpha_1, \alpha_2, \alpha_3). The triple weight w(x)w(x) of x=(x1,x2,x3)∈𝒯mx = (x_1, x_2, x_3) \in \mathcal{T}_m is the product of its coordinate weights, w(x)=∏i=13wαi(xi).w(x) = \prod_{i=1}^3 w_{\alpha_i}(x_i).(3)✦

The total weight ZmZ_m is the sum of the triple weights over 𝒯m\mathcal{T}_m, and the triple probability p(x)p(x) of x∈𝒯mx \in \mathcal{T}_m is the ratio of w(x)w(x) to ZmZ_m: Zm=∑x∈𝒯mw(x),p(x)=w(x)Zm.\begin{aligned} Z_m &= \sum_{x \in \mathcal{T}_m} w(x), \\ p(x) &= \frac{w(x)}{Z_m}. \end{aligned}(4)

For any real-valued function f:𝒯m→ℝf : \mathcal{T}_m \to \mathbb{R}, its expectation 𝔼[f]\mathbb{E}[f] and variance Var⁡(f)\operatorname{Var}(f) under pp are defined by 𝔼[f]=∑x∈𝒯mp(x)f(x),Var⁡(f)=𝔼[(f−𝔼[f])2].\begin{aligned} \mathbb{E}[f] &= \sum_{x \in \mathcal{T}_m} p(x)\,f(x), \\ \operatorname{Var}(f) &= \mathbb{E}\bigl[(f - \mathbb{E}[f])^2\bigr]. \end{aligned}(5) For a function b:{0,1,…,m}→ℝb : \{0, 1, \ldots, m\} \to \mathbb{R} and a coordinate i∈{1,2,3}i \in \{1, 2, 3\}, we write b(xi)b(x_i) for the function x↦b(xi)x \mapsto b(x_i) on 𝒯m\mathcal{T}_m.

The claim

Lemma 3.2. Let mm be a nonnegative integer, let α=(α1,α2,α3)\alpha = (\alpha_1, \alpha_2, \alpha_3) be a triple of nonnegative integers, and let b1,b2,b3:{0,1,…,m}→ℝb_1, b_2, b_3 : \{0, 1, \ldots, m\} \to \mathbb{R} be arbitrary functions. Under the triple probability pp on 𝒯m\mathcal{T}_m with parameters α\alpha, Var⁡(∑i=13bi(xi))≤2∑i=13Var⁡(bi(xi)).\operatorname{Var}\Bigl(\sum_{i=1}^3 b_i(x_i)\Bigr) \le 2 \sum_{i=1}^3 \operatorname{Var}\bigl(b_i(x_i)\bigr).(6)✦

What is checked

The Lean library states the variance inequality (6) over the finite set 𝒯m\mathcal{T}_m of triples in {0,1,…,m}3\{0, 1, \ldots, m\}^3 summing to mm, equipped with the coordinate weights wαiw_{\alpha_i}, the triple weight ww, the total weight ZmZ_m, the triple probability pp, and the resulting finite-sum expectation 𝔼\mathbb{E} and variance Var\operatorname{Var}, for arbitrary nonnegative integers m,α1,α2,α3m, \alpha_1, \alpha_2, \alpha_3 and arbitrary real-valued functions b1,b2,b3b_1, b_2, b_3 on {0,1,…,m}\{0, 1, \ldots, m\}.