Lagrange equation of the plane pendulum
ProvedStationaryAction.plane_pendulum_equation_of_motionThe second mechanical application in §3.1 of the source, and the one that shows the method is indifferent to the coordinate system: the plane pendulum in the angular coordinate .
For a bob of mass on a rigid rod of length in a uniform gravitational field , the kinetic and potential energies are and , so the Lagrangian is
Assume and , and let be a twice continuously differentiable function of time. Then the Euler–Lagrange equation for holds at every if and only if
which is equation (3.19) of the source — the exact pendulum equation, valid without the small-angle approximation.
Formalization Note The hypotheses and are exactly what is needed to divide the Euler–Lagrange equation by ; they are not physical positivity assumptions and the statement does not require .
import Definitions.Def_StationaryActionCore
namespace StationaryAction
/-- Martins 2025, §3.1, Eqs. (3.18)–(3.19), plane pendulum. -/
theorem plane_pendulum_equation_of_motion
(m g l : ℝ) (hm : m ≠ 0) (hl : l ≠ 0) (θ : ℝ → ℝ) (t₁ t₂ : ℝ) (hθ : ContDiff ℝ 2 θ) :
(∀ t ∈ Set.Icc t₁ t₂,
eulerLagrangeExpr
(fun u v _ => m * l ^ 2 * v ^ 2 / 2 - m * g * l * (1 - Real.cos u)) θ t = 0) ↔
∀ t ∈ Set.Icc t₁ t₂, deriv (deriv θ) t + (g / l) * Real.sin (θ t) = 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.
Let , , be reals with and (no positivity assumed, and no assumption at all on ), let be on , and let be reals with no order relation assumed.
Consider the integrand
which ignores its third argument. The statement asserts that the following two conditions are equivalent.
(A) For every ,
with the derivative in the first slot and the derivative in the second slot.
(B) For every , , where is the derivative of the derivative function of and the quotient is ordinary real division (well defined since ).
If the interval is empty and both conditions hold vacuously, so the equivalence is trivially true there. The sine and cosine are the real trigonometric functions, with unrestricted in range.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.