The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V17. Differential calculus in normed spaces

Mathlib.Analysis.ODE.ExistUnique

15 declarations. Mathlib docs · Source

Existence and uniqueness of solutions to ODEs

This file collects the public-facing existence and uniqueness theorems for solutions to ODEs in normed spaces.

Main results

  • IsPicardLindelof.exists_eq_forall_mem_Icc_hasDerivWithinAt: the Picard-Lindelöf theorem, stating the existence of a local solution to a time-dependent ODE.
  • IsPicardLindelof.exists_forall_mem_closedBall_eq_hasDerivWithinAt_lipschitzOnWith: the existence of a local flow that is Lipschitz continuous in the initial point.
  • IsPicardLindelof.exists_forall_mem_closedBall_eq_hasDerivWithinAt_continuousOn: the existence of a local flow E × ℝ → E that is continuous on its domain.
  • IsPicardLindelof.exists_forall_mem_closedBall_eq_forall_mem_Icc_hasDerivWithinAt: the existence of a local flow to a time-dependent vector field.
  • ContDiffAt.exists_forall_mem_closedBall_exists_eq_forall_mem_Ioo_hasDerivAt: a C¹ vector field admits solutions on open intervals for all nearby initial points.
  • ContDiffAt.exists_forall_mem_closedBall_exists_eq_forall_mem_Ioo_hasDerivAt₀: a C¹ vector field admits a local solution.
  • ContDiffAt.exists_eventually_eq_hasDerivAt: a C¹ vector field admits a local flow.
  • ODE_solution_unique and variants: uniqueness statements for ODE solutions on various intervals.

Tags

integral curve, vector field, existence, uniqueness, Picard-Lindelöf, Gronwall

Existence of solutions to ODEs

$C^1$ vector field

Uniqueness of solutions to ODEs

theorem IsPicardLindelof.exists_eq_forall_mem_Icc_hasDerivWithinAt E3 #

∀ {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, HasDerivWithinAt α (f t (α t)) (Set.Icc tmin tmax) t

Picard-Lindelöf (Cauchy-Lipschitz) theorem, differential 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.

theorem IsPicardLindelof.exists_eq_forall_mem_Icc_hasDerivWithinAt₀ 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₀ : E} {a L K : NNReal},
  IsPicardLindelof f t₀ x₀ a 0 L K →
    ∃ α, α ↑t₀ = x₀ ∧ ∀ t ∈ Set.Icc tmin tmax, HasDerivWithinAt α (f t (α t)) (Set.Icc tmin tmax) t

Picard-Lindelöf (Cauchy-Lipschitz) theorem, differential form.

theorem IsPicardLindelof.exists_forall_mem_closedBall_eq_hasDerivWithinAt_lipschitzOnWith E3 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [CompleteSpace 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₀ ↑r,
          α x ↑t₀ = x ∧ ∀ t ∈ Set.Icc tmin tmax, HasDerivWithinAt (α x) (f t (α x t)) (Set.Icc tmin tmax) t) ∧
        ∃ L', ∀ t ∈ Set.Icc tmin tmax, LipschitzOnWith L' (fun x ↦ α x t) (Metric.closedBall x₀ ↑r)

Picard-Lindelöf (Cauchy-Lipschitz) theorem, differential form. This version shows the existence of a local flow and that it is Lipschitz continuous in the initial point.

theorem IsPicardLindelof.exists_forall_mem_closedBall_eq_hasDerivWithinAt_continuousOn E3 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [CompleteSpace 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₀ ↑r,
          α (x, ↑t₀) = x ∧
            ∀ t ∈ Set.Icc tmin tmax, HasDerivWithinAt (fun x_1 ↦ α (x, x_1)) (f t (α (x, t))) (Set.Icc tmin tmax) t) ∧
        ContinuousOn α (Metric.closedBall x₀ ↑r ×ˢ Set.Icc tmin tmax)

Picard-Lindelöf (Cauchy-Lipschitz) theorem, differential form. This version shows the existence of a local flow and that it is continuous on its domain as a (partial) map E × ℝ → E.

theorem IsPicardLindelof.exists_forall_mem_closedBall_eq_forall_mem_Icc_hasDerivWithinAt E3 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [CompleteSpace 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₀ ↑r,
        α x ↑t₀ = x ∧ ∀ t ∈ Set.Icc tmin tmax, HasDerivWithinAt (α x) (f t (α x t)) (Set.Icc tmin tmax) t

Picard-Lindelöf (Cauchy-Lipschitz) theorem, differential form. This version shows the existence of a local flow.

theorem ContDiffAt.exists_forall_mem_closedBall_exists_eq_forall_mem_Ioo_hasDerivAt E3 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [CompleteSpace E] {f : E → E} {x₀ : E},
  ContDiffAt ℝ 1 f x₀ →
    ∀ (t₀ : ℝ),
      ∃ r > 0,
        ∃ ε > 0, ∀ x ∈ Metric.closedBall x₀ r, ∃ α, α t₀ = x ∧ ∀ t ∈ Set.Ioo (t₀ - ε) (t₀ + ε), HasDerivAt α (f (α t)) t

If a vector field f : E → E is continuously differentiable at x₀ : E, then it admits an integral curve α : ℝ → E defined on an open interval, with initial condition α t₀ = x, where x may be different from x₀.

theorem ContDiffAt.exists_forall_mem_closedBall_exists_eq_forall_mem_Ioo_hasDerivAt₀ E3 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [CompleteSpace E] {f : E → E} {x₀ : E},
  ContDiffAt ℝ 1 f x₀ → ∀ (t₀ : ℝ), ∃ α, α t₀ = x₀ ∧ ∃ ε > 0, ∀ t ∈ Set.Ioo (t₀ - ε) (t₀ + ε), HasDerivAt α (f (α t)) t

If a vector field f : E → E is continuously differentiable at x₀ : E, then it admits an integral curve α : ℝ → E defined on an open interval, with initial condition α t₀ = x₀.

theorem ContDiffAt.exists_eventually_eq_hasDerivAt E3 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [CompleteSpace E] {f : E → E} {x₀ : E},
  ContDiffAt ℝ 1 f x₀ →
    ∀ (t₀ : ℝ),
      ∃ α, ∀ᶠ (xt : E × ℝ) in nhds x₀ ×ˢ nhds t₀, α xt.1 t₀ = xt.1 ∧ HasDerivAt (α xt.1) (f (α xt.1 xt.2)) xt.2

If a vector field f : E → E is continuously differentiable at x₀ : E, then it admits a flow α : E → ℝ → E defined on an open domain, with initial condition α x t₀ = x for all x within the domain.

theorem ODE_solution_unique_of_mem_Icc_right E1 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {v : ℝ → E → E} {s : ℝ → Set E} {K : NNReal}
  {f g : ℝ → E} {a b : ℝ},
  (∀ t ∈ Set.Ico a b, LipschitzOnWith K (v t) (s t)) →
    ContinuousOn f (Set.Icc a b) →
      (∀ t ∈ Set.Ico a b, HasDerivWithinAt f (v t (f t)) (Set.Ici t) t) →
        (∀ t ∈ Set.Ico a b, f t ∈ s t) →
          ContinuousOn g (Set.Icc a b) →
            (∀ t ∈ Set.Ico a b, HasDerivWithinAt g (v t (g t)) (Set.Ici t) t) →
              (∀ t ∈ Set.Ico a b, g t ∈ s t) → f a = g a → Set.EqOn f g (Set.Icc a b)

There exists only one solution of an ODE $\dot x=v(t, x)$ in a set s ⊆ ℝ × E with a given initial value provided that the RHS is Lipschitz continuous in x within s, and we consider only solutions included in s.

This version shows uniqueness in a closed interval Icc a b, where a is the initial time.

theorem ODE_solution_unique_of_mem_Icc_left E1 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {v : ℝ → E → E} {s : ℝ → Set E} {K : NNReal}
  {f g : ℝ → E} {a b : ℝ},
  (∀ t ∈ Set.Ioc a b, LipschitzOnWith K (v t) (s t)) →
    ContinuousOn f (Set.Icc a b) →
      (∀ t ∈ Set.Ioc a b, HasDerivWithinAt f (v t (f t)) (Set.Iic t) t) →
        (∀ t ∈ Set.Ioc a b, f t ∈ s t) →
          ContinuousOn g (Set.Icc a b) →
            (∀ t ∈ Set.Ioc a b, HasDerivWithinAt g (v t (g t)) (Set.Iic t) t) →
              (∀ t ∈ Set.Ioc a b, g t ∈ s t) → f b = g b → Set.EqOn f g (Set.Icc a b)

A time-reversed version of ODE_solution_unique_of_mem_Icc_right. Uniqueness is shown in a closed interval Icc a b, where b is the "initial" time.

theorem ODE_solution_unique_of_mem_Icc E1 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {v : ℝ → E → E} {s : ℝ → Set E} {K : NNReal}
  {f g : ℝ → E} {a b t₀ : ℝ},
  (∀ t ∈ Set.Ioo a b, LipschitzOnWith K (v t) (s t)) →
    t₀ ∈ Set.Ioo a b →
      ContinuousOn f (Set.Icc a b) →
        (∀ t ∈ Set.Ioo a b, HasDerivAt f (v t (f t)) t) →
          (∀ t ∈ Set.Ioo a b, f t ∈ s t) →
            ContinuousOn g (Set.Icc a b) →
              (∀ t ∈ Set.Ioo a b, HasDerivAt g (v t (g t)) t) →
                (∀ t ∈ Set.Ioo a b, g t ∈ s t) → f t₀ = g t₀ → Set.EqOn f g (Set.Icc a b)

A version of ODE_solution_unique_of_mem_Icc_right for uniqueness in a closed interval whose interior contains the initial time.

theorem ODE_solution_unique_of_mem_Ioo E1 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {v : ℝ → E → E} {s : ℝ → Set E} {K : NNReal}
  {f g : ℝ → E} {a b t₀ : ℝ},
  (∀ t ∈ Set.Ioo a b, LipschitzOnWith K (v t) (s t)) →
    t₀ ∈ Set.Ioo a b →
      (∀ t ∈ Set.Ioo a b, HasDerivAt f (v t (f t)) t ∧ f t ∈ s t) →
        (∀ t ∈ Set.Ioo a b, HasDerivAt g (v t (g t)) t ∧ g t ∈ s t) → f t₀ = g t₀ → Set.EqOn f g (Set.Ioo a b)

A version of ODE_solution_unique_of_mem_Icc for uniqueness in an open interval.

theorem ODE_solution_unique_of_eventually E1 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {v : ℝ → E → E} {s : ℝ → Set E} {K : NNReal}
  {f g : ℝ → E} {t₀ : ℝ},
  (∀ᶠ (t : ℝ) in nhds t₀, LipschitzOnWith K (v t) (s t)) →
    (∀ᶠ (t : ℝ) in nhds t₀, HasDerivAt f (v t (f t)) t ∧ f t ∈ s t) →
      (∀ᶠ (t : ℝ) in nhds t₀, HasDerivAt g (v t (g t)) t ∧ g t ∈ s t) → f t₀ = g t₀ → f =ᶠ[nhds t₀] g

Local uniqueness of ODE solutions.

theorem ODE_solution_unique E3 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {v : ℝ → E → E} {K : NNReal} {f g : ℝ → E}
  {a b : ℝ},
  (∀ (t : ℝ), LipschitzWith K (v t)) →
    ContinuousOn f (Set.Icc a b) →
      (∀ t ∈ Set.Ico a b, HasDerivWithinAt f (v t (f t)) (Set.Ici t) t) →
        ContinuousOn g (Set.Icc a b) →
          (∀ t ∈ Set.Ico a b, HasDerivWithinAt g (v t (g t)) (Set.Ici t) t) → f a = g a → Set.EqOn f g (Set.Icc a b)

There exists only one solution of an ODE $\dot x=v(t, x)$ with a given initial value provided that the RHS is Lipschitz continuous in x.

theorem ODE_solution_unique_univ E1 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {v : ℝ → E → E} {s : ℝ → Set E} {K : NNReal}
  {f g : ℝ → E} {t₀ : ℝ},
  (∀ (t : ℝ), LipschitzOnWith K (v t) (s t)) →
    (∀ (t : ℝ), HasDerivAt f (v t (f t)) t ∧ f t ∈ s t) →
      (∀ (t : ℝ), HasDerivAt g (v t (g t)) t ∧ g t ∈ s t) → f t₀ = g t₀ → f = g

There exists only one global solution to an ODE $\dot x=v(t, x)$ with a given initial value provided that the RHS is Lipschitz continuous.