Smooth switches with Lipschitz roots #
A switch χ_{α,β} is a nondecreasing function that vanishes on (-∞, α] and is one on
[β, ∞). The stochastic atoms of the OpenAI preprint need switches such that χ_{α,β} ^ (1/s)
and (1 - χ_{α,β}) ^ (1/s) are Lipschitz, so that errors in the root metrics of the later
estimates propagate linearly through every cutoff [OpenAI2026LogSpace, Section 5.1].
We take Mathlib's Real.smoothTransition, rescaled to [α, β] (Cslib.smoothSwitch). The
preprint instead rescales a normalized integral of z^{s-1} (1 - z)^{s-1}; any fixed switch with
these properties serves. Every positive power of Real.smoothTransition is again continuously
differentiable, since exp (-1/x) ^ p = exp (-1/(x/p)), and it is constant outside [0, 1]. Hence
every positive power is Lipschitz (Real.smoothTransition.exists_lipschitzWith_rpow).
The complement is the reflection
1 - smoothTransition x = smoothTransition (1 - x) (Real.smoothTransition.one_sub), so its powers
are Lipschitz too.
Main definitions #
Cslib.smoothSwitch: the switchχ_{α,β}.
Main results #
Real.smoothTransition.one_sub: the complement of the transition is its reflection.Real.smoothTransition.exists_lipschitzWith_rpow,Real.smoothTransition.exists_lipschitzWith_one_sub_rpow: positive powers of the transition and of its complement are Lipschitz.Cslib.smoothSwitch_eq_zero_iff,Cslib.smoothSwitch_eq_one_iff,Cslib.smoothSwitch_nonneg,Cslib.smoothSwitch_le_one,Cslib.monotone_smoothSwitch: the switch properties.Cslib.exists_lipschitzWith_smoothSwitch_rpow,Cslib.exists_lipschitzWith_one_sub_smoothSwitch_rpow: the root-Lipschitz properties.
References #
- OpenAI, Exact Derandomization of Logarithmic Space: L = RL = BPL, Section 5.1 (preprint, not peer reviewed)
The complement of the smooth transition is its reflection at 1/2.
Every positive power of the smooth transition is Lipschitz.
Every positive power of the complement of the smooth transition is Lipschitz.
The switch χ_{α,β}: Real.smoothTransition rescaled from [0, 1] to [α, β]. It vanishes
on (-∞, α], is one on [β, ∞) and is nondecreasing [OpenAI2026LogSpace, Section 5.1].
Every positive power of a switch is Lipschitz; for p = 1/s this is the root-Lipschitz
property of [OpenAI2026LogSpace, Section 5.1].
Every positive power of the complement of a switch is Lipschitz.