Theorem 4.16 — the extreme value theorem
ProvedRudin.ch04_extreme_valueanalysis
A continuous real function on a nonempty compact metric space attains both its supremum and its infimum: there are points and with and for all .
Preamble
import Mathlib import Definitions.Def_Rudin_ch04_continuity open Filter Topology
Formal statement
namespace Rudin
/-- Rudin, Theorem 4.16: a continuous real function on a nonempty compact metric space attains
its supremum and its infimum. -/
theorem ch04_extreme_value {X : Type*} [MetricSpace X] [CompactSpace X] [Nonempty X]
(f : X → ℝ) (hf : Continuous f) :
(∃ p : X, ∀ x : X, f x ≤ f p) ∧ (∃ q : X, ∀ x : X, f q ≤ f x) := by sorry
end RudinSource
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 4, p. 89, Theorem 4.16
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Let be a metric space which is compact as a space (the whole space is compact) and nonempty, and let be continuous on all of . Then both:
- there exists with for every (a global maximum point);
- there exists with for every (a global minimum point).
The conclusion is stated as attainment of the maximum and minimum values by points of ; the supremum and infimum as real numbers are not mentioned. Nonemptiness is an explicit hypothesis, without which no such points could exist.
Human review
Confirmed by the mission captain (proposal self-audit).