Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Total influence of a Boolean-valued function is at most its degree

Proved
AaronsonAmbainis.total_influence_le_degree_of_boolean_valued

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

boolean_cube_combinatoricsboolean_function_complexity

Let ppp be a real polynomial in NNN variables of degree at most ddd which takes only the values 000 and 111 at points of the cube {0,1}N\{0,1\}^N{0,1}N. Then its influences sum to at most its degree:

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

For Boolean-valued functions the total influence is also the average sensitivity, so the statement says that a function of low degree cannot be sensitive to many coordinates on average. It is the quantitative input to the junta bound for Boolean-valued functions, and it is sharp: the dictator p(x)=x1p(x)=x_1p(x)=x1​ has degree 111 and influence sum 111, and the parity of three bits has degree 333 and influence sum 333.

Boundedness in the interval [0,1][0,1][0,1] is not enough for this inequality -- the hypothesis is the strictly stronger one that ppp is {0,1}\{0,1\}{0,1}-valued on the cube. That gap is precisely what makes the Aaronson--Ambainis conjecture hard.

Formalization Note The source works with ±1\pm1±1-valued functions on {−1,1}n\{-1,1\}^n{−1,1}n, whereas the hypothesis here is that ppp takes only the values 000 and 111 at cube points. The two are related by g=1−2pg=1-2pg=1−2p, which is ±1\pm1±1-valued, has the same degree as ppp, and satisfies Inf⁡i[g]=4Inf⁡i[p]\operatorname{Inf}_i[g]=4\operatorname{Inf}_i[p]Infi​[g]=4Infi​[p] in the normalisation used here. O'Donnell's total influence I[g]=∑iE[(Dig)2]I[g]=\sum_i\mathbb{E}[(D_ig)^2]I[g]=∑i​E[(Di​g)2] is one quarter of ∑iInf⁡i[g]\sum_i\operatorname{Inf}_i[g]∑i​Infi​[g], hence equal to ∑iInf⁡i[p]\sum_i\operatorname{Inf}_i[p]∑i​Infi​[p]; and Inf⁡i[g]>0\operatorname{Inf}_i[g]>0Infi​[g]>0 exactly when Inf⁡i[p]>0\operatorname{Inf}_i[p]>0Infi​[p]>0, so the set of relevant coordinates is the same for both. The degree hypothesis is on totalDegree, the syntactic degree of the representative, which bounds the multilinear degree from above -- the safe direction here.

Preamble
import Definitions.Def_AaronsonAmbainis
Formal statement
namespace AaronsonAmbainis

theorem total_influence_le_degree_of_boolean_valued
    (N d : ℕ) (p : MvPolynomial (Fin N) ℝ)
    (hdeg : p.totalDegree ≤ d)
    (hbool : ∀ x : Fin N → Bool, cubeEval p x = 0 ∨ cubeEval p x = 1) :
    ∑ i : Fin N, cubeInfl p i ≤ (d : ℝ) := by sorry

end AaronsonAmbainis
Source
O'Donnell, Analysis of Boolean Functions, Cambridge Univ. Press 2014; corrected version arXiv:2105.10386, Fact 3.7 (p. 71): "For f : {-1,1}^n -> {-1,1}, I[f] <= deg(f)"; with I[f] as Definition 2.27 and Inf_i as Definition 2.17, D_i as Definition 2.16.
Read-back

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

Read-back — AaronsonAmbainis.total_influence_le_degree_of_boolean_valued

Setting. Fix two natural numbers NNN and ddd (both universally quantified, with no positivity assumption), and let ppp be an element of the polynomial ring R[X0,…,XN−1]\mathbb{R}[X_0,\dots,X_{N-1}]R[X0​,…,XN−1​] — a multivariate polynomial with real coefficients in NNN commuting variables.

The bundled definitions, unfolded.

  • For a Boolean point xxx, write x^∈RN\hat{x} \in \mathbb{R}^Nx^∈RN for its image under x^i=1\hat{x}_i = 1x^i​=1 if xi=truex_i = \text{true}xi​=true, 000 otherwise, and define the cube evaluation P(x):=p(x^)P(x) := p(\hat{x})P(x):=p(x^). The encoding is {0,1}\{0,1\}{0,1}, not {−1,+1}\{-1,+1\}{−1,+1}.
  • The cube expectation is the unweighted average over all 2N2^N2N Boolean points, E[f]:=2−N∑xf(x)\mathbb{E}[f] := 2^{-N} \sum_{x} f(x)E[f]:=2−N∑x​f(x) — expectation with respect to the uniform measure on the discrete cube. (The factor is never a division by zero, including at N=0N = 0N=0, where the cube has exactly one point.)
  • x⊕ix^{\oplus i}x⊕i denotes xxx with coordinate iii negated, all others unchanged.
  • The influence of coordinate iii is the expected squared discrete difference,
Ii(p):=Ex[(P(x)−P(x⊕i))2].I_i(p) := \mathbb{E}_x\big[(P(x) - P(x^{\oplus i}))^2\big].Ii​(p):=Ex​[(P(x)−P(x⊕i))2].

This is the entire normalisation: no additional factor of 12\tfrac1221​, 14\tfrac1441​, or 12N−1\tfrac{1}{2^{N-1}}2N−11​. Each edge {x,x⊕i}\{x, x^{\oplus i}\}{x,x⊕i} contributes its squared difference twice, once from each endpoint, which is exactly what makes this quantity coincide, for {0,1}\{0,1\}{0,1}-valued PPP, with the probability Pr⁡x[P(x)≠P(x⊕i)]\Pr_x[P(x) \neq P(x^{\oplus i})]Prx​[P(x)=P(x⊕i)] rather than half of it. The definition itself imposes no boundedness or Booleanness on PPP; it is the raw expected squared derivative.

Hypotheses.

  1. deg⁡tot(p)≤d\deg_{\text{tot}}(p) \le ddegtot​(p)≤d, the total degree of ppp as a formal polynomial: the maximum over monomials in its support of the sum of exponents (000 for the zero polynomial). This is an inequality, so ddd is merely an upper bound and may be arbitrarily larger than the actual degree. It is also a property of the chosen representative, not of the induced cube function: Xi7X_i^7Xi7​ and Xi2−XiX_i^2 - X_iXi2​−Xi​ are admitted with total degree 777 and 222 respectively, though the functions they compute on {0,1}N\{0,1\}^N{0,1}N have multilinear degree 111 and 000. So the hypothesis is stated in terms of syntactic total degree, which can strictly exceed the degree of the multilinear representation of the same cube function.

  2. For every Boolean point xxx, P(x)=0P(x) = 0P(x)=0 or P(x)=1P(x) = 1P(x)=1. A pointwise, exactly-two-values condition — not the weaker hypothesis that values lie in [0,1][0,1][0,1], nor that they are bounded, nor that they are integers. The disjunction is per point, so the branch may differ at each xxx: the hypothesis says precisely that ppp computes some Boolean-valued function on the cube. Nothing is assumed about ppp off the cube, where it may take any values whatsoever.

Conclusion. Under these hypotheses,

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

the sum over all NNN coordinates, the right-hand side being the natural number ddd under the canonical embedding N↪R\mathbb{N} \hookrightarrow \mathbb{R}N↪R. Since ddd enters as a cast natural number the bound is automatically non-negative; and because ddd is only an upper bound on the degree, a reader supplying a loose degree bound gets a correspondingly loose conclusion.

Degenerate parameter values silently admitted.

  • N=0N = 0N=0: the cube is a singleton, the index set empty, the left-hand sum the empty sum 000, and the conclusion reads 0≤d0 \le d0≤d, true for every ddd.
  • d=0d = 0d=0: the degree hypothesis forces ppp constant, all influences vanish, and the conclusion reads 0≤00 \le 00≤0.
  • p=0p = 0p=0 and p=1p = 1p=1 satisfy both hypotheses for every ddd, so for each (N,d)(N,d)(N,d) there is at least one witness and the statement is not vacuous.
  • The hypotheses are restrictive in one direction only: no upper bound on NNN relative to ddd, and no lower bound on ddd relative to the true degree.

Not used. The imported definitions also provide the cube variance Var⁡(p)\operatorname{Var}(p)Var(p), which does not appear in this statement.

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