Taylor local error of one Euler step
ProvedSanderAblinPeyre2022.local_erroreuler-methodgronwallneural-oderesnet
In a real normed space, if has derivative and has derivative on (within the interval), , and there, then .
Preamble
import Definitions.Def_SanderAblinPeyre2022_Defs import Mathlib
Formal statement
namespace SanderAblinPeyre2022
open Set
theorem local_error {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {x x' x'' : ℝ → E} {s h K : ℝ} (hh : 0 ≤ h)
(hx : ∀ t ∈ Icc s (s + h), HasDerivWithinAt x (x' t) (Icc s (s + h)) t)
(hx' : ∀ t ∈ Icc s (s + h), HasDerivWithinAt x' (x'' t) (Icc s (s + h)) t)
(hK : ∀ t ∈ Icc s (s + h), ‖x'' t‖ ≤ K) :
‖x (s + h) - x s - h • x' s‖ ≤ K * h ^ 2 / 2 := by sorry
end SanderAblinPeyre2022Source
M. E. Sander, P. Ablin, G. Peyre, Do Residual Neural Networks discretize Neural Ordinary Differential Equations?, NeurIPS 2022, arXiv:2205.14612v2, Appendix A.1, Taylor step
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any real normed vector space, let be arbitrary functions and let be real numbers. Assume:
- ;
- for every , has derivative at relative to the set (one-sided at the endpoints);
- for every , has derivative at relative to ;
- for every , .
Then
Edge cases: is not assumed nonnegative explicitly, but the interval always contains , so the last hypothesis forces . When the interval is the single point and both sides are . Note that in the hypotheses is the function named , not a derivative computed by the statement; nothing is assumed about outside .
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.