Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.14 — continuous images of compact sets

Proved
Rudin.ch04_continuous_image_compact

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

analysistopology

If KKK is a compact subset of a metric space XXX and fff is continuous on KKK, then f(K)f(K)f(K) is compact.

Preamble
import Mathlib
import Definitions.Def_Rudin_ch04_continuity

open Filter Topology
Formal statement
namespace Rudin

/-- Rudin, Theorem 4.14: the continuous image of a compact set is compact. -/
theorem ch04_continuous_image_compact {X Y : Type*} [MetricSpace X] [MetricSpace Y]
    (f : X → Y) (K : Set X) (hK : IsCompact K) (hf : ContinuousOn f K) :
    IsCompact (f '' K) := by sorry

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

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

Let X,YX, YX,Y be metric spaces, f:X→Yf : X \to Yf:X→Y, and K⊆XK \subseteq XK⊆X. If KKK is compact and fff is continuous on KKK (continuity relative to KKK at each point of KKK, which is weaker than continuity of fff on all of XXX), then the image

f(K)={ f(x):x∈K }f(K) = \{\, f(x) : x \in K \,\}f(K)={f(x):x∈K}

is a compact subset of YYY.

No assumption is made about fff outside KKK, nor about injectivity; K=∅K = \emptysetK=∅ is permitted, giving the empty image.

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