Gotsman--Linial: CubeOperators #
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/CubeOperators.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.
Coordinate commutators and Hamming-distance energy #
The coordinate sign matrices are the actual diagonal operators of the Boolean cube. The identities here turn their Hilbert--Schmidt and entry estimates into the energy estimates used by the edge-recovery argument.
In the point basis, a coordinate commutator records the difference of the two endpoint signs.
A uniform coordinate-commutator Hilbert--Schmidt bound gives the distance energy inequality for the actual cube matrix.
A coordinate at which distinct endpoints differ turns an entrywise
commutator estimate into the edge-entry cap 1/4.