Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_HilbertSixteenth_Dynamics.lean
qedmarket’s copy of theproofnetwork/open-problems@860a535, 3 Dec 2026original source ↗
/-From Prove2Me, definition `HilbertSixteenth_Dynamics` (https://prove2.me/definitions/520cb26a-45a2-4800-814e-1959008385a5). Apache-2.0 per Prove2Me's terms.-/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 equationis `ż = 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