The areas / V17. Differential calculus in normed spaces
Mathlib.Analysis.ODE.PicardLindelof
68 declarations. Mathlib docs · Source
Picard-Lindelöf (Cauchy-Lipschitz) Theorem
We prove the (local) existence of integral curves and flows to time-dependent vector fields.
Let f : ℝ → E → E be a time-dependent (local) vector field on a Banach space, and let t₀ : ℝ
and x₀ : E. If f is Lipschitz continuous in x within a closed ball around x₀ of radius
a ≥ 0 at every t and continuous in t at every x, then there exists a (local) solution
α : ℝ → E to the initial value problem α t₀ = x₀ and deriv α t = f t (α t) for all
t ∈ Icc tmin tmax, where L * max (tmax - t₀) (t₀ - tmin) ≤ a.
We actually prove a more general version of this theorem for the existence of local flows. If there
is some r ≥ 0 such that L * max (tmax - t₀) (t₀ - tmin) ≤ a - r, then for every
x ∈ closedBall x₀ r, there exists a (local) solution α x with the initial condition α t₀ = x.
In other words, there exists a local flow α : E → ℝ → E defined on closedBall x₀ r and
Icc tmin tmax.
The proof relies on demonstrating the existence of a solution α to the following integral
equation:
$$\alpha(t) = x_0 + \int_{t_0}^t f(\tau, \alpha(\tau)),\mathrm{d}\tau.$$
This is done via the contraction mapping theorem, applied to the space of Lipschitz continuous
functions from a closed interval to a Banach space. The needed contraction map is constructed by
repeated applications of the right-hand side of this equation.
Main definitions and results
picard f t₀ x₀ α t: the Picard iteration, applied to the curveαIsPicardLindelof: the structure holding the assumptions of the Picard-Lindelöf theorem
The public-facing existence theorems stated using the integral curve API are in
Mathlib.Analysis.ODE.ExistUnique.
Implementation notes
- The structure
FunSpaceand theorems within this namespace are implementation details of the proof of the Picard-Lindelöf theorem and are not intended to be used outside of this file. - Some sources, such as Lang, define
FunSpaceas the space of continuous functions from a closed interval to a closed ball. We instead defineFunSpacehere as the space of Lipschitz continuous functions from a closed interval. This slightly stronger condition allows us to postpone the usage of the completeness condition on the spaceEuntil the application of the contraction mapping theorem. - We have chosen to formalise many of the real constants as
ℝ≥0, so that the non-negativity of certain quantities constructed from them can be shown more easily. When subtraction is involved, especially note whether it is the usual subtraction between two reals or the truncated subtraction between two non-negative reals. - In this file, We only prove the existence of a solution. For uniqueness, see
IsIntegralCurveOn.eqOnand related theorems inMathlib/Analysis/ODE/ExistUnique.lean.
Tags
differential equation, dynamical system, initial value problem, Picard-Lindelöf theorem, Cauchy-Lipschitz theorem
Assumptions of the Picard-Lindelöf theorem
Integral equation
For any time-dependent vector field f : ℝ → E → E, we define an integral equation that is
equivalent to the initial value problem defined by f.
Space of Lipschitz functions on a closed interval
We define the space of Lipschitz continuous functions from a closed interval. This will be shown to
be a complete metric space on which picard is a contracting map, leading to a fixed point that
will serve as the solution to the ODE. The domain is a closed interval in order to easily inherit
the sup metric from continuous maps on compact spaces. We cannot use functions ℝ → E with junk
values outside the domain, as the supremum within a closed interval will only be a pseudo-metric,
and the contracting map will fail to have a fixed point. In order to accommodate flows, we do not
require a specific initial condition. Rather, FunSpace contains curves whose initial condition is
within a closed ball.
Contracting map on the space of Lipschitz functions
Lipschitz continuity of the solution with respect to the initial condition
The proof relies on the fact that the repeated application of next to any curve α converges to
the fixed point of next, so it suffices to bound the distance between α and next^[n] α. Since
there is some m : ℕ such that next^[m] is a contracting map, it further suffices to bound the
distance between α and next^[m]^[n] α.
Properties of the integral equation
Properties of IsPicardLindelof
Existence of solutions to ODEs
theorem ODE.FunSpace.mk.congr_simp E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
(toFun toFun_1 : ↑(Set.Icc tmin tmax) → E) (e_toFun : toFun = toFun_1) (lipschitzWith : LipschitzWith L toFun)
(mem_closedBall₀ : toFun t₀ ∈ Metric.closedBall x₀ ↑r),
{ toFun := toFun, lipschitzWith := lipschitzWith, mem_closedBall₀ := mem_closedBall₀ } =
{ toFun := toFun_1, lipschitzWith := ⋯, mem_closedBall₀ := ⋯ }
theorem ODE.FunSpace.next.congr_simp E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f f_1 : ℝ → E → E} (e_f : f = f_1)
{tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ x x_1 : E} (e_x : x = x_1) {a a_1 : NNReal} (e_a : a = a_1)
{r L K K_1 : NNReal} (e_K : K = K_1) (hf : IsPicardLindelof f t₀ x₀ a r L K) (hx : x ∈ Metric.closedBall x₀ ↑r)
(α α_1 : ODE.FunSpace t₀ x₀ r L), α = α_1 → ODE.FunSpace.next hf hx α = ODE.FunSpace.next ⋯ ⋯ α_1
theorem ODE.FunSpace.mk.injEq E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
(toFun : ↑(Set.Icc tmin tmax) → E) (lipschitzWith : LipschitzWith L toFun)
(mem_closedBall₀ : toFun t₀ ∈ Metric.closedBall x₀ ↑r) (toFun_1 : ↑(Set.Icc tmin tmax) → E)
(lipschitzWith_1 : LipschitzWith L toFun_1) (mem_closedBall₀_1 : toFun_1 t₀ ∈ Metric.closedBall x₀ ↑r),
({ toFun := toFun, lipschitzWith := lipschitzWith, mem_closedBall₀ := mem_closedBall₀ } =
{ toFun := toFun_1, lipschitzWith := lipschitzWith_1, mem_closedBall₀ := mem_closedBall₀_1 }) =
(toFun = toFun_1)
theorem ODE.FunSpace.mk.inj E1 #
∀ {E : Type u_1} {inst : NormedAddCommGroup E} {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
{toFun : ↑(Set.Icc tmin tmax) → E} {lipschitzWith : LipschitzWith L toFun}
{mem_closedBall₀ : toFun t₀ ∈ Metric.closedBall x₀ ↑r} {toFun_1 : ↑(Set.Icc tmin tmax) → E}
{lipschitzWith_1 : LipschitzWith L toFun_1} {mem_closedBall₀_1 : toFun_1 t₀ ∈ Metric.closedBall x₀ ↑r},
{ toFun := toFun, lipschitzWith := lipschitzWith, mem_closedBall₀ := mem_closedBall₀ } =
{ toFun := toFun_1, lipschitzWith := lipschitzWith_1, mem_closedBall₀ := mem_closedBall₀_1 } →
toFun = toFun_1
def ODE.FunSpace.ctorIdx E1 #
{E : Type u_1} →
{inst : NormedAddCommGroup E} →
{tmin tmax : ℝ} → {t₀ : ↑(Set.Icc tmin tmax)} → {x₀ : E} → {r L : NNReal} → ODE.FunSpace t₀ x₀ r L → ℕ
structure IsPicardLindelof E1 #
{E : Type u_1} →
[NormedAddCommGroup E] →
(ℝ → E → E) → {tmin tmax : ℝ} → ↑(Set.Icc tmin tmax) → E → NNReal → NNReal → NNReal → NNReal → Prop
Prop structure holding the assumptions of the Picard-Lindelöf theorem.
IsPicardLindelof f t₀ x₀ a r L K, where t₀ ∈ Icc tmin tmax, means that the time-dependent vector
field f satisfies the conditions to admit an integral curve α : ℝ → E to f defined on
Icc tmin tmax with the initial condition α t₀ = x, where ‖x - x₀‖ ≤ r. Note that the initial
point x is allowed to differ from the point x₀ about which the conditions on f are stated.
ctor IsPicardLindelof.mk E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {f : ℝ → E → E} {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E}
{a r L K : NNReal},
(∀ t ∈ Set.Icc tmin tmax, LipschitzOnWith K (f t) (Metric.closedBall x₀ ↑a)) →
(∀ x ∈ Metric.closedBall x₀ ↑a, ContinuousOn (fun x_1 ↦ f x_1 x) (Set.Icc tmin tmax)) →
(∀ t ∈ Set.Icc tmin tmax, ∀ x ∈ Metric.closedBall x₀ ↑a, ‖f t x‖ ≤ ↑L) →
↑L * max (tmax - ↑t₀) (↑t₀ - tmin) ≤ ↑a - ↑r → IsPicardLindelof f t₀ x₀ a r L K
theorem IsPicardLindelof.lipschitzOnWith E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {f : ℝ → E → E} {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E}
{a r L K : NNReal},
IsPicardLindelof f t₀ x₀ a r L K → ∀ t ∈ Set.Icc tmin tmax, LipschitzOnWith K (f t) (Metric.closedBall x₀ ↑a)
The vector field at any time is Lipschitz with constant K within a closed ball.
theorem IsPicardLindelof.continuousOn E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {f : ℝ → E → E} {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E}
{a r L K : NNReal},
IsPicardLindelof f t₀ x₀ a r L K → ∀ x ∈ Metric.closedBall x₀ ↑a, ContinuousOn (fun x_1 ↦ f x_1 x) (Set.Icc tmin tmax)
The vector field is continuous in time within a closed ball.
theorem IsPicardLindelof.norm_le E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {f : ℝ → E → E} {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E}
{a r L K : NNReal},
IsPicardLindelof f t₀ x₀ a r L K → ∀ t ∈ Set.Icc tmin tmax, ∀ x ∈ Metric.closedBall x₀ ↑a, ‖f t x‖ ≤ ↑L
L is an upper bound of the norm of the vector field.
theorem IsPicardLindelof.mul_max_le E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {f : ℝ → E → E} {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E}
{a r L K : NNReal}, IsPicardLindelof f t₀ x₀ a r L K → ↑L * max (tmax - ↑t₀) (↑t₀ - tmin) ≤ ↑a - ↑r
The time interval of validity
def ODE.picard E1 #
{E : Type u_1} → [inst : NormedAddCommGroup E] → [NormedSpace ℝ E] → (ℝ → E → E) → ℝ → E → (ℝ → E) → ℝ → E
The Picard iteration. It will be shown that if α : ℝ → E and picard f t₀ x₀ α agree on an
interval containing t₀, then α is a solution to f with α t₀ = x₀ on this interval.
theorem ODE.picard_apply E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {α : ℝ → E} {t₀ : ℝ} {x₀ : E}
{t : ℝ}, ODE.picard f t₀ x₀ α t = x₀ + ∫ (τ : ℝ) in t₀..t, f τ (α τ)
theorem ODE.picard_apply₀ E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {α : ℝ → E} {t₀ : ℝ} {x₀ : E},
ODE.picard f t₀ x₀ α t₀ = x₀
theorem ODE.contDiffOn_comp E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {α : ℝ → E} {s : Set ℝ}
{u : Set E} {n : WithTop ℕ∞},
ContDiffOn ℝ n (Function.uncurry f) (s ×ˢ u) →
ContDiffOn ℝ n α s → (∀ t ∈ s, α t ∈ u) → ContDiffOn ℝ n (fun t ↦ f t (α t)) s
Given a $C^n$ time-dependent vector field f and a $C^n$ curve α, the composition f t (α t)
is $C^n$ in t.
theorem ODE.continuousOn_comp E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [NormedSpace ℝ E] {f : ℝ → E → E} {α : ℝ → E} {s : Set ℝ} {u : Set E},
ContinuousOn (Function.uncurry f) (s ×ˢ u) → ContinuousOn α s → Set.MapsTo α s u → ContinuousOn (fun t ↦ f t (α t)) s
Given a continuous time-dependent vector field f and a continuous curve α, the composition
f t (α t) is continuous in t.
structure ODE.FunSpace E1 #
{E : Type u_1} → [NormedAddCommGroup E] → {tmin tmax : ℝ} → ↑(Set.Icc tmin tmax) → E → NNReal → NNReal → Type u_1
The space of L-Lipschitz functions α : Icc tmin tmax → E
ctor ODE.FunSpace.mk E0 #
{E : Type u_1} →
[inst : NormedAddCommGroup E] →
{tmin tmax : ℝ} →
{t₀ : ↑(Set.Icc tmin tmax)} →
{x₀ : E} →
{r L : NNReal} →
(toFun : ↑(Set.Icc tmin tmax) → E) →
LipschitzWith L toFun → toFun t₀ ∈ Metric.closedBall x₀ ↑r → ODE.FunSpace t₀ x₀ r L
abbrev ODE.FunSpace.toFun E1 #
{E : Type u_1} →
[inst : NormedAddCommGroup E] →
{tmin tmax : ℝ} →
{t₀ : ↑(Set.Icc tmin tmax)} → {x₀ : E} → {r L : NNReal} → ODE.FunSpace t₀ x₀ r L → ↑(Set.Icc tmin tmax) → E
The domain is Icc tmin tmax.
theorem ODE.FunSpace.lipschitzWith E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
(self : ODE.FunSpace t₀ x₀ r L), LipschitzWith L self.toFun
theorem ODE.FunSpace.mem_closedBall₀ E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
(self : ODE.FunSpace t₀ x₀ r L), self.toFun t₀ ∈ Metric.closedBall x₀ ↑r
instance ODE.FunSpace.instCoeFunForallElemRealIcc E0 #
{E : Type u_1} →
[inst : NormedAddCommGroup E] →
{tmin tmax : ℝ} →
{t₀ : ↑(Set.Icc tmin tmax)} →
{x₀ : E} → {r L : NNReal} → CoeFun (ODE.FunSpace t₀ x₀ r L) fun x ↦ ↑(Set.Icc tmin tmax) → E
theorem ODE.FunSpace.ext_iff E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
{α β : ODE.FunSpace t₀ x₀ r L}, α = β ↔ ∀ (t : ↑(Set.Icc tmin tmax)), α.toFun t = β.toFun t
theorem ODE.FunSpace.ext E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
{α β : ODE.FunSpace t₀ x₀ r L}, (∀ (t : ↑(Set.Icc tmin tmax)), α.toFun t = β.toFun t) → α = β
instance ODE.FunSpace.instInhabited E0 #
{E : Type u_1} →
[inst : NormedAddCommGroup E] →
{tmin tmax : ℝ} → {t₀ : ↑(Set.Icc tmin tmax)} → {x₀ : E} → {r L : NNReal} → Inhabited (ODE.FunSpace t₀ x₀ r L)
FunSpace t₀ x₀ r L contains the constant map at x₀.
theorem ODE.FunSpace.continuous E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
(α : ODE.FunSpace t₀ x₀ L r), Continuous α.toFun
def ODE.FunSpace.toContinuousMap E1 #
{E : Type u_1} →
[inst : NormedAddCommGroup E] →
{tmin tmax : ℝ} →
{t₀ : ↑(Set.Icc tmin tmax)} → {x₀ : E} → {r L : NNReal} → ODE.FunSpace t₀ x₀ r L ↪ C(↑(Set.Icc tmin tmax), E)
The embedding of FunSpace into the space of continuous maps
theorem ODE.FunSpace.toContinuousMap_apply_eq_apply E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
(α : ODE.FunSpace t₀ x₀ r L) (t : ↑(Set.Icc tmin tmax)), (ODE.FunSpace.toContinuousMap α) t = α.toFun t
theorem ODE.FunSpace.apply_of_zero E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {L : NNReal}
(α : ODE.FunSpace t₀ x₀ 0 L), α.toFun t₀ = x₀
When the radius is zero, a curve in FunSpace evaluated at t₀ equals x₀.
instance ODE.FunSpace.instMetricSpace E0 #
{E : Type u_1} →
[inst : NormedAddCommGroup E] →
{tmin tmax : ℝ} → {t₀ : ↑(Set.Icc tmin tmax)} → {x₀ : E} → {r L : NNReal} → MetricSpace (ODE.FunSpace t₀ x₀ r L)
The metric between two curves α and β is the supremum of the metric between α t and β t
over all t in the domain. This is finite when the domain is compact, such as a closed
interval in our case.
theorem ODE.FunSpace.isUniformInducing_toContinuousMap E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal},
IsUniformInducing fun α ↦ ODE.FunSpace.toContinuousMap α
theorem ODE.FunSpace.range_toContinuousMap E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal},
(Set.range fun α ↦ ODE.FunSpace.toContinuousMap α) = {α | LipschitzWith L ⇑α ∧ α t₀ ∈ Metric.closedBall x₀ ↑r}
instance ODE.FunSpace.instCompleteSpace E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
[CompleteSpace E], CompleteSpace (ODE.FunSpace t₀ x₀ r L)
We show that FunSpace is complete in order to apply the contraction mapping theorem.
def ODE.FunSpace.compProj E1 #
{E : Type u_1} →
[inst : NormedAddCommGroup E] →
{tmin tmax : ℝ} → {t₀ : ↑(Set.Icc tmin tmax)} → {x₀ : E} → {r L : NNReal} → ODE.FunSpace t₀ x₀ r L → ℝ → E
Extend the domain of α from Icc tmin tmax to ℝ such that α t = α tmin for all t ≤ tmin
and α t = α tmax for all t ≥ tmax.
theorem ODE.FunSpace.compProj_apply E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
{α : ODE.FunSpace t₀ x₀ r L} {t : ℝ}, α.compProj t = α.toFun (Set.projIcc tmin tmax ⋯ t)
theorem ODE.FunSpace.compProj_val E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
{α : ODE.FunSpace t₀ x₀ r L} {t : ↑(Set.Icc tmin tmax)}, α.compProj ↑t = α.toFun t
theorem ODE.FunSpace.compProj_of_mem E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
{α : ODE.FunSpace t₀ x₀ r L} {t : ℝ} (ht : t ∈ Set.Icc tmin tmax), α.compProj t = α.toFun ⟨t, ht⟩
theorem ODE.FunSpace.continuous_compProj E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {r L : NNReal}
(α : ODE.FunSpace t₀ x₀ r L), Continuous α.compProj
theorem ODE.FunSpace.mem_closedBall E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {a r L : NNReal}
{α : ODE.FunSpace t₀ x₀ r L},
↑L * max (tmax - ↑t₀) (↑t₀ - tmin) ≤ ↑a - ↑r → ∀ {t : ↑(Set.Icc tmin tmax)}, α.toFun t ∈ Metric.closedBall x₀ ↑a
The image of a function in FunSpace is contained within a closed ball.
theorem ODE.FunSpace.compProj_mem_closedBall E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {a r L : NNReal}
(α : ODE.FunSpace t₀ x₀ r L),
↑L * max (tmax - ↑t₀) (↑t₀ - tmin) ≤ ↑a - ↑r → ∀ {t : ℝ}, α.compProj t ∈ Metric.closedBall x₀ ↑a
theorem ODE.FunSpace.continuousOn_comp_compProj E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {a r L K : NNReal},
IsPicardLindelof f t₀ x₀ a r L K →
∀ (α : ODE.FunSpace t₀ x₀ r L), ContinuousOn (fun t' ↦ f t' (α.compProj t')) (Set.Icc tmin tmax)
The integrand in next is continuous.
theorem ODE.FunSpace.intervalIntegrable_comp_compProj E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {a r L K : NNReal},
IsPicardLindelof f t₀ x₀ a r L K →
∀ (α : ODE.FunSpace t₀ x₀ r L) (t : ↑(Set.Icc tmin tmax)),
IntervalIntegrable (fun t' ↦ f t' (α.compProj t')) MeasureTheory.volume ↑t₀ ↑t
The integrand in next is integrable.
def ODE.FunSpace.next E1 #
{E : Type u_1} →
[inst : NormedAddCommGroup E] →
[NormedSpace ℝ E] →
{f : ℝ → E → E} →
{tmin tmax : ℝ} →
{t₀ : ↑(Set.Icc tmin tmax)} →
{x₀ x : E} →
{a r L K : NNReal} →
IsPicardLindelof f t₀ x₀ a r L K →
x ∈ Metric.closedBall x₀ ↑r → ODE.FunSpace t₀ x₀ r L → ODE.FunSpace t₀ x₀ r L
The map on FunSpace defined by picard, some n-th iterate of which will be a contracting
map
theorem ODE.FunSpace.next_apply E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ x : E} {a r L K : NNReal} (hf : IsPicardLindelof f t₀ x₀ a r L K)
(hx : x ∈ Metric.closedBall x₀ ↑r) (α : ODE.FunSpace t₀ x₀ r L) {t : ↑(Set.Icc tmin tmax)},
(ODE.FunSpace.next hf hx α).toFun t = ODE.picard f (↑t₀) x α.compProj ↑t
theorem ODE.FunSpace.next_apply₀ E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ x : E} {a r L K : NNReal} (hf : IsPicardLindelof f t₀ x₀ a r L K)
(hx : x ∈ Metric.closedBall x₀ ↑r) (α : ODE.FunSpace t₀ x₀ r L), (ODE.FunSpace.next hf hx α).toFun t₀ = x
theorem ODE.FunSpace.isFixedPt_next_iff E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ x : E} {a r L K : NNReal} (hf : IsPicardLindelof f t₀ x₀ a r L K)
(hx : x ∈ Metric.closedBall x₀ ↑r) {α : ODE.FunSpace t₀ x₀ r L},
Function.IsFixedPt (ODE.FunSpace.next hf hx) α ↔
∀ (t : ↑(Set.Icc tmin tmax)), α.toFun t = ODE.picard f (↑t₀) x α.compProj ↑t
α is a fixed point of next if and only if it satisfies the integral equation
α t = x + ∫_{t₀}^t f τ (α τ) dτ for all t.
theorem ODE.FunSpace.dist_comp_iterate_next_le E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ x : E} {a r L K : NNReal} (hf : IsPicardLindelof f t₀ x₀ a r L K)
(hx : x ∈ Metric.closedBall x₀ ↑r) (n : ℕ) (t : ↑(Set.Icc tmin tmax)) {α β : ODE.FunSpace t₀ x₀ r L},
dist (((ODE.FunSpace.next hf hx)^[n] α).toFun t) (((ODE.FunSpace.next hf hx)^[n] β).toFun t) ≤
(↑K * |↑t - ↑t₀|) ^ n / ↑n.factorial * dist α β →
dist (f (↑t) (((ODE.FunSpace.next hf hx)^[n] α).toFun t)) (f (↑t) (((ODE.FunSpace.next hf hx)^[n] β).toFun t)) ≤
↑K ^ (n + 1) * |↑t - ↑t₀| ^ n / ↑n.factorial * dist α β
A key step in the inductive case of dist_iterate_next_apply_le
theorem ODE.FunSpace.dist_iterate_next_apply_le E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ x : E} {a r L K : NNReal} (hf : IsPicardLindelof f t₀ x₀ a r L K)
(hx : x ∈ Metric.closedBall x₀ ↑r) (α β : ODE.FunSpace t₀ x₀ r L) (n : ℕ) (t : ↑(Set.Icc tmin tmax)),
dist (((ODE.FunSpace.next hf hx)^[n] α).toFun t) (((ODE.FunSpace.next hf hx)^[n] β).toFun t) ≤
(↑K * |↑t - ↑t₀|) ^ n / ↑n.factorial * dist α β
A time-dependent bound on the distance between the n-th iterates of next on two curves
theorem ODE.FunSpace.dist_iterate_next_iterate_next_le E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ x : E} {a r L K : NNReal} (hf : IsPicardLindelof f t₀ x₀ a r L K)
(hx : x ∈ Metric.closedBall x₀ ↑r) (α β : ODE.FunSpace t₀ x₀ r L) (n : ℕ),
dist ((ODE.FunSpace.next hf hx)^[n] α) ((ODE.FunSpace.next hf hx)^[n] β) ≤
(↑K * max (tmax - ↑t₀) (↑t₀ - tmin)) ^ n / ↑n.factorial * dist α β
The n-th iterate of next is Lipschitz continuous with respect to FunSpace, with constant
$(K \max(t_{\mathrm{max}}, t_{\mathrm{min}})^n / n!$.
theorem ODE.FunSpace.exists_contractingWith_iterate_next E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {a r L K : NNReal} (hf : IsPicardLindelof f t₀ x₀ a r L K),
∃ n C, ∀ (x : E) (hx : x ∈ Metric.closedBall x₀ ↑r), ContractingWith C (ODE.FunSpace.next hf hx)^[n]
Some n-th iterate of next is a contracting map, and its associated Lipschitz constant is
independent of the initial point.
theorem ODE.FunSpace.exists_isFixedPt_next E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ x : E} {a r L K : NNReal} [CompleteSpace E] (hf : IsPicardLindelof f t₀ x₀ a r L K)
(hx : x ∈ Metric.closedBall x₀ ↑r), ∃ α, Function.IsFixedPt (ODE.FunSpace.next hf hx) α
The map next has a fixed point in the space of curves. This will be used to construct a
solution α : ℝ → E to the ODE.
theorem ODE.FunSpace.dist_next_next E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ x y : E} {a r L K : NNReal} (hf : IsPicardLindelof f t₀ x₀ a r L K)
(hx : x ∈ Metric.closedBall x₀ ↑r) (hy : y ∈ Metric.closedBall x₀ ↑r) (α : ODE.FunSpace t₀ x₀ r L),
dist (ODE.FunSpace.next hf hx α) (ODE.FunSpace.next hf hy α) = dist x y
A key step in the base case of exists_forall_closedBall_funSpace_dist_le_mul
theorem ODE.FunSpace.dist_iterate_next_le E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ x : E} {a r L K : NNReal} (hf : IsPicardLindelof f t₀ x₀ a r L K)
(hx : x ∈ Metric.closedBall x₀ ↑r) (α : ODE.FunSpace t₀ x₀ r L) (n : ℕ),
dist α ((ODE.FunSpace.next hf hx)^[n] α) ≤
(∑ i ∈ Finset.range n, (↑K * max (tmax - ↑t₀) (↑t₀ - tmin)) ^ i / ↑i.factorial) * dist α (ODE.FunSpace.next hf hx α)
theorem ODE.FunSpace.dist_iterate_iterate_next_le_of_lipschitzWith E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ x : E} {a r L K : NNReal} (hf : IsPicardLindelof f t₀ x₀ a r L K)
(hx : x ∈ Metric.closedBall x₀ ↑r) (α : ODE.FunSpace t₀ x₀ r L) {m : ℕ} {C : NNReal},
LipschitzWith C (ODE.FunSpace.next hf hx)^[m] →
∀ (n : ℕ),
dist α ((ODE.FunSpace.next hf hx)^[m] ^[n] α) ≤
((∑ i ∈ Finset.range m, (↑K * max (tmax - ↑t₀) (↑t₀ - tmin)) ^ i / ↑i.factorial) *
∑ i ∈ Finset.range n, ↑C ^ i) *
dist α (ODE.FunSpace.next hf hx α)
theorem ODE.FunSpace.exists_forall_closedBall_funSpace_dist_le_mul E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : ℝ → E → E} {tmin tmax : ℝ}
{t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E} {a r L K : NNReal} [CompleteSpace E] (hf : IsPicardLindelof f t₀ x₀ a r L K),
∃ L',
∀ (x y : E) (hx : x ∈ Metric.closedBall x₀ ↑r) (hy : y ∈ Metric.closedBall x₀ ↑r) (α β : ODE.FunSpace t₀ x₀ r L),
Function.IsFixedPt (ODE.FunSpace.next hf hx) α →
Function.IsFixedPt (ODE.FunSpace.next hf hy) β → dist α β ≤ ↑L' * dist x y
The pointwise distance between any two integral curves α and β over their domains is bounded
by a constant L' times the distance between their respective initial points. This is the result of
taking the limit of dist_iterate_iterate_next_le_of_lipschitzWith as n → ∞. This implies that
the local solution of a vector field is Lipschitz continuous in the initial condition.
theorem ODE.hasDerivWithinAt_picard_Icc E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [CompleteSpace E] {f : ℝ → E → E} {α : ℝ → E}
{u : Set E} {t₀ tmin tmax : ℝ},
t₀ ∈ Set.Icc tmin tmax →
ContinuousOn (Function.uncurry f) (Set.Icc tmin tmax ×ˢ u) →
ContinuousOn α (Set.Icc tmin tmax) →
(∀ t ∈ Set.Icc tmin tmax, α t ∈ u) →
∀ (x₀ : E) {t : ℝ},
t ∈ Set.Icc tmin tmax → HasDerivWithinAt (ODE.picard f t₀ x₀ α) (f t (α t)) (Set.Icc tmin tmax) t
If the time-dependent vector field f and the curve α are continuous, then f t (α t) is the
derivative of picard f t₀ x₀ α.
theorem ODE.picard_eq_of_hasDerivAt E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [CompleteSpace E] {f : ℝ → E → E} {α : ℝ → E}
{u : Set E} {t₀ t : ℝ},
ContinuousOn (Function.uncurry f) (Set.uIcc t₀ t ×ˢ u) →
(∀ t' ∈ Set.uIcc t₀ t, HasDerivWithinAt α (f t' (α t')) (Set.uIcc t₀ t) t') →
Set.MapsTo α (Set.uIcc t₀ t) u → ODE.picard f t₀ (α t₀) α t = α t
Converse of hasDerivWithinAt_picard_Icc: if f is the derivative along α, then α
satisfies the integral equation.
theorem ODE.contDiffOn_nat_picard_Icc E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [CompleteSpace E] {f : ℝ → E → E} {α : ℝ → E}
{u : Set E} {t₀ tmin tmax : ℝ},
t₀ ∈ Set.Icc tmin tmax →
∀ {n : ℕ},
ContDiffOn ℝ (↑n) (Function.uncurry f) (Set.Icc tmin tmax ×ˢ u) →
ContinuousOn α (Set.Icc tmin tmax) →
(∀ t ∈ Set.Icc tmin tmax, α t ∈ u) →
∀ (x₀ : E),
(∀ t ∈ Set.Icc tmin tmax, α t = ODE.picard f t₀ x₀ α t) →
ContDiffOn ℝ (↑n) (ODE.picard f t₀ x₀ α) (Set.Icc tmin tmax)
If the time-dependent vector field f is $C^n$ and the curve α is continuous, then
picard f t₀ x₀ α is also $C^n$. This version works for n : ℕ.
theorem ODE.contDiffOn_enat_picard_Icc E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [CompleteSpace E] {f : ℝ → E → E} {α : ℝ → E}
{u : Set E} {t₀ tmin tmax : ℝ},
t₀ ∈ Set.Icc tmin tmax →
∀ {n : ℕ∞},
ContDiffOn ℝ (↑n) (Function.uncurry f) (Set.Icc tmin tmax ×ˢ u) →
ContinuousOn α (Set.Icc tmin tmax) →
(∀ t ∈ Set.Icc tmin tmax, α t ∈ u) →
∀ (x₀ : E),
(∀ t ∈ Set.Icc tmin tmax, α t = ODE.picard f t₀ x₀ α t) →
ContDiffOn ℝ (↑n) (ODE.picard f t₀ x₀ α) (Set.Icc tmin tmax)
If the time-dependent vector field f is $C^n$ and the curve α is continuous, then
picard f t₀ x₀ α is also $C^n$. This version works for n : ℕ∞.
TODO: Extend to the analytic n = ⊤ case.
theorem ODE.contDiffOn_enat_Icc_of_hasDerivWithinAt E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [CompleteSpace E] {f : ℝ → E → E} {α : ℝ → E}
{u : Set E} {tmin tmax : ℝ} {n : ℕ∞},
ContDiffOn ℝ (↑n) (Function.uncurry f) (Set.Icc tmin tmax ×ˢ u) →
(∀ t ∈ Set.Icc tmin tmax, HasDerivWithinAt α (f t (α t)) (Set.Icc tmin tmax) t) →
Set.MapsTo α (Set.Icc tmin tmax) u → ContDiffOn ℝ (↑n) α (Set.Icc tmin tmax)
Solutions to ODEs defined by $C^n$ vector fields are also $C^n$.
theorem IsPicardLindelof.continuousOn_uncurry E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {f : ℝ → E → E} {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E}
{a r L K : NNReal},
IsPicardLindelof f t₀ x₀ a r L K → ContinuousOn (Function.uncurry f) (Set.Icc tmin tmax ×ˢ Metric.closedBall x₀ ↑a)
theorem IsPicardLindelof.shrink E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {f : ℝ → E → E} {tmin tmax tmin' tmax' : ℝ} {t₀ : ↑(Set.Icc tmin tmax)}
{x₀ : E} {a r L K : NNReal},
IsPicardLindelof f t₀ x₀ a r L K →
∀ (t₀' : ↑(Set.Icc tmin' tmax')),
tmin ≤ tmin' →
tmax' ≤ tmax →
∀ {a' r' : NNReal},
a' ≤ a → ↑L * max (tmax' - ↑t₀') (↑t₀' - tmin') ≤ ↑a' - ↑r' → IsPicardLindelof f t₀' x₀ a' r' L K
Shrink the Picard-Lindelöf parameters to a smaller ball and time interval. The new radius a'
and initial deviation r' can be chosen freely as long as a' ≤ a and the time constraint
L * max (tmax' - t₀') (t₀' - tmin') ≤ a' - r' is satisfied.
theorem IsPicardLindelof.shrink_time E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {f : ℝ → E → E} {tmin tmax tmin' tmax' : ℝ} {t₀ : ↑(Set.Icc tmin tmax)}
{x₀ : E} {a r L K : NNReal},
IsPicardLindelof f t₀ x₀ a r L K →
∀ (t₀' : ↑(Set.Icc tmin' tmax')), ↑t₀ = ↑t₀' → tmin ≤ tmin' → tmax' ≤ tmax → IsPicardLindelof f t₀' x₀ a r L K
IsPicardLindelof is preserved when shrinking the time interval.
theorem IsPicardLindelof.weaken_lipschitz E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {f : ℝ → E → E} {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E}
{a r L K : NNReal}, IsPicardLindelof f t₀ x₀ a r L K → ∀ {K' : NNReal}, K ≤ K' → IsPicardLindelof f t₀ x₀ a r L K'
IsPicardLindelof is preserved when enlarging the Lipschitz constant K.
theorem IsPicardLindelof.exists_shrink_radius E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {f : ℝ → E → E} {t₀ ε : ℝ} (hε : 0 < ε) {x₀ : E} {a r L K : NNReal},
IsPicardLindelof f ⟨t₀, ⋯⟩ x₀ a r L K →
∀ {a' r' : NNReal}, a' ≤ a → r' < a' → ∃ ε', ∃ (hε' : 0 < ε'), IsPicardLindelof f ⟨t₀, ⋯⟩ x₀ a' r' L K
Given IsPicardLindelof on a symmetric interval [t₀ - ε, t₀ + ε], if we shrink the radius
from a to a' with a' ≤ a, and choose any r' < a', then there exists ε' > 0 such that
IsPicardLindelof holds on [t₀ - ε', t₀ + ε'] with the new parameters.
theorem IsPicardLindelof.of_time_independent E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] {f : E → E} {tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ : E}
{a r L K : NNReal},
(∀ x ∈ Metric.closedBall x₀ ↑a, ‖f x‖ ≤ ↑L) →
LipschitzOnWith K f (Metric.closedBall x₀ ↑a) →
↑L * max (tmax - ↑t₀) (↑t₀ - tmin) ≤ ↑a - ↑r → IsPicardLindelof (fun x ↦ f) t₀ x₀ a r L K
The special case where the vector field is independent of time
theorem IsPicardLindelof.of_contDiffAt_one E2 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : E → E} {x₀ : E},
ContDiffAt ℝ 1 f x₀ →
∃ ε, ∃ (hε : 0 < ε), ∃ a r L K, ∃ (_ : 0 < r), ∀ (t₀ : ℝ), IsPicardLindelof (fun x ↦ f) ⟨t₀, ⋯⟩ x₀ a r L K
A time-independent, continuously differentiable ODE satisfies the hypotheses of the Picard-Lindelöf theorem.
theorem IsPicardLindelof.exists_eq_forall_mem_Icc_eq_picard E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [CompleteSpace E] {f : ℝ → E → E}
{tmin tmax : ℝ} {t₀ : ↑(Set.Icc tmin tmax)} {x₀ x : E} {a r L K : NNReal},
IsPicardLindelof f t₀ x₀ a r L K →
x ∈ Metric.closedBall x₀ ↑r → ∃ α, α ↑t₀ = x ∧ ∀ t ∈ Set.Icc tmin tmax, α t = ODE.picard f (↑t₀) x α t
Picard-Lindelöf (Cauchy-Lipschitz) theorem, integral form. This version shows the existence
of a local solution whose initial point x may be different from the centre x₀ of the closed
ball within which the properties of the vector field hold.