and have the same equations of motion
ProvedClassicalDynamics.motion_invariant_under_total_time_derivativeTong, eq. (2.45). The Lagrangian of a system is not unique: adding to it the total time derivative of any function of time and position leaves the equations of motion unchanged.
Precisely, let be a smooth Lagrangian on , let be smooth, and set
the chain-rule expression for the total time derivative of along a path with velocity . Then a smooth path satisfies Lagrange's equations for if and only if it satisfies them for .
import Definitions.Def_ClassicalDynamics_core
namespace ClassicalDynamics
/-- Tong, eq. (2.45): adding a total time derivative `df/dt` to a Lagrangian
leaves the equations of motion unchanged. -/
theorem motion_invariant_under_total_time_derivative {n : ℕ} (L : Lagrangian n)
(hL : IsSmoothLagrangian L) (f : ℝ → (Fin n → ℝ) → ℝ)
(hf : ContDiff ℝ (⊤ : ℕ∞) (fun p : ℝ × (Fin n → ℝ) => f p.1 p.2))
(q : ℝ → Fin n → ℝ) (hq : ContDiff ℝ (⊤ : ℕ∞) q) :
IsMotion L q ↔
IsMotion (fun t x v =>
L t x v + (deriv (fun s : ℝ => f s x) t + ∑ i : Fin n, v i * dfdq f i t x)) q := 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 . The data are: a Lagrangian on -tuples of reals, a function of a real time and an -tuple, and a path . The hypotheses are that is jointly in , that is jointly, and that the path is .
Define a second Lagrangian by
where the first bracket is the derivative of in its time argument with the position argument frozen at , and is the one-variable derivative of in the -th position slot, evaluated at the -th entry of , the other entries frozen. Both derivative operators are total, returning where the derivative does not exist. The sum runs over all indices and is empty when .
The assertion is the equivalence of the two statements:
- for every index and every real , the function is differentiable at with derivative ;
- the same statement with replaced throughout by , i.e. for every and every , is differentiable at with derivative .
Here is the coordinatewise time derivative of the path, and each partial derivative is a one-variable derivative in a single coordinate slot. Both directions of the equivalence are claimed, for all times on the whole real line. Note that is not assumed to depend on the velocity, and that no smoothness is assumed of beyond what follows from the hypotheses on and . For both sides hold vacuously, there being no indices.
Confirmed by the mission captain (proposal self-audit).