Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Poincar\'e inequality on the Boolean cube: 4Var⁡[p]≤∑iInf⁡i[p]4\operatorname{Var}[p]\le\sum_i\operatorname{Inf}_i[p]4Var[p]≤∑i​Infi​[p]

Proved
AaronsonAmbainis.poincare_four_mul_cubeVar_le_sum_cubeInfl

by Goku · Sep 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

boolean_cube_combinatoricsboolean_function_complexity

The Poincare inequality on the Boolean cube, in the influence normalisation used by Aaronson and Ambainis.

Let ppp be a real polynomial in NNN variables, regarded as a function on {0,1}N\{0,1\}^N{0,1}N under the uniform distribution, and let Var⁡[p]\operatorname{Var}[p]Var[p] and Inf⁡i[p]=E[(p(x)−p(x⊕i))2]\operatorname{Inf}_i[p]=\mathbb{E}\big[(p(x)-p(x^{\oplus i}))^2\big]Infi​[p]=E[(p(x)−p(x⊕i))2] be as in the imported definitions. Then

4Var⁡[p]  ≤  ∑i=1NInf⁡i[p].4\operatorname{Var}[p]\;\le\;\sum_{i=1}^{N}\operatorname{Inf}_i[p].4Var[p]≤i=1∑N​Infi​[p].

The inequality holds for every function on the cube; no bound on the degree of ppp is needed. It is the elementary lower bound against which the Aaronson--Ambainis conjecture is measured: it yields a coordinate of influence at least 4Var⁡[p]/N4\operatorname{Var}[p]/N4Var[p]/N, which degrades with the number of variables, whereas the conjecture asks for a bound depending only on the variance and the degree.

The constant 444 is sharp. Equality holds for the dictator p(x)=x1p(x)=x_1p(x)=x1​, where Var⁡[p]=1/4\operatorname{Var}[p]=1/4Var[p]=1/4 and the influence sum equals 111.

Formalization Note The factor 444 reflects a difference of convention rather than of content. O'Donnell defines the discrete derivative as Dip(x)=12(p(xi↦1)−p(xi↦−1))D_ip(x)=\tfrac12\big(p(x^{i\mapsto1})-p(x^{i\mapsto-1})\big)Di​p(x)=21​(p(xi↦1)−p(xi↦−1)) and the influence as E[(Dip)2]\mathbb{E}[(D_ip)^2]E[(Di​p)2], so his influence is one quarter of the quantity used here; his statement Var⁡[p]≤I[p]\operatorname{Var}[p]\le I[p]Var[p]≤I[p] is therefore the inequality above. The source works over {−1,1}N\{-1,1\}^N{−1,1}N, but both variance and influence as defined here depend only on the values of ppp at cube points and on the bit-flip involution, so they are unchanged by the affine relabelling between {0,1}N\{0,1\}^N{0,1}N and {−1,1}N\{-1,1\}^N{−1,1}N.

Preamble
import Definitions.Def_AaronsonAmbainis
Formal statement
namespace AaronsonAmbainis

theorem poincare_four_mul_cubeVar_le_sum_cubeInfl (N : ℕ) (p : MvPolynomial (Fin N) ℝ) :
    4 * cubeVar p ≤ ∑ i : Fin N, cubeInfl p i := by sorry

end AaronsonAmbainis
Source
O'Donnell, Analysis of Boolean Functions, Cambridge Univ. Press 2014; corrected version arXiv:2105.10386, Chapter 2 (Basic concepts and social choice), the "Poincare Inequality" (named, unnumbered display, p. 52 of the arXiv PDF), stated as Var[f] <= I[f]; with Inf_i and I[f] as in Definitions 2.17 and 2.27 and D_i as in Definition 2.16. The factor 4 here converts O'Donnell's normalisation to the influence Inf_i[p] = E[(p(x) - p(x^{+i}))^2] used by Aaronson & Ambainis, arXiv:0911.0996.
Read-back

What the Lean code literally says, in plain math · claude-opus-5

Read-back — AaronsonAmbainis.poincare_four_mul_cubeVar_le_sum_cubeInfl

Fix a natural number NNN (explicitly quantified, with no positivity assumption, so N=0N = 0N=0 is included) and an arbitrary multivariate polynomial p∈R[X0,…,XN−1]p \in \mathbb{R}[X_0,\dots,X_{N-1}]p∈R[X0​,…,XN−1​] in NNN real variables indexed by {0,…,N−1}\{0,\dots,N-1\}{0,…,N−1}. No hypothesis whatsoever is placed on ppp — in particular there is no bound on its degree, no restriction to multilinear polynomials, no normalisation of its coefficients or of its values, and no assumption that p≠0p \neq 0p=0.

All quantities below are defined purely through the values of ppp at the 2N2^N2N points of the {0,1}\{0,1\}{0,1}-cube (not the {−1,+1}\{-1,+1\}{−1,+1}-cube). Concretely, for a Boolean assignment x∈{false,true}Nx \in \{\text{false},\text{true}\}^Nx∈{false,true}N let τ(x)∈RN\tau(x) \in \mathbb{R}^Nτ(x)∈RN be the real point with τ(x)i=1\tau(x)_i = 1τ(x)i​=1 if xix_ixi​ is true and τ(x)i=0\tau(x)_i = 0τ(x)i​=0 otherwise, and set

P(x):=p(τ(x))∈R.P(x) := p\big(\tau(x)\big) \in \mathbb{R}.P(x):=p(τ(x))∈R.

Thus ppp enters the statement only via the function P:{0,1}N→RP : \{0,1\}^N \to \mathbb{R}P:{0,1}N→R it induces on the cube's vertices; two different polynomials agreeing on {0,1}N\{0,1\}^N{0,1}N give literally the same statement.

Expectation is the uniform average over all 2N2^N2N Boolean assignments, with the explicit normalising factor (2N)−1(2^N)^{-1}(2N)−1 (the natural number 2N2^N2N being cast to a real, hence never zero):

E[f]:=12N∑x∈{0,1}Nf(x).\mathbb{E}[f] := \frac{1}{2^N}\sum_{x \in \{0,1\}^N} f(x).E[f]:=2N1​x∈{0,1}N∑​f(x).

Two derived quantities are used:

  • the variance
V(p):=E[(P(x)−E[P])2]=12N∑x(P(x)−12N∑yP(y))2;V(p) := \mathbb{E}\Big[\big(P(x) - \mathbb{E}[P]\big)^2\Big] = \frac{1}{2^N}\sum_{x}\Big(P(x) - \frac{1}{2^N}\sum_{y} P(y)\Big)^{2};V(p):=E[(P(x)−E[P])2]=2N1​x∑​(P(x)−2N1​y∑​P(y))2;
  • for each coordinate i∈{0,…,N−1}i \in \{0,\dots,N-1\}i∈{0,…,N−1}, the coordinate influence
Ii(p):=E[(P(x)−P(x⊕i))2]=12N∑x(P(x)−P(x⊕i))2,I_i(p) := \mathbb{E}\Big[\big(P(x) - P(x^{\oplus i})\big)^2\Big] = \frac{1}{2^N}\sum_{x}\big(P(x) - P(x^{\oplus i})\big)^{2},Ii​(p):=E[(P(x)−P(x⊕i))2]=2N1​x∑​(P(x)−P(x⊕i))2,

where x⊕ix^{\oplus i}x⊕i is xxx with its iii-th bit negated and all other bits unchanged. Note the normalisation: IiI_iIi​ is the plain mean squared discrete difference, with no additional factor of 12\tfrac1221​ or 14\tfrac1441​, and the difference is taken over all xxx (so each unordered edge of the cube is counted twice, once from each endpoint).

The theorem asserts the single inequality

4 V(p)  ≤  ∑i=0N−1Ii(p),4\,V(p) \;\le\; \sum_{i=0}^{N-1} I_i(p),4V(p)≤i=0∑N−1​Ii​(p),

i.e. four times the variance is bounded above (non-strictly, ≤\le≤) by the unweighted sum of the NNN coordinate influences. The numeric constant 444 multiplies the variance on the left-hand side; there is no constant on the right, and no dependence of the constant on NNN, on the degree of ppp, or on anything else.

Degenerate cases silently included: when N=0N = 0N=0 the cube {0,1}0\{0,1\}^0{0,1}0 has exactly one point, 2N=12^N = 12N=1, the variance is 000, and the index set {0,…,N−1}\{0,\dots,N-1\}{0,…,N−1} is empty so the right-hand sum is 000, giving 0≤00 \le 00≤0. When ppp is a constant polynomial both sides are 000. There are no typeclass hypotheses beyond those fixed by the concrete choice of coefficient ring R\mathbb{R}R and variable type {0,…,N−1}\{0,\dots,N-1\}{0,…,N−1}, and no hypothesis in the statement is unsatisfiable.

Human review
  • Endorsed by Shuze Chen · Sep 8, 2026

  • Endorsed by Goku · Sep 8, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me