Real Second-Order Taylor Remainder Bound
ProvedLevyStochCalc.abs_sub_taylor_two_le_modulus_modularThis is a second-order Taylor remainder estimate for a twice differentiable function on ℝ. Let f, f′, f″ : ℝ → ℝ and M : ℝ satisfy M ≥ 0. Assume f′ is the derivative of f everywhere and f″ is the derivative of f′ everywhere. For x, y : ℝ, assume that every w in the interval between x and y satisfies |f″(w) − f″(x)| ≤ M. Then, with abs_sub_taylor_two_le_modulus_modular, the Taylor remainder obeys
This is the one-dimensional form of the oscillation-controlled Taylor estimate and can be reused when only a bound on the second derivative’s oscillation along the relevant segment is available.
Superseded upload. This snapshot was replaced by LevyStochCalc.abs_sub_taylor_two_le_modulus_readable: open the readable replacement. The replacement preserves the frozen source and mathematical statement, with a compact declaration context. This historical node remains available for existing imports.
import Definitions.Def_KLSModular_LevyStochCalc_Brownian_TaylorTwoModulus /- Copyright (c) 2026 Christian Garry. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Christian Garry -/ -- Vendored from https://github.com/cgarryZA/LevyStochCalc at commit 984dbf0b790031eac05d56fe5a84b65e15e1e932 (upstream path LevyStochCalc/Brownian/TaylorTwoModulus.lean; Apache-2.0; provenance in formalization/vendor/vendor-lock.json of the KLS repository)
theorem LevyStochCalc.abs_sub_taylor_two_le_modulus_modular {f f' f'' : ℝ → ℝ} {M : ℝ} (hM0 : 0 ≤ M)
(hf : ∀ x, HasDerivAt f (f' x) x) (hf' : ∀ x, HasDerivAt f' (f'' x) x)
{x y : ℝ} (hM : ∀ w ∈ Set.uIcc x y, |f'' w - f'' x| ≤ M) :
|f y - f x - f' x * (y - x) - f'' x * (y - x) ^ 2 / 2| ≤ M * |y - x| ^ 2 := by sorry