Proposition 1: ResNet versus Neural ODE error bound
ProvedSanderAblinPeyre2022.prop1euler-methodgronwallneural-oderesnet
Let be a real normed space, Frechet differentiable with derivative , -Lipschitz in for with , a solution of on , and on . Then the ResNet , , satisfies for .
Preamble
import Definitions.Def_SanderAblinPeyre2022_Defs import Mathlib
Formal statement
namespace SanderAblinPeyre2022
open Set
theorem prop1 {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {φ : E → ℝ → E} {Dφ : E × ℝ → E × ℝ →L[ℝ] E} {x : ℝ → E} {N : ℕ}
{L C : ℝ} (hN : 0 < N) (hL : 0 < L)
(hLip : ∀ s ∈ Icc (0 : ℝ) 1, ∀ u v, ‖φ u s - φ v s‖ ≤ L * ‖u - v‖)
(hφ : ∀ p : E × ℝ, HasFDerivAt (fun q : E × ℝ => φ q.1 q.2) (Dφ p) p)
(hx : ∀ s ∈ Icc (0 : ℝ) 1, HasDerivWithinAt x (φ (x s) s) (Icc 0 1) s)
(hC : ∀ s ∈ Icc (0 : ℝ) 1, ‖Dφ (x s, s) (φ (x s) s, 1)‖ ≤ C) :
∀ n ≤ N, ‖euler φ (x 0) N n - x ((n : ℝ) / N)‖ ≤ (Real.exp L - 1) / (2 * N * L) * C := 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, Section 3.1, Proposition 1, proof in Appendix A.1
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any real normed vector space. Let (written ), let assign to each point a continuous linear map , let , let , and let . Assume:
- and ;
- (Lipschitz in the first argument) for every and all : ;
- for every (not only ), the map is Fréchet differentiable at with derivative ;
- for every , has derivative at relative to the set (one-sided at and );
- for every : , i.e. the derivative at applied to the vector has norm at most .
Let be the euler sequence with this , start and step count : , . Then for every natural ,
Nothing is assumed about outside , and the Lipschitz bound is only assumed for . is not assumed nonnegative explicitly (the last hypothesis at any forces ).
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.