Mathlib theorem · Existing formal mathematics

Existing in Mathlib · Topology

Heine–Cantor Theorem

A continuous map from a compact uniform space into any uniform space is automatically uniformly continuous.

Exact theorem

Exact Mathlib statement

theorem CompactSpace.uniformContinuous_of_continuous {α β : Type*} [UniformSpace α] [UniformSpace β] [CompactSpace α] {f : α → β} (h : Continuous f) : UniformContinuous f

The theorem at a glance

Heine–Cantor theorem at a glance

A visual guide to the theorem's hypotheses, structure, and conclusion; the exact statement gives the formal detail.

On a compact uniform-space domain, ordinary continuity already controls all sufficiently close pairs by one uniform rule. Explanatory diagram.
Detailed visual description

The poster states the whole-space CompactSpace theorem and follows its checked source route. Nested neighborhoods around the diagonal in α × α represent the domain uniformity; a paired map sends both coordinates through f; continuity carries those pair-neighborhoods toward the diagonal in β × β; and the final comparison reaches the target uniformity. The scope footer rules out a converse and the nearby compact-subset variant.

Statement structure

From hypotheses to conclusion

Statement map for Heine–Cantor TheoremCompactness upgrades continuity of a map between uniform spaces to uniform continuity. The pinned upstream declaration is CompactSpace.uniformContinuous_of_continuous. The exact checked statement is theorem CompactSpace.uniformContinuous_of_continuous {α β : Type*} [UniformSpace α] [UniformSpace β] [CompactSpace α] {f : α → β} (h : Continuous f) : UniformContinuous f.Mathematical readingCompactness upgradescontinuity of a mapbetween uniform spacesto uniform continuity.Pinned declarationmathlib ·CompactSpace.uniformContinuous_of_continuousExact checked formtheoremCompactSpace.uniformContinuous_of_continuous{α β : Type*}[UniformSpace α][UniformSpace β][CompactSpace α] {f : α→ β} (h : Continuous f): UniformContinuous fStatement map for Heine–Cantor TheoremCompactness upgrades continuity of a map between uniform spaces to uniform continuity. The pinned upstream declaration is CompactSpace.uniformContinuous_of_continuous. The exact checked statement is theorem CompactSpace.uniformContinuous_of_continuous {α β : Type*} [UniformSpace α] [UniformSpace β] [CompactSpace α] {f : α → β} (h : Continuous f) : UniformContinuous f.Mathematical readingCompactness upgradescontinuity of a mapbetween uniform spacesto uniform continuity.Pinned declarationmathlib ·CompactSpace.uniformContinuous_of_continuousExact checked formtheoremCompactSpace.uniformContinuous_of_continuous{α β : Type*}[UniformSpace α][UniformSpace β][CompactSpace α] {f : α→ β} (h : Continuous f): UniformContinuous f

This map summarizes the statement's structure; the exact Mathlib declaration remains authoritative.

One compactly controlled source neighborhood carries every shown nearby pair through the same map into target diagonal neighborhoods. Explanatory scientific diagram.
Detailed visual description

A warm-paper source field is closed by a charcoal oval with four small gold clasps. Eight paired motifs—circles, squares, diamonds, triangles, hexagons, pentagons, stars, and striped variants—sit on both sides of one glowing diagonal seam. Dashed paired strands cross a central double aperture and reappear as the same eight identities inside separate nested halos in a blue target field around a second diagonal seam. The abstract fields have no axes, distances, labels, or subset boundary.

Why it matters

A mathematical landmark

Heine–Cantor is a central compactness principle in analysis and topology: a pointwise local continuity condition becomes one uniform condition across the entire domain. Mathlib's compact abstract proof makes the bridge especially clear by expressing uniformity through neighborhoods of the diagonal.

ProofAtlas record

What has been checked

Upstream indexedPinned source bytes verified locally
Locally reproducedExact upstream declaration replayed
Reviewed pageCurrent public presentation reviewed
Accepted Atlas resultNot recorded for the preferred artifact

Mathlib is the source of the theorem; the local Lean replay and page review are separate.

Claim boundary

No new theorem is claimed

This page indexes Mathlib's whole-space CompactSpace form of the Heine–Cantor theorem: for uniform spaces α and β, a CompactSpace instance on α, and a map f : α → β, continuity of f implies uniform continuity. It is not the nearby compact-subset theorem for ContinuousOn and UniformContinuousOn, it does not assert a converse, and it does not specialize the abstract uniform-space statement to metric spaces or intervals.

Source and local evidence

Where the theorem comes from

Existing declaration
CompactSpace.uniformContinuous_of_continuous in mathlib
Relationship
The checked artifact is the upstream declaration itself
Local Lean evidence
artifact.library.mathlib.heine-cantor-theorem.v001
Source
Open the pinned upstream reference