Theorem 5.8 — interior extrema have vanishing derivative
ProvedRudin.ch05_local_max_deriv_zeroanalysiscalculus
Let be defined on . If has a local maximum at a point and exists, then .
Preamble
import Mathlib open Filter Topology
Formal statement
namespace Rudin
/-- Rudin, Theorem 5.8: if `f` has a local maximum at an interior point `x` of `[a, b]` and
`f'(x)` exists, then `f'(x) = 0`. -/
theorem ch05_local_max_deriv_zero (a b : ℝ) (f : ℝ → ℝ) (x : ℝ) (hx : x ∈ Set.Ioo a b)
(hmax : ∃ δ > 0, ∀ t ∈ Set.Ioo a b, |t - x| < δ → f t ≤ f x)
(hdiff : DifferentiableAt ℝ f x) : deriv f x = 0 := by sorry
end RudinSource
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 5, p. 107, Definition 5.7 and Theorem 5.8
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Let , let and let lie in the open interval . Assume:
- local maximum relative to : there exists such that for every with one has ;
- is differentiable at (two-sided, as a function on ).
Then the derivative satisfies .
The maximality is only required against points of within distance , not against all nearby real points; it is non-strict. The derivative symbol denotes the total derivative operator, whose value would be a junk at points of non-differentiability — but differentiability at is assumed here, so the conclusion is about the genuine derivative.
Human review
Confirmed by the mission captain (proposal self-audit).