Taylor's theorem with integral remainder
ProvedFamousTheorems.taylor_integral_remainder_theoremTaylor's theorem with integral remainder. Let take values in a real Banach space and be on the closed interval between and . Then
This is the exact form of the Taylor remainder, from which the Lagrange and Cauchy forms and the standard error estimates follow. Unlike the mean-value forms, it holds for vector-valued functions.
Formalization note. Mathlib's taylor_integral_remainder. The derivatives are taken within the interval Set.uIcc x₀ x (iteratedDerivWithin), and taylorWithinEval f n (Set.uIcc x₀ x) x₀ x is the degree- Taylor polynomial at built from these derivatives, evaluated at . The integral is the oriented interval integral.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem taylor_integral_remainder_theorem {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] {f : ℝ → F} {x x₀ : ℝ} {n : ℕ}
(hf : ContDiffOn ℝ (n + 1 : ℕ) f (Set.uIcc x₀ x)) :
f x - taylorWithinEval f n (Set.uIcc x₀ x) x₀ x =
∫ t in x₀..x, ((x - t) ^ n / (n.factorial : ℝ)) • iteratedDerivWithin (n + 1) f (Set.uIcc x₀ x) t := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `taylor_integral_remainder`. Proof here reduces to that Mathlib result.