Example 1: the circle (y-2)^2 + x^2 = 5
ProvedGelfandFomin.example1calculus-of-variationseuler-lagrangefirst-integral
has , , and on lies on , has , and .
Preamble
import Mathlib
Formal statement
namespace GelfandFomin
open Set
theorem example1 :
(2 - Real.sqrt (5 - 1 ^ 2) = 0 ∧ 2 - Real.sqrt (5 - 2 ^ 2) = 1) ∧
∀ x ∈ Set.Icc (1 : ℝ) 2,
((2 - Real.sqrt (5 - x ^ 2)) - 2) ^ 2 + x ^ 2 = 5 ∧
HasDerivAt (fun t => 2 - Real.sqrt (5 - t ^ 2)) (x / Real.sqrt (5 - x ^ 2)) x ∧
x / Real.sqrt (5 - x ^ 2) / (x * Real.sqrt (1 + (x / Real.sqrt (5 - x ^ 2)) ^ 2)) =
1 / Real.sqrt 5 := 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 1, pp. 19-20
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Statement. All square roots are real square roots (conventionally on negative inputs; division by is conventionally ). The statement is the conjunction of:
(A) Two numerical identities:
(B) For every real with , all three of:
- the function is differentiable at (two-sided derivative on ) with derivative
On one has and , so no radicand is negative and no denominator is zero; the junk-value conventions are not triggered. The statement involves only the explicit function on ; it does not mention any functional, extremality or Euler equation.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.