I'm trying to solve the following question from the real analysis section:
- Let $K$ be a nonempty subset of $\mathbb R^n$ where $n > 1$. Which of the following statements must be true?
(I) If $K$ is compact, then every continuous real-valued function defined on $K$ is bounded.
(II) If every continuous real-valued function defined on $K$ is bounded, then $K$ is compact.
(III) If $K$ is compact, then $K$ is connected.
The proof for (I) is standard. I'm trying to see (II) by contradiction.
Is it possible to frame a proof for (II) along these lines:
Suppose $K \subseteq \mathbb R^n$ is not compact. Then there exists an open cover $\mathcal C$ that has no finite subcover. But $f: K \to \mathbb R$ is continuous. (...) Contradiction.