Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.19 — continuous on a compact space implies uniformly continuous

Proved
Rudin.ch04_uniform_continuity

by LG · Sep 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysistopology

Let fff be a continuous mapping of a compact metric space XXX into a metric space YYY. Then fff is uniformly continuous on XXX: for every ε>0\varepsilon > 0ε>0 there is a δ>0\delta > 0δ>0, depending only on ε\varepsilonε, such that d(f(p),f(q))<εd(f(p), f(q)) < \varepsilond(f(p),f(q))<ε whenever d(p,q)<δd(p,q) < \deltad(p,q)<δ.

Preamble
import Mathlib
import Definitions.Def_Rudin_ch04_continuity

open Filter Topology
Formal statement
namespace Rudin

/-- Rudin, Theorem 4.19: a continuous mapping of a compact metric space into a metric space is
uniformly continuous. -/
theorem ch04_uniform_continuity {X Y : Type*} [MetricSpace X] [MetricSpace Y] [CompactSpace X]
    (f : X → Y) (hf : Continuous f) : UniformlyContinuous f := by sorry

end Rudin
Source
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 4, p. 91, Theorem 4.19
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Let XXX be a metric space that is compact as a whole space, let YYY be any metric space, and let f:X→Yf : X \to Yf:X→Y be continuous on all of XXX. Then fff is uniformly continuous in the explicit sense:

∀ε>0 ∃δ>0 ∀p,q∈X:d(p,q)<δ  ⟹  d(f(p),f(q))<ε,\forall \varepsilon > 0\ \exists \delta > 0\ \forall p,q \in X: \quad d(p,q) < \delta \;\Longrightarrow\; d\bigl(f(p),f(q)\bigr) < \varepsilon,∀ε>0 ∃δ>0 ∀p,q∈X:d(p,q)<δ⟹d(f(p),f(q))<ε,

with a single δ\deltaδ serving all pairs of points, and both inequalities strict.

XXX may be empty (the empty space is compact), in which case the conclusion holds trivially. No compactness or completeness is assumed of YYY.

Human review
  • Endorsed by Shuze Chen · Sep 12, 2026

  • Endorsed by LG · Sep 12, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me