The quadratic force in shifted, scaled form
ProvedQuadraticWell.force_shiftgolden-rationondimensionalizationordinary-differential-equations
Let be real, , and or . Then for all real and ,
Preamble
import Mathlib
Formal statement
namespace QuadraticWell
theorem force_shift (a r₁ r₂ d : ℝ) (hr : r₁ ≠ r₂)
(hd : d = (r₁ - r₂) / 2 ∨ d = (r₂ - r₁) / 2) (y : ℝ) :
-a * (y - r₁) * (y - r₂) = -a * d ^ 2 * (((y - (r₁ + r₂) / 2) / d) ^ 2 - 1) := by
sorry
end QuadraticWellSource
Motivated by the scaling analysis in the Shape Zero derivation (Shape Zero LLC): https://github.com/ShapeZeroSZ/shape-zero/blob/main/00_START_HERE/MODEL_SPEC.md §1b ; public references: Wikipedia, "Nondimensionalization": https://en.wikipedia.org/wiki/Nondimensionalization ; Wikipedia, "Golden ratio": https://en.wikipedia.org/wiki/Golden_ratio
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
QuadraticWell.force_shift. Let be arbitrary real numbers, and assume:
- ;
- is half the gap between and , with either sign:
Then for every real number the following equality of real numbers holds:
Remarks on scope and edge cases:
- No condition is placed on : it may be positive, negative, or zero (when both sides are ).
- No condition is placed on ; the equality is asserted for every real , including , , and the midpoint .
- The division by is real division as in Mathlib, where dividing by gives . Under the stated hypotheses , since forces and . So the division-by-zero convention is never used, and the hypotheses on can be satisfied (for example , , or ).
- The divisions by are ordinary real division.
- The statement is a single universally quantified identity: it holds for all meeting the two hypotheses above. It makes no claim about anything physical such as forces or wells; "QuadraticWell" is only the namespace name, and no project-specific definitions appear in the statement.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.