Documentation

CslibFrontier.Foundations.Analysis.SpecialFunctions.PolynomialSwitch

Polynomial switches with Lipschitz fourth roots #

The fourth-moment workstream of cslib-frontier issue #1721 needs a monotone switch whose fourth root and complementary fourth root are Lipschitz. The switch of [OpenAI2026LogSpace, Section 5.1] is a rescaled normalized integral of t^(s-1) (1-t)^(s-1) on [0,1]. For the fourth-moment route (s = 4), its polynomial is 35 t^4 - 84 t^5 + 70 t^6 - 20 t^7.

We give that polynomial as the equivalent factored expression t^4 * (1 + 4(1-t) + 10(1-t)^2 + 20(1-t)^3) and clamp its input to [0,1]. The polynomial, clamped transition and rescaled switch use only field arithmetic and min/max; their definitions also specialize to computable functions on ℚ. The cast lemmas identify those exact rational evaluations with the real functions used by the analysis. They assert no machine resource bound or rational approximation to the fourth root.

The factor after t^4 is at least one on [0,1]. Thus the fourth root is t times the fourth root of a positive polynomial, which is continuously differentiable on that interval and hence Lipschitz there. Composing with clamping gives a global Lipschitz bound. The complement follows by reflection. These primitives do not yet provide the complete admissible hierarchy parameters, their threshold ladder, or the regularity of the unbounded correction ramp.

Main definitions #

Main results #

References #

def Cslib.transitionPolynomial4 {R : Type u_1} [CommRing R] (t : R) :
R

The normalized integral polynomial for the fourth-moment switch, in a form displaying its fourth-order zero and a positive remaining factor on [0,1].

def Cslib.polynomialTransition4 {R : Type u_1} [CommRing R] [LinearOrder R] (t : R) :
R

The degree-seven transition polynomial, clamped to the unit interval. Its generic definition can be evaluated exactly on rational inputs.

def Cslib.polynomialSwitch4 {R : Type u_1} [Field R] [LinearOrder R] (α β t : R) :
R

Rescale the fourth-moment polynomial transition from [0,1] to [α,β]. The switch laws assume α < β; the arithmetic expression itself is defined for all endpoints.

theorem Cslib.transitionPolynomial4_expanded {R : Type u_1} [CommRing R] (t : R) :
transitionPolynomial4 t = 35 * t ^ 4 - 84 * t ^ 5 + 70 * t ^ 6 - 20 * t ^ 7

Reflection interchanges the transition polynomial and its complement.

The derivative identifies the normalization of the integral t^3 (1-t)^3.

Reflection interchanges the clamped transition and its complement.

Fourth-root regularity #

The fourth root is Lipschitz globally; the transition has fourth-order vanishing at zero.

The fourth root of the complement is Lipschitz, by reflection at 1/2.

Rescaling and exact rational values #

theorem Cslib.polynomialSwitch4_eq_zero_iff {α β t : ℝ} (hαβ : α < β) :
polynomialSwitch4 α β t = 0 ↔ t ≤ α
theorem Cslib.polynomialSwitch4_eq_one_iff {α β t : ℝ} (hαβ : α < β) :
polynomialSwitch4 α β t = 1 ↔ β ≤ t
theorem Cslib.polynomialSwitch4_of_le {α β t : ℝ} (hαβ : α < β) (ht : t ≤ α) :
theorem Cslib.polynomialSwitch4_of_ge {α β t : ℝ} (hαβ : α < β) (ht : β ≤ t) :
theorem Cslib.monotone_polynomialSwitch4 {α β : ℝ} (hαβ : α ≤ β) :

Rescaled switches have Lipschitz fourth roots, even for reversed or equal endpoints.

The complementary rescaled switches also have Lipschitz fourth roots.

@[simp]
theorem Cslib.polynomialSwitch4_ratCast (α β t : ℚ) :
polynomialSwitch4 ↑α ↑β ↑t = ↑(polynomialSwitch4 α β t)