OctoInform Beta

OpenAI preprint, September 2026 · §5. Parity and the binomial coupling

§5: Removing zeros and parity edge count (13): Replacing a multilinear polynomial by a nonvanishing one of no larger degree, and expressing average sensitivity by parity-twisted ordered constant edges

Removing zeros and counting parity edges.

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

A polynomial threshold function assigns a sign to each vertex of the Boolean cube {−1,1}n\{-1,1\}^n according to the sign of a real multivariate polynomial. In the analysis of average sensitivity for these functions, two preliminary facts are used: every multilinear polynomial can be replaced by a multilinear polynomial of no larger degree that vanishes nowhere on the cube while defining the same threshold function✦, and the average sensitivity of any polynomial threshold function equals the normalized number of ordered edges on which its product with full parity is constant✦.

Polynomial threshold functions

For a natural number nn, the Boolean cube {−1,1}n\{-1,1\}^n consists of all sign vectors of length nn.✦ For a vertex x∈{−1,1}nx \in \{-1,1\}^n and a coordinate i∈{1,…,n}i \in \{1, \dots, n\}, the coordinate sign xi∈{−1,1}x_i \in \{-1,1\} is the ii-th entry of xx.✦ The sign function sgn⁡:ℝ→ℝ\operatorname{sgn} : \mathbb{R} \to \mathbb{R} is defined by (1): sgn⁡(t)={1,t≥0,−1,t<0.\operatorname{sgn}(t) = \begin{cases} 1, & t \ge 0, \\ -1, & t < 0. \end{cases}(1)✦

A real polynomial pp in nn variables is multilinear if every monomial appearing with nonzero coefficient in pp has exponent at most 11 in each variable.✦ For any real polynomial pp in nn variables and any vertex x∈{−1,1}nx \in \{-1,1\}^n, the polynomial evaluation p(x)∈ℝp(x) \in \mathbb{R} is the value of pp at the coordinate signs (x1,…,xn)(x_1, \dots, x_n).✦ The polynomial threshold function of pp is the function f:{−1,1}n→ℝf : \{-1,1\}^n \to \mathbb{R} given by f(x)=sgn⁡(p(x))f(x) = \operatorname{sgn}(p(x)).✦

Average sensitivity

For a vertex x∈{−1,1}nx \in \{-1,1\}^n and a coordinate i∈{1,…,n}i \in \{1, \dots, n\}, flipping coordinate ii produces the vertex x⊕i∈{−1,1}nx^{\oplus i} \in \{-1,1\}^n obtained by negating xix_i while leaving every other coordinate sign unchanged.✦ For a real-valued function f:{−1,1}n→ℝf : \{-1,1\}^n \to \mathbb{R} and a coordinate i∈{1,…,n}i \in \{1, \dots, n\}, the set of vertices sensitive to ii is Si(f)={x∈{−1,1}n:f(x⊕i)≠f(x)}S_i(f) = \{x \in \{-1,1\}^n : f(x^{\oplus i}) \ne f(x)\}.✦ The average sensitivity AS(f)\mathrm{AS}(f) of ff is the real number in (2): AS(f)=∑i=1n|Si(f)|2n.\mathrm{AS}(f) = \sum_{i=1}^n \frac{|S_i(f)|}{2^n}.(2)✦

Ordered constant edges

The full parity function χ:{−1,1}n→ℝ\chi : \{-1,1\}^n \to \mathbb{R} is given by χ(x)=∏i=1nxi\chi(x) = \prod_{i=1}^n x_i.✦ The set 𝒩n\mathcal{N}_n of ordered neighbor pairs in {−1,1}n\{-1,1\}^n consists of all ordered pairs (x,y)∈{−1,1}n×{−1,1}n(x, y) \in \{-1,1\}^n \times \{-1,1\}^n at Hamming distance 11, meaning y=x⊕iy = x^{\oplus i} for some coordinate i∈{1,…,n}i \in \{1, \dots, n\}.✦ For a real-valued function h:{−1,1}n→ℝh : \{-1,1\}^n \to \mathbb{R}, the set ℰh\mathcal{E}_h of ordered constant edges of hh is specified in (3): ℰh={(x,y)∈𝒩n:h(x)=h(y)}.\mathcal{E}_h = \{(x, y) \in \mathcal{N}_n : h(x) = h(y)\}.(3)✦

The claim

Proposition. Let nn be a natural number and let pp be a real polynomial in nn variables, with polynomial threshold function f(x)=sgn⁡(p(x))f(x) = \operatorname{sgn}(p(x)).

First, if pp is multilinear and has total degree at most a natural number dd, then there exists a multilinear real polynomial qq in nn variables of total degree at most dd such that (4) holds for every x∈{−1,1}nx \in \{-1,1\}^n: q(x)≠0,sgn⁡(q(x))=sgn⁡(p(x)).\begin{aligned} q(x) &\ne 0, \\ \operatorname{sgn}(q(x)) &= \operatorname{sgn}(p(x)). \end{aligned}(4)✦

Second, for the function h:{−1,1}n→ℝh : \{-1,1\}^n \to \mathbb{R} defined by h(x)=χ(x)f(x)h(x) = \chi(x) f(x), the average sensitivity of ff satisfies (5): AS(f)=|ℰh|2n.\mathrm{AS}(f) = \frac{|\mathcal{E}_h|}{2^n}.(5)✦

What is checked

In the Lean library, the two parts of the theorem are stated over the Boolean cube {−1,1}n\{-1,1\}^n for real multivariate polynomials, multilinear polynomials of bounded total degree, polynomial threshold functions under the convention sgn⁡(0)=1\operatorname{sgn}(0) = 1, average sensitivity, full parity, and ordered constant edges.