Error of Simpson's rule on a pair of subintervals
ProvedMetodosNumericos.simpson_simple_errorIf is four times continuously differentiable on with , then there is in the open interval with
This is the per-pair error of §8.2.1.
import Mathlib
namespace MetodosNumericos
theorem simpson_simple_error (f : ℝ → ℝ) (x0 h : ℝ) (hh : 0 < h)
(hf : ContDiffOn ℝ 4 f (Set.Icc (x0 - h) (x0 + h))) :
∃ mu ∈ Set.Ioo (x0 - h) (x0 + h),
∫ t in (x0 - h)..(x0 + h), f t =
h / 3 * (f (x0 - h) + 4 * f x0 + f (x0 + h))
- h ^ 5 * iteratedDerivWithin 4 f (Set.Icc (x0 - h) (x0 + h)) mu / 90 := by sorry
end MetodosNumericosRead-back
What the Lean code literally says, in plain math · self-authored-by-drafting-agent (non-blind)
Disclosure: this read-back is not blind. It was written by the same agent that drafted the Lean statement, at the explicit instruction of the mission's human owner, and not by an independent auditor with fresh context.
For a function and reals , with , under the hypothesis that is continuously differentiable of order on the closed interval , the statement asserts the existence of in the open interval with
where is the fourth iterated derivative of relative to that closed interval. The interval of integration has length , i.e. it consists of two subintervals of length . The point is asserted to exist, with no uniqueness claim.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.