Planar vector fields: periodic orbits, limit cycles, hyperbolicity, inverse integrating factors
DefinitionHilbertSixteenth_DynamicsLet be a planar vector field, defining the differential equation .
- A solution is a curve , defined for all times, with for every .
- A periodic solution with period is a non-constant solution with and for all .
- A periodic orbit is the image of a periodic solution.
- A limit cycle is a periodic orbit isolated in the set of periodic orbits: there is an open set such that the only periodic orbit contained in is itself.
- The divergence of at is .
- A limit cycle is hyperbolic if for some -periodic solution with image ,
- A function is an inverse integrating factor of on if is on and
These notions are the dynamical vocabulary of the whole mission: every statement about limit cycles refers to them.
Formalization Note The vector field is an arbitrary function ℝ × ℝ → ℝ × ℝ; a field given only on an open set is represented by any extension. The divergence is computed with the Fréchet derivative, which Lean sets to at points where is not differentiable, so the divergence is only meaningful where is differentiable. The characteristic exponent does not depend on the chosen period or parametrisation, which is why an existential quantifier is used.
import Mathlib
/-!
# Planar vector fields: solutions, periodic orbits and limit cycles
Source: J. Llibre, *Sobre el problema 16 de Hilbert*, La Gaceta de la RSME 18 (2015),
no. 3, 543–554, §1 (definition of limit cycle) and §7 (inverse integrating factor).
A planar vector field is an arbitrary map `F : ℝ × ℝ → ℝ × ℝ`; the differential equation
is `ż = F z`.
-/
namespace HilbertSixteenth
/-- `γ` is a solution of `ż = F z` defined for all real times. -/
def IsSolution (F : ℝ × ℝ → ℝ × ℝ) (γ : ℝ → ℝ × ℝ) : Prop :=
∀ t : ℝ, HasDerivAt γ (F (γ t)) t
/-- `γ` is a non-constant solution of `ż = F z` which is periodic with period `T > 0`. -/
def IsPeriodicSolution (F : ℝ × ℝ → ℝ × ℝ) (γ : ℝ → ℝ × ℝ) (T : ℝ) : Prop :=
IsSolution F γ ∧ 0 < T ∧ (∀ t : ℝ, γ (t + T) = γ t) ∧ ∃ t : ℝ, γ t ≠ γ 0
/-- `O` is a periodic orbit of `ż = F z`: the trajectory of a non-constant periodic solution. -/
def IsPeriodicOrbit (F : ℝ × ℝ → ℝ × ℝ) (O : Set (ℝ × ℝ)) : Prop :=
∃ (γ : ℝ → ℝ × ℝ) (T : ℝ), IsPeriodicSolution F γ T ∧ Set.range γ = O
/-- A limit cycle is a periodic orbit which is isolated in the set of all periodic orbits:
some open neighbourhood of it contains no other periodic orbit. -/
def IsLimitCycle (F : ℝ × ℝ → ℝ × ℝ) (O : Set (ℝ × ℝ)) : Prop :=
IsPeriodicOrbit F O ∧
∃ U : Set (ℝ × ℝ), IsOpen U ∧ O ⊆ U ∧
∀ O' : Set (ℝ × ℝ), IsPeriodicOrbit F O' → O' ⊆ U → O' = O
/-- The divergence `∂P/∂x + ∂Q/∂y` of the vector field `F = (P, Q)` at `p`. -/
noncomputable def divergence (F : ℝ × ℝ → ℝ × ℝ) (p : ℝ × ℝ) : ℝ :=
(fderiv ℝ F p (1, 0)).1 + (fderiv ℝ F p (0, 1)).2
/-- A hyperbolic limit cycle: a limit cycle `O`, parametrised by a `T`-periodic solution `γ`,
whose characteristic exponent `∫₀ᵀ div F (γ t) dt` is non-zero. -/
def IsHyperbolicLimitCycle (F : ℝ × ℝ → ℝ × ℝ) (O : Set (ℝ × ℝ)) : Prop :=
IsLimitCycle F O ∧
∃ (γ : ℝ → ℝ × ℝ) (T : ℝ), IsPeriodicSolution F γ T ∧ Set.range γ = O ∧
(∫ t in (0 : ℝ)..T, divergence F (γ t)) ≠ 0
/-- `V` is an inverse integrating factor of `F = (P, Q)` on `U`: `V` is `C¹` on `U` and
`P ∂V/∂x + Q ∂V/∂y = (∂P/∂x + ∂Q/∂y) V` on `U`. -/
def IsInverseIntegratingFactor (F : ℝ × ℝ → ℝ × ℝ) (U : Set (ℝ × ℝ)) (V : ℝ × ℝ → ℝ) :
Prop :=
ContDiffOn ℝ 1 V U ∧ ∀ p ∈ U, fderiv ℝ V p (F p) = divergence F p * V p
end HilbertSixteenth
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; NON-BLIND
Disclosure — NON-BLIND read-back. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statements of this proposal, at the explicit request of the proposal owner. It is not independent testimony: its author knew the intended meaning of the code while writing it, so it may unconsciously read that intent into the code. Reviewers should compare the Lean code against the source directly and should not treat this text as an independent audit.
Let be an arbitrary function (no continuity or smoothness is assumed by the definitions themselves).
- Solution. A map is a solution of if for every real , is differentiable at with derivative . Solutions defined only on a bounded time interval are not covered.
- Periodic solution. is a periodic solution of with period if is a solution, , for all real , and there is some with (so is not constant). need not be the minimal period.
- Periodic orbit. A set is a periodic orbit of if there are and such that is a periodic solution of with period and equals the image .
- Limit cycle. is a limit cycle of if is a periodic orbit and there is an open set with such that every periodic orbit of with equals . (Periodic orbits that merely intersect without being contained in it are not restricted.)
- Divergence. , where is the Fréchet derivative of at ; i.e. at . If is not differentiable at , Lean's convention makes and hence .
- Hyperbolic limit cycle. is a hyperbolic limit cycle of if is a limit cycle and there exist , with a periodic solution of period , image equal to , and
where the integral is Lean's interval integral (which is if the integrand is not integrable).
- Inverse integrating factor. Given (no openness required by the definition) and , is an inverse integrating factor of on if is continuously differentiable () on and, for every , , where is the Fréchet derivative of at as a function on all of (taken to be if is not differentiable at ). Writing , the condition reads at every point of .