Gotsman--Linial: WalshDimensions #
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/WalshDimensions.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.
Dimensions of the Walsh degree filtration, derived from the linear independence of the concrete characters.
The dimension of the degree-k Fourier subspace is the number of indices of
cardinality at most k. This formula remains valid beyond the saturated stage.
Each new degree contributes exactly the next binomial multiplicity.
At or above degree n, the Fourier space has the full cube dimension.
Passing to the counting Euclidean Hilbert space changes no dimensions.
With the bottom stage inserted, stage k contains exactly degrees below k.
The degree-k layer has the prescribed binomial dimension increment.
Any invertible weight preserves the dimensions of all stages of the Euclidean flag.
In particular, an invertible weight preserves each binomial dimension increment.