Error of the composite trapezoidal rule
ProvedMetodosNumericos.trapezoid_composite_errorIf is twice continuously differentiable on , and , then there is with
This is the composite error of §8.1.1.
import Mathlib import Definitions.Def_MetodosNumericos_integracaoDefs
namespace MetodosNumericos
theorem trapezoid_composite_error (f : ℝ → ℝ) (a b : ℝ) (n : ℕ) (hab : a < b) (hn : 0 < n)
(hf : ContDiffOn ℝ 2 f (Set.Icc a b)) :
∃ mu ∈ Set.Ioo a b,
∫ t in a..b, f t =
trapezoidRule f a b n
- (b - a) * ((b - a) / n) ^ 2 * iteratedDerivWithin 2 f (Set.Icc a b) mu / 12 := 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 with
where is the composite trapezoidal value
and is the second iterated derivative of relative to . The step size appears as with cast into . 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.