Gotsman--Linial: SignParity #
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/SignParity.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.
Removing threshold zeros and turning sensitive edges into constant-sign edges #
All graph pairs are ordered. The cube coordinates are the real
signs encoded by Bool in the public statement.
Full parity, with values in the reals.
Equations
Instances For
Two cube vertices differ by a single coordinate flip.
Equations
Instances For
Ordered neighboring pairs at which a real function has equal values.
Equations
Instances For
A positive constant removes all zeros of a real function on a finite set
without changing its threshold signs, including the convention sign(0)=1.
Reversing one coordinate reverses full parity.
The flip definition of adjacency agrees with Hamming distance one.
The n * 2^n count includes both orientations of every cube edge.
The real parity used for threshold signs is exactly the full complex Walsh character under the standard real embedding.
The zero-removal reduction preserves multilinearity, the degree bound, and the entire threshold function.