Corollary: the golden-ratio well is the normal form in disguise
ProvedQuadraticWell.golden_wellFor every twice continuously differentiable ,
The well has roots and ; its is a choice of coordinates.
import Mathlib
namespace QuadraticWell
theorem golden_well (x : ℝ → ℝ) (hx : ContDiff ℝ 2 x) :
(∀ t, deriv (deriv x) t = -(x t ^ 2 - x t - 1)) ↔
(∀ τ, deriv (deriv (fun σ => (x (σ / Real.sqrt (Real.sqrt 5 / 2)) - 1 / 2) /
(Real.sqrt 5 / 2))) τ =
-(((x (τ / Real.sqrt (Real.sqrt 5 / 2)) - 1 / 2) / (Real.sqrt 5 / 2)) ^ 2 - 1)) := by
sorry
end QuadraticWellRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
QuadraticWell.golden_well. Let be any real function that is on all of , meaning twice differentiable everywhere with continuous second derivative. This is the only hypothesis, and there are no other parameters. Write for the ordinary second derivative of . The code computes it as the derivative of the derivative. Because is , this equals the classical second derivative at every point, so Mathlib's convention that a non-differentiable function has "derivative " never comes into play. Fix the two positive constants
Both square roots are taken of positive numbers, so no junk values from or division arise. Define the rescaled and shifted function
is also on , so its iterated derivative is its classical second derivative.
The theorem asserts a two-sided equivalence (an "if and only if") between the following two statements.
- For every real ,
- For every real ,
Written out in terms of , the left side is the second derivative at of . The right side is .
In words: a function satisfies the ODE at every point of exactly when the function , obtained by time-rescaling with and the affine change , satisfies at every point of . Both ODE conditions are global, holding for all real times. Neither is restricted to an interval, and no initial conditions are imposed. The statement makes no claim about existence or uniqueness of solutions, or about any particular solution. It only asserts that the two pointwise-everywhere conditions are equivalent for every function .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.