theorem
MindFormal.ScalarExit.quadratic_integral_bound
(A B a b M : ℝ)
(n : ℕ)
(hab : a ≤ b)
(hM : M / (↑n + 1) ≤ 1 / 2)
(hexp : ∀ z ∈ Set.Icc a b, |A * z ^ 2 + B * z| ≤ M)
(P : Polynomial ℝ)
(hP :
∀ (z : ℝ), Polynomial.eval z (Polynomial.derivative P) = ∑ k ∈ Finset.range n, (A * z ^ 2 + B * z) ^ k / ↑k.factorial)
:
Integrating the uniform Taylor remainder gives a certified enclosure. The polynomial identity is checked algebraically at each numeric use.