show that a subset of $\mathbb{R}$ is compact iff it is closed and bounded

Solution 1:

Proof of this theorem is not difficult, but long and not so funny. I leave you some hints.

  1. Proving compact $\Rightarrow$ closed and bounded.
    1. Prove that, in a Hausdorff space, every compact subspace is closed. This is not so trivial, I think. Let be $Y$ a compact subspace of a topological space $(X,\tau)$. We prove that $X\setminus Y$ is open. Let be $x_0 \in X\setminus Y$ a generic but fixed point; by separation axiom, there exist (open) neighborhoods $U_y$ for every $y\in Y$ in $X$ and $V_y$ of $x_0$ in $X$ with the propriety that $U_y\cap V_y=\varnothing$. Now, the family $\mathfrak{U}=\{U_y\,|\,y\in Y\}$ is a cover of $Y$; so there is a finite number $k$ of elements $y_1,\ldots,y_k$ such that $\{U_{y_i}\,|\,i=1,\ldots,k\}$ covers $Y$ and such that all elements are disjoint from the respective Hausdorff neighborhood $V_{y_i}$. Then we consider the element $V=V_{y_1}\cap\ldots \cap V_{y_k}$, that is an open neighborhood of $x_0$ in $X\setminus Y$. We can repeat the costruction for every $x_0\in X\setminus Y$, so the thesis.
    2. As obvious corollary, in a metric space every compact subsace is closed. So in $\mathbb{R}^n$.
    3. Show that every compact subspace in a metric space $(X,d)$ is necessarily bounded with respect to metric $d$ (this is easy).
  2. Proving that closed and bounded $\Rightarrow$ compact.
    1. A first step can be the proof that being bounded for a $Y\subseteq \mathbb{R}^n$ does equal to the existance of a closed pluri-rectangle $Q=[a_1 ,b_1]\times\ldots\times [a_n,b_n]$ that contains $Y$.
    2. By a simple version of Tychonoff theorem, that you can prove quite easily, the finite product of compact spaces is compact in the ambient product space. So does the pluri-rectangle as product of compact spaces (in $\mathbb{R}$).
    3. You know that $Y$ is closed in $\mathbb{R}^n$, so is also closed in the compact subspace $Q$.
    4. A closed subspace in a compact space is already compact. This fact has a very simple and straight proof.
    5. So you proved that $Y$ is compact.

A very boring part that I switched is the proof that every closed interval in $\mathbb{R}$ is compact. I think you should have seen that.