Error of the composite Simpson rule
ProvedMetodosNumericos.simpson_composite_errorIf is four times continuously differentiable on with , and the interval is divided into subintervals with , then there is with
This is equation (8.3) of §8.2.1, the capstone error formula of the chapter.
import Mathlib import Definitions.Def_MetodosNumericos_integracaoDefs
namespace MetodosNumericos
theorem simpson_composite_error (f : ℝ → ℝ) (a b : ℝ) (k : ℕ) (hab : a < b) (hk : 0 < k)
(hf : ContDiffOn ℝ 4 f (Set.Icc a b)) :
∃ mu ∈ Set.Ioo a b,
∫ t in a..b, f t =
simpsonRule f a b k
- (b - a) ^ 5 * iteratedDerivWithin 4 f (Set.Icc a b) mu / (180 * (2 * k : ℝ) ^ 4) := 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 , reals and a natural number , under the hypothesis that is continuously differentiable of order on , the statement asserts the existence of such that
where is the composite Simpson value with step ,
and is the fourth iterated derivative of relative to . The number of subintervals is , even by construction, and the denominator is the source's . The point is asserted to exist in the open interval, without uniqueness.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.