Chain rule for the rescaling:
ProvedQuadraticWell.rescale_deriv2Let be twice continuously differentiable, real, and real and nonzero. Then for every , the function satisfies
import Mathlib
namespace QuadraticWell
theorem rescale_deriv2 (x : ℝ → ℝ) (hx : ContDiff ℝ 2 x) (m d ω : ℝ) (hω : ω ≠ 0)
(hd : d ≠ 0) (τ : ℝ) :
deriv (deriv (fun σ => (x (σ / ω) - m) / d)) τ = deriv (deriv x) (τ / ω) / (ω ^ 2 * d) := by
sorry
end QuadraticWellRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
rescale_deriv2 (namespace QuadraticWell; uses only Mathlib, no project definitions).
Let be a real function that is twice continuously differentiable on all of (i.e. : , and exist everywhere and is continuous). Let be arbitrary real numbers subject only to
with completely unrestricted (it may be ). Let be an arbitrary point. Define the rescaled and shifted function
The theorem asserts that, for every such ,
Here both second derivatives are the iterated ordinary derivative, "derivative of the derivative", each evaluated at a single point: means the derivative at of the function , and means the derivative at of . In Mathlib the derivative operator is total, and it returns at any point where the function is not differentiable. Under the hypothesis on , however, is differentiable everywhere, and so is , so neither side uses that fallback value. Because and , the divisions by , by and by are genuine divisions, and no division-by-zero convention arises. The claim is an unconditional pointwise identity: it holds at every , for every function , and for all real and all nonzero real and . Negative values of and are included. The constant does not appear on the right-hand side.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.