Totally bounded complete sets are exactly the compact sets
ProvedFamousTheorems.compact_iff_totally_bounded_complete_7aTotally bounded complete sets are exactly the compact sets. In a uniform space, and in particular in a metric space, a set is compact if and only if it is totally bounded and complete.
Total boundedness means that the set can be covered by finitely many sets of any given small size. For metric spaces this characterisation goes back to Fréchet and Hausdorff. It gives the Heine–Borel theorem in and is the usual way to prove compactness in function spaces, as in the Arzelà–Ascoli theorem.
Formalization note. Mathlib's isCompact_iff_totallyBounded_isComplete. TotallyBounded s means that for every entourage there are finitely many points whose -neighbourhoods cover . IsComplete s means that every Cauchy filter on converges to a point of .
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem compact_iff_totally_bounded_complete_7a {α : Type*} [UniformSpace α] {s : Set α} : IsCompact s ↔ TotallyBounded s ∧ IsComplete s := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `isCompact_iff_totallyBounded_isComplete`. Proof here reduces to that Mathlib result.