Closed-form safe radius for the cubic Taylor model of activation-space steering edits.
For finite Taylor coefficients
For
This is a bound for the Taylor-3 model. Applying it to a full loss requires a separate bound on fourth- and higher-order remainder terms.
-
alpha_safe.py- numerically stable, dependency-free Python implementation, including the zero-quadratic and zero-cubic cases. -
test_alpha_safe.py- regression tests for the numerical implementation. -
AlphaSafe.lean- exact-real proof for nonzero$C$ , checked with Lean 4 and Mathlib.
python3 -m unittest -v
lake build