Kurtz's law of large numbers for SIR: discrete stability (CRN-2, helpers) #
The deterministic half of the law of large numbers. A sequence X k in ℝ × ℝ × ℝ that follows
the Euler scheme X (k+1) ≈ X k + h F (X k) up to a martingale part bounded by δ
(‖X k - X 0 - h ∑_{j<k} F (X j)‖ ≤ δ) stays close to a sequence y k with one-step Euler error
at most η, provided F is Lip-Lipschitz along the two sequences:
‖X k - y k‖ ≤ (‖X 0 - y 0‖ + δ + n η) · exp(h Lip k) for k ≤ n.
The Grönwall step uses Mathlib's discrete_gronwall (applied to the partial sums, frozen after
step n), in the sum form le_mul_exp_of_le_add_sum.
Discrete Grönwall inequality, sum form, on a finite range (from Mathlib's
discrete_gronwall): if 0 ≤ u k ≤ A + b ∑_{j<k} u j for k ≤ n, then u k ≤ A exp(b k).
Discrete stability of the Euler scheme. If X follows the Euler scheme of F up to a
martingale part bounded by δ, y follows it up to one-step errors η, and F is
Lip-Lipschitz between X j and y j, then ‖X k - y k‖ ≤ (‖X 0 - y 0‖ + δ + n η) exp(h Lip k)
for k ≤ n.