Documentation

CslibFrontier.Foundations.Analysis.SpecialFunctions.RationalRamp

A rational correction ramp with Lipschitz fourth root #

For a > 0, put u = max 0 ((t - θ) / a) and Q t = a * u^4 / (1 + u)^3. This gives a monotone, one-Lipschitz correction ramp with t - (θ + 3a) ≤ Q t ≤ max (t - θ) 0. Its fourth root is globally Lipschitz. The definitions specialize to exact rational arithmetic; this is not a machine-space bound.

This is an alternative rational witness for the ramp conditions in [OpenAI2026LogSpace, Section 4.1, (4.2)], adapted to the fourth-moment workstream of cslib-frontier issue #1721. The pinned preprint requires eighth-root regularity and gives a piecewise-polynomial example; this module proves fourth-root regularity for the displayed rational construction.

Main definitions #

Main results #

References #

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

The normalized rational ramp, with fourth-order vanishing at zero.

def Cslib.rationalRamp4 {R : Type u_1} [Field R] [LinearOrder R] (θ a t : R) :
R

A rational correction ramp with lower support threshold θ and width parameter a. The analytic ramp laws assume 0 < a.

Fourth roots #

The normalized ramp's fourth root has global Lipschitz constant one.

Translation and rescaling #

theorem Cslib.rationalRamp4_nonneg {a : ℝ} (ha : 0 ≤ a) (θ t : ℝ) :
theorem Cslib.rationalRamp4_le {a : ℝ} (ha : 0 < a) (θ t : ℝ) :
rationalRamp4 θ a t ≤ max (t - θ) 0
theorem Cslib.le_rationalRamp4 {a : ℝ} (ha : 0 < a) (θ t : ℝ) :
t - (θ + 3 * a) ≤ rationalRamp4 θ a t
theorem Cslib.rationalRamp4_of_le {θ a t : ℝ} (ha : 0 < a) (ht : t ≤ θ) :
rationalRamp4 θ a t = 0
theorem Cslib.monotone_rationalRamp4 {a : ℝ} (ha : 0 < a) (θ : ℝ) :
theorem Cslib.lipschitzWith_rationalRamp4 {a : ℝ} (ha : 0 < a) (θ : ℝ) :

The scale factor cancels the input rescaling, preserving Lipschitz constant one.

The rescaled ramp's fourth root is globally Lipschitz, including arbitrarily large inputs.

@[simp]
theorem Cslib.rationalRamp4_ratCast (θ a t : ℚ) :
rationalRamp4 ↑θ ↑a ↑t = ↑(rationalRamp4 θ a t)