Proof (sequentially compact iff compact)

Compact $\implies$ sequentially compact

We will prove the contrapositive. Suppose $(X,d)$ is not sequentially compact. Then there exists a sequence $\set{x_n}_{n=1}^\infty$ that does not have a convergent subsequence. Denote $\tilde X = \sb{x_n}{n\in \N}$.

Firstly $\tilde X$ is infinite, since otherwise it has a constant subsequence, which converges.

Now for each $x\in X$, there exists $\epsilon(x)>0$ such that $B_{\epsilon(x)}(x) \cap \tilde X$ is finite. Otherwise, pick $n_1$ such that $x_{n_1}\in B_1(x)$, and for $k\geq 2$, pick $n_k>n_{k-1}$ such that $x_{n_k} \in B_{1/k}(x)$ (which exists since $B_{1/k}(x)$ contains infinitely many points in $x_n$). Then the subsequence $x_{n_k}\to x$.

Let $$ \begin{align*} \mathcal{U} = \sb{B_{\epsilon(x)}(x)}{x\in X}. \end{align*} $$ For any finite subset $\mathcal{U}' \subseteq \mathcal{U}$, $$ \begin{align*} \left(\bigcup\mathcal{U}'\right) \cap \tilde X ={}& \bigcup_{x:\, B_{\epsilon(x)}(x) \in \mathcal{U}'} (B_{\epsilon(x)}(x) \cap \tilde X) &&\text{finite} \\ \subset{}& \tilde X &&\text{infinite} \end{align*} $$ so $\mathcal{U}'$ is not a cover of $X$.

Hence $X$ is not compact.

Sequentially compact $\implies$ compact

Suppose $(X,d)$ is sequentially compact, and let $\mathcal{U}$ be an open cover of $X$. We use two facts:

Claim 1:

Lemma (Lebesgue number lemma) open_in_new

Let $(X,d)$ be a metric space.

Suppose $X$ is sequentially compact and $\mathcal{U}$ is an open cover of $X$. Then there exists some $ε>0$ such that for all $x\in X$, there exists some $U\in \mathcal{U}$ such that $B_ε(x) \subseteq U$.

Proof

Claim 2: there exists a finite set $F\subseteq X$ such that $X = \bigcup_{y\in F} B_\epsilon(y)$.

See here for proof.

Now for each $y\in F$, pick $U_y\subseteq \mathcal{U}$ so that $B_\epsilon(y) \subseteq U_y$. Then $$ \begin{align*} \mathcal{U}' = \sb{U_y}{y\in F} \end{align*} $$ is a finite subcover of $X$.