Theorem (Heine-Borel, compact iff totally bounded and complete)

A metric space is compact iff it is totally bounded and complete.

Proof