implies the Hamiltonian is conserved
ProvedClassicalDynamics.hamiltonian_conservedTong, eq. (2.47). If a smooth Lagrangian does not depend explicitly on time, i.e. everywhere, then along any smooth solution of Lagrange's equations the Hamiltonian
is a constant of the motion: it takes the same value at all times. , written as a function of the coordinates and the conjugate momenta, is usually identified with the total energy of the system.
import Definitions.Def_ClassicalDynamics_core
namespace ClassicalDynamics
/-- Tong, eq. (2.47): if `∂L/∂t = 0` then the Hamiltonian is a constant of the motion. -/
theorem hamiltonian_conserved {n : ℕ} (L : Lagrangian n)
(hL : IsSmoothLagrangian L)
(hLt : ∀ (t : ℝ) (x v : Fin n → ℝ), deriv (fun s : ℝ => L s x v) t = 0)
(q : ℝ → Fin n → ℝ) (hq : ContDiff ℝ (⊤ : ℕ∞) q) (hmot : IsMotion L q) :
IsConstantInTime (fun t => hamiltonian L t (q t) (vel q t)) := by sorry
end ClassicalDynamicsRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — the drafting agent itself; see the notice above
Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statements in this proposal, not by an independent blind auditor. Its author knew what the code was intended to say, so it cannot serve the usual purpose of catching a mismatch between intent and code. Treat it as an aid to reading the Lean, and obtain an independent blind read-back before relying on it during the audit.
Fix a natural number , a Lagrangian on -tuples of reals, and a path . Four hypotheses are assumed.
- is jointly in .
- For every real and every pair of -tuples , the derivative in the time slot vanishes:
Because this derivative operator is total, the hypothesis is literally that this value is ; combined with hypothesis 1 it says does not vary with . 3. The path is . 4. The path satisfies Lagrange's equations at every time: for each index and each real , the function is differentiable at with derivative , the partial derivatives being one-variable derivatives in the -th velocity slot and the -th position slot respectively.
The conclusion concerns the function of time
where is the coordinatewise time derivative of the path and the sum runs over all indices. The assertion is that for every pair of reals — equality of values at all times on the whole line, not merely a vanishing derivative.
For the sum is empty and the claim reduces to the constancy of , which follows from hypothesis 2.
Confirmed by the mission captain (proposal self-audit).