Theorem 8.10 (Liouville) — the volume in phase space is preserved under a Hamiltonian flow
ProvedTeschlODE.HigherDim.liouvilleLet be an open region of phase space with points , let be a Hamilton function, and let be the (local) flow of Hamilton's equations
on . Then the volume in phase space is preserved under the flow: for every measurable and every time at which all points of are still alive ( for all ),
where is Lebesgue measure on .
Liouville's theorem is the basic structural fact of Hamiltonian mechanics: it underlies Poincaré recurrence (Theorem 8.11), statistical mechanics (invariance of the microcanonical measure) and the obstruction to asymptotically stable equilibria in Hamiltonian systems.
Formalization Note. The book states it in one line. The statement reads "Hamiltonian flow" as the flow of for on an open (the regularity Lemma 8.8 needs for a vector field) and "volume" as Lebesgue measure of any measurable set of points alive at time , a set that may be unbounded and have infinite volume. The chapter's completeness assumption is not needed and is not made; when the flow is complete, the hypothesis on holds for every . Phase points are pairs (p, q) in EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n), whose volume is the product Lebesgue measure.
import Mathlib import Definitions.Def_TeschlODE_HigherDim_IsIntegralCurve import Definitions.Def_TeschlODE_HigherDim_IsMaximalFlow import Definitions.Def_TeschlODE_HigherDim_hamiltonianVectorField open MeasureTheory
namespace TeschlODE.HigherDim
/-- Teschl, Theorem 8.10 (Liouville), p. 241: the volume in phase space is preserved under a
Hamiltonian flow. `H` is `C²` on the open phase-space region `Ω ⊆ ℝⁿ × ℝⁿ`, `Φ` is the (local)
flow of Hamilton's equations (8.43) on `Ω`; for every measurable `U ⊆ Ω` and every time `t`
at which all points of `U` are still alive, `|Φ(t, U)| = |U|` (Lebesgue measure on `ℝ²ⁿ`). -/
theorem liouville {n : ℕ}
(Ω : Set (EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n))) (hΩ : IsOpen Ω)
(H : EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n) → ℝ) (hH : ContDiffOn ℝ 2 H Ω)
(I : EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n) → Set ℝ)
(Φ : ℝ → EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n) →
EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n))
(hΦ : IsMaximalFlow (hamiltonianVectorField H) Ω I Φ)
(U : Set (EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n))) (hU : MeasurableSet U)
(hUΩ : U ⊆ Ω) (t : ℝ) (ht : ∀ x ∈ U, t ∈ I x) :
volume (Φ t '' U) = volume U := by sorry
end TeschlODE.HigherDim
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement ranges over a natural number and the phase space , where is -dimensional Euclidean space with its Euclidean structure. Write a point of this space as with . The statement takes the following data and hypotheses:
- a set that is open;
- a real-valued function , defined on the whole space, that is twice continuously differentiable on ( on ). Nothing is assumed about outside ;
- a map that assigns a set of times to every point of the phase space;
- a map , written . It is defined for every real and every point , including times outside and points outside ;
- the hypothesis that satisfies the bundle predicate for the vector field , where is the bundle's definition applied to . The Lean text of , and the imported is not included in the code under review. This read-back therefore cannot unfold them. It can only record that the hypothesis is whatever these definitions say about , , and . In particular, it cannot confirm:
- which formula uses for the partial derivatives of ;
- what value takes where is not differentiable;
- whether is required to be an open interval containing ;
- whether ;
- whether is required to solve and stay in ;
- in what sense the flow is "maximal";
- a set that is Borel measurable and contained in ;
- a real time such that for every .
The conclusion is that the Lebesgue measure on gives the same value to and to its image under :
Here is the product of the standard volume measures on the two Euclidean factors. The equality holds in , so both sides may be . The image is not assumed to be measurable. The left side is the value of Lebesgue outer measure on that image. The statement says nothing about injectivity of . It says nothing about times at which some point of has .
Degenerate cases:
- , including every case with . The time condition is vacuous, so is arbitrary. Both sides are , and the statement holds trivially.
- . The phase space has exactly one point, and the volume measure gives that point measure and the empty set measure . Any nonempty is the whole one-point space, and its image under is that same point. So both sides equal when and when .
- Values outside the hypotheses. Outside the values never enter the conclusion. Values of outside can enter it only through whatever and require. That cannot be checked from the code shown.
- A hypothesis that cannot be met. If the unseen definition of is unsatisfiable for a given and , the statement is vacuous for that and . The same holds whenever no lies in every for , which happens, for example, if some is empty. The code shown does not rule either case out.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.