OctoInform Beta

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

Lemma 3.1: Variance of a sum of three row functions on independent uniform partitions is at most twice the sum of their variances

Variance bound for sums over three partition rows.

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

Let UU and WW be finite sets, each partitioned independently and uniformly at random into three ordered parts with prescribed cardinalities. When a real-valued observable is formed as the sum of three functions, with the ii-th function depending only on the ii-th parts of the two partitions, the three summands are coupled by the disjointness and size constraints on each partition. The problem is to bound the variance of this sum by a constant multiple of the sum of the variances of its three summands.

Partitions and uniform variance

For a finite set XX, a map ϕ:X→{1,2,3}\phi \colon X \to \{1, 2, 3\}, and an index i∈{1,2,3}i \in \{1, 2, 3\}, the ii-th row of ϕ\phi is the subset row⁡i(ϕ)={a∈X:ϕ(a)=i}.\operatorname{row}_i(\phi) = \{a \in X : \phi(a) = i\}.(1)✦ Given a triple of nonnegative integers p=(p1,p2,p3)∈ℕ3p = (p_1, p_2, p_3) \in \mathbb{N}^3, a three-part partition of XX with row sizes pp is a map ϕ:X→{1,2,3}\phi \colon X \to \{1, 2, 3\} whose rows (1) satisfy |row⁡i(ϕ)|=pi|\operatorname{row}_i(\phi)| = p_i for every i∈{1,2,3}i \in \{1, 2, 3\}.✦ Write 𝒫(X,p)\mathcal{P}(X, p) for the finite set of all three-part partitions of XX with row sizes pp.

For two finite sets UU and WW with prescribed row sizes p=(p1,p2,p3)p = (p_1, p_2, p_3) and q=(q1,q2,q3)q = (q_1, q_2, q_3) in ℕ3\mathbb{N}^3, the state space of partition pairs is the Cartesian product 𝒮(p,q)=𝒫(U,p)×𝒫(W,q),\mathcal{S}(p, q) = \mathcal{P}(U, p) \times \mathcal{P}(W, q),(2)✦ whose elements are pairs x=(ϕ,ψ)x = (\phi, \psi) with ϕ∈𝒫(U,p)\phi \in \mathcal{P}(U, p) and ψ∈𝒫(W,q)\psi \in \mathcal{P}(W, q).

For any function f:𝒮(p,q)→ℝf \colon \mathcal{S}(p, q) \to \mathbb{R} on the product space (2), its uniform expectation 𝔼[f]\mathbb{E}[f] is 𝔼[f]=1|𝒮(p,q)|∑x∈𝒮(p,q)f(x),\mathbb{E}[f] = \frac{1}{|\mathcal{S}(p, q)|} \sum_{x \in \mathcal{S}(p, q)} f(x),(3)✦ with the convention that 𝔼[f]=0\mathbb{E}[f] = 0 when 𝒮(p,q)\mathcal{S}(p, q) is empty. The corresponding uniform variance Var⁡(f)\operatorname{Var}(f) is Var⁡(f)=1|𝒮(p,q)|∑x∈𝒮(p,q)(f(x)−𝔼[f])2,\operatorname{Var}(f) = \frac{1}{|\mathcal{S}(p, q)|} \sum_{x \in \mathcal{S}(p, q)} \bigl(f(x) - \mathbb{E}[f]\bigr)^2,(4)✦ likewise taken to be 00 when 𝒮(p,q)\mathcal{S}(p, q) is empty.

The claim

Lemma 3.1. Let UU and WW be finite sets, and let p=(p1,p2,p3)p = (p_1, p_2, p_3) and q=(q1,q2,q3)q = (q_1, q_2, q_3) be triples of nonnegative integers such that the state space 𝒮(p,q)\mathcal{S}(p, q) is nonempty. Let g1,g2,g3g_1, g_2, g_3 be three functions assigning a real number gi(A,B)g_i(A, B) to each pair of subsets A⊆UA \subseteq U and B⊆WB \subseteq W. For each i∈{1,2,3}i \in \{1, 2, 3\}, define Gi:𝒮(p,q)→ℝG_i \colon \mathcal{S}(p, q) \to \mathbb{R} by Gi(ϕ,ψ)=gi(row⁡i(ϕ),row⁡i(ψ))G_i(\phi, \psi) = g_i(\operatorname{row}_i(\phi), \operatorname{row}_i(\psi)). Then Var⁡(∑i=13Gi)≤2∑i=13Var⁡(Gi).\operatorname{Var}\!\left(\sum_{i=1}^3 G_i\right) \le 2 \sum_{i=1}^3 \operatorname{Var}(G_i).(5)✦

What is checked

The Lean library states Lemma 3.1 as inequality (5) for any two finite sets UU and WW, any triples of nonnegative integers pp and qq with nonempty state space 𝒮(p,q)\mathcal{S}(p, q) of fixed-size three-part partition pairs, and any three real-valued functions g1,g2,g3g_1, g_2, g_3 on pairs of subsets of UU and WW, using the uniform expectation (3) and variance (4).