Heine–Borel Theorem
Statement
A subset is compact if and only if it is closed and bounded:
Compactness means every open cover admits a finite subcover. Closed means the set contains all its limit points. Bounded means it fits inside some ball .
Visualization
Consider . Below, a closed bounded set versus the open unbounded ray .
Number line:
──0────[1═══3]────────5──────────────▶
↑ ↑
closed closed
bounded bounded
compact!
──0════(0═══════════════════════════▶
↑
open, unbounded, not compact
The cover {(−1, n) : n ∈ ℕ} has no finite subcover.
The set can be covered by finitely many open intervals no matter how you choose them — any open cover must include intervals that together blanket , and compactness guarantees a finite selection suffices.
For an open set : the cover is an open cover with no finite subcover (every finite sub-collection misses points near ).
Proof Sketch
Compact closed and bounded. A compact subset of a Hausdorff space is closed. If were unbounded, the open cover would have no finite subcover — contradiction.
Closed and bounded compact. A closed bounded set sits inside some . The box is a finite product of compact intervals, hence compact by Tychonoff's TheoremTychonoff's TheoremAn arbitrary product of compact spaces is compact in the product topologyRead more →. A closed subset of a compact set is compact.
Connections
Heine–Borel is the foundation for a cascade of classical theorems:
- Bolzano–Weierstrass TheoremBolzano–Weierstrass TheoremEvery bounded sequence in ℝⁿ has a convergent subsequenceRead more → — a bounded sequence in has a convergent subsequence; the compact enclosing box does the work.
- Brouwer Fixed-Point TheoremBrouwer Fixed-Point TheoremEvery continuous map from a compact convex set to itself has a fixed pointRead more → — the closed unit ball is compact (closed and bounded), enabling degree-theory and homological arguments.
- Tychonoff's TheoremTychonoff's TheoremAn arbitrary product of compact spaces is compact in the product topologyRead more → — the infinite-dimensional generalisation: arbitrary products of compact spaces are compact. Heine–Borel is the finite-dimensional case.
- Hausdorff DistanceHausdorff DistanceA metric on non-empty compact sets, foundation for the IFS attractor theoremRead more → — the space of non-empty compact subsets of is itself complete and compact under the Hausdorff metric, making IFS attractors well-defined.
- Urysohn's LemmaUrysohn's LemmaIn a normal space, disjoint closed sets can be separated by a continuous functionRead more → — compact Hausdorff spaces are normal, so Urysohn's construction applies.
- Iterated Function SystemsIterated Function SystemsConstructing fractals via contractive affine transformationsRead more → — the Hutchinson operator acts on ; Heine–Borel guarantees that iterates stay in a compact ambient space.
Lean4 Proof
import Mathlib.Topology.MetricSpace.Bounded
import Mathlib.Analysis.InnerProductSpace.EuclideanDist
open Bornology
/-- **Heine–Borel theorem** for Euclidean space ℝⁿ.
Mathlib: `isCompact_iff_isClosed_bounded` in `ProperSpace` instances. -/
theorem heine_borel {n : ℕ} {s : Set (EuclideanSpace ℝ (Fin n))} :
IsCompact s ↔ IsClosed s ∧ IsBounded s :=
isCompact_iff_isClosed_boundedReferenced by
- Arzelà–Ascoli TheoremAnalysis
- Weak Convergence (Distribution)Probability
- Schröder–Bernstein TheoremSet Theory and Logic
- Compact Subset of Hausdorff is ClosedTopology
- Hausdorff Implies T1Topology
- Brouwer Fixed-Point TheoremTopology
- Tychonoff's TheoremTopology
- Separable SpacesTopology
- Product TopologyTopology
- Alexandrov One-Point CompactificationTopology
- Subspace TopologyTopology
- Second-Countable SpacesTopology
- Urysohn's LemmaTopology
- Continuous Image of Compact is CompactTopology
- Baire Category TheoremTopology
- Continuous Bijection on Compact-Hausdorff is HomeoTopology
- Normal SpaceTopology
- Connected ComponentsTopology
- Regular SpaceTopology
- Bolzano–Weierstrass TheoremTopology
- Bolzano–Weierstrass TheoremTopology
- Path-Connected Implies ConnectedTopology
- Hahn–Banach TheoremFunctional Analysis
- Stone–Weierstrass TheoremFunctional Analysis