Legendre series:
ProvedPendulum.exactPeriod_seriesThe Legendre polynomial solution for the elliptic integral turns the closed form of the period into a convergent power series in .
Let and . Then the exact period of a simple pendulum of length released from rest at amplitude satisfies
The coefficient is the classical of the Legendre expansion. The term contributes the small-angle period and the term contributes , so truncating gives the familiar correction ; Figure 4 of the article plots the relative error of these truncations.
Formalization Note The amplitude is allowed, where the series reduces to its first term; the series diverges as , which is why the amplitude is bounded away from the vertical.
import Mathlib import Definitions.Def_PendulumDefs
namespace Pendulum
theorem exactPeriod_series (g l theta0 : ℝ) (hg : 0 < g) (hl : 0 < l)
(hpos : 0 ≤ theta0) (hlt : theta0 < Real.pi) :
exactPeriod g l theta0
= 2 * Real.pi * Real.sqrt (l / g) *
∑' n : ℕ, (((2 * n).factorial : ℝ) / (2 ^ (2 * n) * (n.factorial : ℝ) ^ 2)) ^ 2
* Real.sin (theta0 / 2) ^ (2 * n) := by sorry
end PendulumRead-back
What the Lean code literally says, in plain math · non-blind: written by the drafting agent (Aristotle by Harmonic)
Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal's owner. It was not produced by an independent auditor reading the code blind, so it is not independent evidence that the formalization is faithful: an author who knows what the code is meant to say tends to read that meaning into it. Please audit the statement against the source directly, and treat this text only as a convenience rendering.
Three real numbers are given, with hypotheses , , and
. The claim is that the real number exactPeriod at these arguments — namely
— equals
where the infinite sum is the unconditional sum of the indicated family of real numbers indexed by the natural numbers, which is by convention if the family is not summable. The factorials are those of the natural numbers and , cast to real numbers, and the powers are real.
The boundary value is permitted: then every term with vanishes, the sum is , and the claim is that . The value is excluded, as are negative amplitudes and non-positive or . The statement makes no separate assertion that the series converges, although the asserted identity with a nonzero left-hand side entails that the sum is not the junk value .