ODEs.ComparisonLemma #
The comparison lemma for scalar ODEs: if u is an exact solution of u̇ = f(t, u) with
u(t₀) = u₀, and v is continuous with upper Dini derivative satisfying
D⁺v(t) ≤ f(t, v(t)) and v(t₀) ≤ u₀, then v(t) ≤ u(t) for all t ∈ [t₀, t₁].
Proof strategy (Khalil) #
Claim 1 (
comparison_claim_1): For any perturbed solutionzofż = f(t, z) + λwithλ > 0, we havev(t) ≤ z(t)on[t₀, t₁]. Proved by contradiction: assuming the setS = {s | v(s) = z(s)}has a supremuma < t_bad(wherev(t_bad) > z(t_bad)), the Dini derivative inequality ataforcesf(a, z(a)) + λ ≤ f(a, v(a)), contradictingv(a) = z(a)andλ > 0.Claim 2 (
comparison_lemma):v(t) ≤ u(t)follows by sendingλ → 0. For eachλ > 0,v(t) ≤ z_λ(t)by Claim 1, andz_λ(t) ≤ u(t) + ε/2by the continuous-dependence estimate (continuous_dependence_parameters). Sinceε > 0is arbitrary,v(t) ≤ u(t).
Main declarations #
isIntegralSolution_of_hasDerivAt— converts a pointwise derivative condition into an integral solution.comparison_lemma— the full comparison inequalityv ≤ u.AbsolutelyContinuousOnInterval.comparison_lemma— the comparison lemma for absolutely continuous functions, with the differential inequalities holding almost everywhere. Neither form implies the other: this one asks more ofv(absolute continuity) and less of the inequality (almost everywhere, classical derivative) and off(a one-sided Lipschitz bound along the two curves, no continuity).
comparison_claim_1 is a private step of the proof of comparison_lemma.
Integral solution helper #
Converts a classical (pointwise) ODE solution into an integral solution.
If u has derivative f(t, u(t)) at every interior point of [t₀, t₁], is continuous on
[t₀, t₁], and satisfies u(t₀) = u₀, then u is an integral solution in the sense of
IsIntegralSolution.
The comparison lemma #
Comparison lemma. If u solves u̇ = f(t, u) with u(t₀) = u₀, and v is
continuous with D⁺v(t) ≤ f(t, v(t)) and v(t₀) ≤ u₀, then v(t) ≤ u(t) on [t₀, t₁].
Hypotheses:
fis jointly continuous and globally Lipschitz in the state variable on[t₀, t₁].usolves the ODE classically (pointwise derivative).vsatisfies the Dini subsolution inequality.- For each
λ > 0, a perturbed solutionz_λofż = f(t, z) + λexists on[t₀, t₁](the existence hypothesishz_exists, kept for generality; it is always discharged byexists_isIntegralSolution_Icc_of_lipschitz).
The proof uses comparison_claim_1 to get v ≤ z_λ, then continuous_dependence_parameters
to bound ‖u - z_λ‖ ≤ ε/2, and concludes v(t) < u(t) + ε for all ε > 0.
For an absolutely continuous v satisfying the inequality only almost everywhere, as along a
Carathéodory trajectory, see AbsolutelyContinuousOnInterval.comparison_lemma.
Reference: Khalil, Nonlinear Systems (3rd ed.), the comparison lemma.
The comparison lemma for absolutely continuous functions #
Comparison lemma, absolutely continuous form. Let v and u be absolutely continuous on
[a, b] with v̇ ≤ f(t, v) and f(t, u) ≤ u̇ almost everywhere, and v(a) ≤ u(a). If f is
one-sided Lipschitz along the two curves, f(t, v(t)) - f(t, u(t)) ≤ L (v(t) - u(t)) for almost
every t with u(t) < v(t), then v ≤ u on [a, b].
The one-sided bound holds when f t is L-Lipschitz; L is any real, and f needs no
regularity in time. In particular u may be a solution, u̇ = f(t, u).
This is the form that applies along Carathéodory trajectories. The textbook form,
comparison_lemma, asks v only continuous with the Dini inequality D⁺v ≤ f(t, v) at every
point, and f continuous and Lipschitz; neither form implies the other.
Reference: Khalil, Nonlinear Systems (3rd ed.), the comparison lemma, there for a continuous
v and the upper right Dini derivative.