Fermat's method of maxima and minima: the rectangle of largest area
ProvedStationaryAction.fermat_max_productThe example with which the source introduces Fermat's method of maxima and minima, §2.4.1: divide a segment of length into two parts so that their product is largest.
For every real , the function
attains its maximum at , with maximal value . In Fermat's own terms this is the isoperimetric problem for a rectangle of half-perimeter , and equation (2.11) of the source, : among all rectangles of a given perimeter, the square has the largest area.
Fermat obtained it by adequating the products and , dividing by and then setting — the procedure the source presents as the pre-history of the derivative, and the tool with which Fermat went on to derive the law of refraction.
Formalization Note The maximum is global over all real , and no sign assumption is made on ; the inequality holds for every real and .
import Definitions.Def_StationaryActionCore
namespace StationaryAction
/-- Martins 2025, §2.4.1, Eqs. (2.9)–(2.11), Fermat's method of maxima and minima. -/
theorem fermat_max_product (b : ℝ) :
IsMaxOn (fun a : ℝ => a * (b - a)) Set.univ (b / 2) := by sorry
end StationaryActionRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Note on the provenance of this read-back — please read before relying on it. This read-back is not blind and not independent testimony. It was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal owner, and its author knew the intended meaning of the code while writing it. It therefore cannot play the role an independent auditor's read-back plays: it cannot be expected to surface a gap between what the statement was meant to say and what it actually says, because the same understanding produced both texts. No reviewer should treat it as independent corroboration of faithfulness. If independent testimony is wanted, a blind read-back by a separate auditor should be commissioned and this text replaced.
Let be an arbitrary real number, with no sign or non-vanishing restriction.
The assertion is that the point is a global maximiser over all of of the function ; explicitly, for every real ,
The comparison set is the entire real line, so is not restricted to the interval between and . Uniqueness of the maximiser is not asserted, and the value of the maximum is not named in the statement.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.