Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 6.3 — a forward (backward) orbit in a compact subset of MMM forces + (−) completeness

Proved
TeschlODE.Stability.complete_of_semiOrbit_subset_compact

by mikedeng1 · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

completenessdynamical-systemsordinary-differential-equationsp2o-batch-books5p2o-gran-per-chapterp2o-plan-bookp2o-v1

Let M⊆RnM \subseteq \mathbb{R}^nM⊆Rn be open, f∈C1(M,Rn)f \in C^1(M, \mathbb{R}^n)f∈C1(M,Rn), and let Φ\PhiΦ be the flow of x˙=f(x)\dot x = f(x)x˙=f(x) with maximal intervals Ix=(T−(x),T+(x))I_x = (T_-(x), T_+(x))Ix​=(T−​(x),T+​(x)). Let σ∈{+1,−1}\sigma \in \{+1, -1\}σ∈{+1,−1}, x∈Mx \in Mx∈M, and suppose the forward (σ=1\sigma = 1σ=1) resp. backward (σ=−1\sigma = -1σ=−1) orbit γσ(x)\gamma_\sigma(x)γσ​(x) lies in a compact subset CCC of MMM. Then xxx is σ\sigmaσ complete:

Tσ(x)=σ∞,i.e.σs∈Ix  for every s>0.T_\sigma(x) = \sigma\infty, \quad\text{i.e.}\quad \sigma s \in I_x \ \text{ for every } s > 0 .Tσ​(x)=σ∞,i.e.σs∈Ix​  for every s>0.

Formalization Note. The book's f∈Ckf \in C^kf∈Ck, k≥1k \ge 1k≥1 (standing assumption of §6.2) is taken with k=1k = 1k=1, the weakest case. The two directions are one statement parametrized by the real sign σ=±1\sigma = \pm 1σ=±1.

Preamble
import Mathlib
import Definitions.Def_TeschlODE_Stability_IsIntegralCurve
import Definitions.Def_TeschlODE_Stability_IsMaximalFlow
import Definitions.Def_TeschlODE_Stability_semiOrbit
Formal statement
namespace TeschlODE.Stability

theorem complete_of_semiOrbit_subset_compact {n : ℕ}
    (f : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n))
    (M : Set (EuclideanSpace ℝ (Fin n))) (hM : IsOpen M) (hf : ContDiffOn ℝ 1 f M)
    (I : EuclideanSpace ℝ (Fin n) → Set ℝ)
    (Φ : ℝ → EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n))
    (hΦ : IsMaximalFlow f M I Φ)
    (σ : ℝ) (hσ : σ = 1 ∨ σ = -1) (x : EuclideanSpace ℝ (Fin n)) (hx : x ∈ M)
    (C : Set (EuclideanSpace ℝ (Fin n))) (hC : IsCompact C) (hCM : C ⊆ M)
    (horb : semiOrbit σ I Φ x ⊆ C) :
    ∀ s : ℝ, 0 < s → σ * s ∈ I x := by sorry

end TeschlODE.Stability
Source
Teschl, Ordinary Differential Equations and Dynamical Systems (author's preliminary version of AMS GSM 140, 2012), p. 193, Lemma 6.3
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

This is a theorem. Let n∈Nn\in\mathbb{N}n∈N, let M⊆RnM\subseteq\mathbb{R}^nM⊆Rn be open, and let f:Rn→Rnf:\mathbb{R}^n\to\mathbb{R}^nf:Rn→Rn be continuously differentiable on MMM. Let x↦Ix⊆Rx\mapsto I_x\subseteq\mathbb{R}x↦Ix​⊆R and Φ:R×Rn→Rn\Phi:\mathbb{R}\times\mathbb{R}^n\to\mathbb{R}^nΦ:R×Rn→Rn form a maximal flow of fff on MMM, meaning that for every x∈Mx\in Mx∈M:

  • IxI_xIx​ is empty or an open interval with 0∈Ix0\in I_x0∈Ix​,
  • Φ(0,x)=x\Phi(0,x)=xΦ(0,x)=x,
  • Φ(t,x)∈M\Phi(t,x)\in MΦ(t,x)∈M and ∂tΦ(t,x)=f(Φ(t,x))\partial_t\Phi(t,x)=f(\Phi(t,x))∂t​Φ(t,x)=f(Φ(t,x)) for t∈Ixt\in I_xt∈Ix​,
  • every integral curve ψ\psiψ of fff in MMM on an open interval J∋0J\ni0J∋0 with ψ(0)=x\psi(0)=xψ(0)=x satisfies J⊆IxJ\subseteq I_xJ⊆Ix​ and ψ=Φ(⋅,x)\psi=\Phi(\cdot,x)ψ=Φ(⋅,x) on JJJ.

Let σ∈{1,−1}\sigma\in\{1,-1\}σ∈{1,−1} and x∈Mx\in Mx∈M. Let C⊆RnC\subseteq\mathbb{R}^nC⊆Rn be compact with C⊆MC\subseteq MC⊆M. Assume the semi-orbit

γσ(x)={Φ(t,x)  :  t∈Ix, σt>0}\gamma_\sigma(x)=\{\Phi(t,x)\;:\;t\in I_x,\ \sigma t>0\}γσ​(x)={Φ(t,x):t∈Ix​, σt>0}

is contained in CCC. Then for every real s>0s>0s>0, σs∈Ix\sigma s\in I_xσs∈Ix​. That is:

  • if σ=1\sigma=1σ=1: (0,∞)⊆Ix(0,\infty)\subseteq I_x(0,∞)⊆Ix​;
  • if σ=−1\sigma=-1σ=−1: (−∞,0)⊆Ix(-\infty,0)\subseteq I_x(−∞,0)⊆Ix​.

Degenerate cases:

  • Since IxI_xIx​ is open and contains 000, γσ(x)\gamma_\sigma(x)γσ​(x) is nonempty, so the hypotheses cannot hold with C=∅C=\emptysetC=∅.
  • The case M=∅M=\emptysetM=∅ is excluded by x∈Mx\in Mx∈M.
  • For n=0n=0n=0, the maximal-flow hypothesis already gives Ix=RI_x=\mathbb{R}Ix​=R, so the conclusion holds.
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 2, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me