Example 2: the catenary
ProvedGelfandFomin.catenarycalculus-of-variationseuler-lagrangefirst-integral
For , has , satisfies , and satisfies Euler's equation for .
Preamble
import Mathlib
Formal statement
namespace GelfandFomin
open Set
theorem catenary {C C₁ : ℝ} (hC : 0 < C) (x : ℝ) :
HasDerivAt (fun t => C * Real.cosh ((t + C₁) / C)) (Real.sinh ((x + C₁) / C)) x ∧
C * Real.cosh ((x + C₁) / C) = C * Real.sqrt (1 + Real.sinh ((x + C₁) / C) ^ 2) ∧
HasDerivAt (fun t => C * Real.cosh ((t + C₁) / C) * Real.sinh ((t + C₁) / C) /
Real.sqrt (1 + Real.sinh ((t + C₁) / C) ^ 2))
(Real.sqrt (1 + Real.sinh ((x + C₁) / C) ^ 2)) x := by sorry
end GelfandFominSource
I. M. Gelfand and S. V. Fomin, Calculus of Variations (Prentice-Hall 1963; Dover 2000), Ch. 1, Sec. 4.2, Example 2, eq. (18), pp. 20-21
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Statement. Let with ( arbitrary), and let be arbitrary. Write . Then all three of the following hold:
- The function is differentiable at with derivative
- The function
is differentiable at with derivative
Here is the real square root (in the underlying conventions it returns on negative inputs, and division by returns ); the radicand is at least , so neither convention is triggered. The statement is a conjunction of three pointwise facts at one arbitrary ; it does not mention any functional, Euler equation or boundary conditions.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.