OctoInform Beta

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

Lemma 3.3: The uniform variance of a sum of three row functions is at most twice the sum of their variances

Variance bound for three-row binary matrices with fixed margins.

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

When a three-row binary matrix is drawn uniformly at random subject to fixed row and column sums, its three rows are coupled through the column constraints. By the Cauchy-Schwarz inequality, the variance of a sum of three random variables is at most three times the sum of their variances. For functions of the individual rows of a fixed-margin three-row binary matrix, the coupling between rows improves this constant from 33 to 22.

Let CC be a finite set of column indices, let k:C→ℤ≥0k : C \to \mathbb{Z}_{\ge 0} specify the prescribed column sums, and let r=(r1,r2,r3)∈ℤ≥03r = (r_1, r_2, r_3) \in \mathbb{Z}_{\ge 0}^3 specify the prescribed row sums. The set ℳ(k,r)\mathcal{M}(k, r) of three-row binary matrices with margins (k,r)(k, r) consists of all arrays M∈{0,1}{1,2,3}×CM \in \{0, 1\}^{\{1, 2, 3\} \times C} satisfying ∑c∈CMi,c=rifor all i∈{1,2,3},∑i=13Mi,c=k(c)for all c∈C.\begin{aligned} \sum_{c \in C} M_{i, c} &= r_i \quad \text{for all } i \in \{1, 2, 3\}, \\ \sum_{i=1}^{3} M_{i, c} &= k(c) \quad \text{for all } c \in C. \end{aligned}(1)✦ For each M∈ℳ(k,r)M \in \mathcal{M}(k, r) and i∈{1,2,3}i \in \{1, 2, 3\}, write Mi∈{0,1}CM_i \in \{0, 1\}^C for row ii of MM.

For any finite set XX and any function f:X→ℝf : X \to \mathbb{R}, the uniform expectation 𝔼[f]\mathbb{E}[f] is the average of ff over XX, 𝔼[f]=1|X|∑x∈Xf(x),\mathbb{E}[f] = \frac{1}{|X|} \sum_{x \in X} f(x),(2)✦ taken to be 00 when XX is empty. The uniform variance Var⁡(f)\operatorname{Var}(f) of ff is Var⁡(f)=𝔼[(f−𝔼[f])2].\operatorname{Var}(f) = \mathbb{E}\bigl[(f - \mathbb{E}[f])^2\bigr].(3)✦

The claim

Lemma 3.3. Let CC be a finite set, let k:C→ℤ≥0k : C \to \mathbb{Z}_{\ge 0}, and let r=(r1,r2,r3)∈ℤ≥03r = (r_1, r_2, r_3) \in \mathbb{Z}_{\ge 0}^3 be such that the set ℳ(k,r)\mathcal{M}(k, r) is nonempty. Suppose that f1,f2,f3:ℳ(k,r)→ℝf_1, f_2, f_3 : \mathcal{M}(k, r) \to \mathbb{R} are functions such that each fif_i depends only on row ii, meaning that fi(M)=fi(N)f_i(M) = f_i(N) whenever M,N∈ℳ(k,r)M, N \in \mathcal{M}(k, r) satisfy Mi=NiM_i = N_i. Then, with respect to the uniform variance on ℳ(k,r)\mathcal{M}(k, r), Var⁡(∑i=13fi)≤2∑i=13Var⁡(fi).\operatorname{Var}\Bigl(\sum_{i=1}^{3} f_i\Bigr) \le 2 \sum_{i=1}^{3} \operatorname{Var}(f_i).(4)✦

What is checked

The Lean library states Lemma 3.3 over the nonempty finite set ℳ(k,r)\mathcal{M}(k, r) of three-row binary matrices with prescribed row sums rr and column sums kk defined in (1), equipped with the uniform expectation (2) and uniform variance (3), for any three real-valued functions f1,f2,f3f_1, f_2, f_3 on ℳ(k,r)\mathcal{M}(k, r) each depending only on its corresponding row.