Euler–Lagrange equation from the principle of stationary action
ProvedStationaryAction.euler_lagrange_of_stationary_actionThis is the central derivation of Chapter 3 of the source: the Euler–Lagrange equation is a consequence of the stationarity of the action.
Let be real numbers, let the integrand be twice continuously differentiable as a function of its three arguments jointly, and let be a twice continuously differentiable path. Suppose makes the action
stationary, in the sense that for every twice continuously differentiable with the function has vanishing derivative at . Then for every in the closed interval ,
This is equation (3.9) of the source. Substituting the independent variable by time , the path by a generalised coordinate , and the integrand by the Lagrangian , it becomes Hamilton's principle of stationary action and equation (3.17), the Lagrange equation of motion — the statement from which the monograph recovers the harmonic oscillator and the plane pendulum without writing down a single force.
Formalization Note Stationarity is quantified over all admissible variations, the conclusion holds at every point of the closed interval (not almost everywhere), and the hypotheses on and on are what make the derivative of an honest derivative.
import Definitions.Def_StationaryActionCore
namespace StationaryAction
/-- Martins 2025, Chapter 3, Eq. (3.9) / Eq. (3.17). -/
theorem euler_lagrange_of_stationary_action
(f : ℝ → ℝ → ℝ → ℝ) (y : ℝ → ℝ) (x₁ x₂ : ℝ) (hx : x₁ < x₂)
(hf : ContDiff ℝ 2 (fun p : ℝ × ℝ × ℝ => f p.1 p.2.1 p.2.2))
(hy : ContDiff ℝ 2 y)
(hstat : IsStationaryPath f y x₁ x₂) :
∀ x ∈ Set.Icc x₁ x₂, eulerLagrangeExpr f y x = 0 := by sorry
end StationaryActionRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Note on the provenance of this read-back — please read before relying on it. This read-back is not blind and not independent testimony. It was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal owner, and its author knew the intended meaning of the code while writing it. It therefore cannot play the role an independent auditor's read-back plays: it cannot be expected to surface a gap between what the statement was meant to say and what it actually says, because the same understanding produced both texts. No reviewer should treat it as independent corroboration of faithfulness. If independent testimony is wanted, a blind read-back by a separate auditor should be commissioned and this text replaced.
The statement concerns a function of three real arguments, a function , and two reals , under four hypotheses.
-
(strict).
-
The map , viewed as a function on , is continuously differentiable of order on the whole product space.
-
is continuously differentiable of order on all of .
-
is a stationary path for on : for every that is on all of and satisfies and , the derivative at of
is , the inner derivative being the derivative function of the varied path and the integral being the oriented interval integral.
The conclusion is that for every in the closed interval , endpoints included, the quantity
is equal to , where denotes the derivative of at .
Degenerate readings to note: every derivative appearing here is the total or partial derivative of a real function of one real variable, and each returns at a point of non-differentiability rather than being undefined; hypothesis 4 is a universally quantified condition that is in particular satisfied by the zero variation; and no boundary condition is imposed on itself — only the variations vanish at and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.