Gotsman--Linial: Main #
Adapted from OpenAI's formalization of Average Sensitivity of Polynomial Threshold
Functions (25 September 2026), at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Combinatorics/GotsmanLinial/Main.lean
The original Boolean-cube representation is used internally in this proof development;
Complexitylib.BooleanAnalysis.PolynomialThreshold transports the result to the
library's Fourier and influence API. Changes here adapt module visibility,
namespace names, formatting, and redundant simp attributes to complexitylib.
Assembly of the Gotsman--Linial average-sensitivity bound #
The first lemmas are explicitly conditional assembly bridges. The final theorems discharge their matrix and counting hypotheses using the concrete weighted Boolean-cube grading and a sign-preserving constant perturbation.
Convert a counted-edge identity, edge recovery, and an anticommutator energy estimate into the desired sensitivity inequality. The counting and energy premises are explicit.
The finite-matrix bound assuming an orthogonal projection family with binomial multiplicities, coordinate tridiagonality, and low-block vanishing.
The bound for a polynomial without cube zeros. The projection family and both block-vanishing properties are constructed from its absolute value, rather than retained as hypotheses.
Every real multilinear polynomial of degree at most d has average
sensitivity at most 8*d*sqrt(n), including cube zeros under sign(0)=1.
The argument in fact covers all natural n and d.
The average-sensitivity bound for 1 ≤ d ≤ n, without auxiliary
construction hypotheses.