Gotsman--Linial: ScalarIncrements #
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/ScalarIncrements.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.
Scalar inequalities for the one-sided coupling estimate #
The increasing function couplingPotential m t = (t-m)|t-m|/2 controls
squared distances from below and has a trapezoidal increment bound from above.
All arguments here are algebraic, by splitting according to the positions of
the endpoints relative to the center m.
Both increment inequalities hold even when the endpoints coincide.
The pointwise lower bound in the coupling argument, without ordering the two real variables.
An upper bound for the positive part of a potential increment under a one-sided bound on the original increment.