Preliminaries:
$\textbf{Theorem:1}$ If $\{K_{\alpha} :\}$ is a family of non empty
compact subsetsets of a metric space $(X, d) $ such that the
intersection of any finite subfamily is non empty , then
$\bigcap_{\alpha} K_{\alpha}\neq \emptyset$
$\text{Theorem} \space 2.36$ (Principles of mathematical analysis,
Rudin)
$\textbf{Corollary:1} $ If $(K_n) $ be any descending sequence of non empty compact subsets in a metric space $(X, d) $ , then $\bigcap_{n} K_n\neq \emptyset$
$\bigstar$ Note 1: The same is not true for any sequence of non empty closed sets in a metric space.
Ex: Consider $(\Bbb{Q}, d_{\text{sub}}) $ as a metric subspace of $(\Bbb{R}, d_{\text{eucliden}}) $ .Let $\Bbb{Q}=(r_n)_{n\in\Bbb{N}}$ be the enumeration and $C_n=\Bbb{Q}\setminus \{r_n\}$.Then
$\emptyset \neq C_n$ closed set.
$C_{n+1}\subset C_n$
But $\bigcap_{n} C_n=\emptyset$
$\bigstar $ Note 2 : $(X, d) $ be a metric space and $A\subset X$ . Let $x\in X$ is a limit point of $A$ and $x\in U$ be a open set. Is it always possible to find an open set $V$ such that $x\in \overline{V}\subset U$ where $\overline{V}$ is compact?
Hint: Consider the metric space $(\Bbb{Q}, d_{\text{sub}}) $ .
$\textbf{Definition :}$ A topological space $(X, \tau) $ is called a Locally compact Haussdoff space if $\forall x\in X$ and forall open sets $U_x$ containing $x$ there exists an open set $V_x$ such that
$x\in V\subset \overline{V}\subset U$
Topological closure $\overline{V}$ is closed.
Example 1 : $\Bbb{R^k}$ is locally compact Hausdorff space.For any point $x\in
\Bbb{R^k}$ and a open set $U$ containing $x$ , there is a basic open set i.e an open ball $B(x, r) $ such that $x\in \overline{B(x, \frac{r}{2})}\subset B(x, r) \subset U$
Now by Heine-Borel theorem, $B(x, \frac{r}{2}) $ is compact.
Example 2 : Let $(X,d)$ be a metric space where $|X|\ge \aleph_{0}$ i.e $X$ is an infinite set and $d$ is the discrete metric. Then $(X, d) $ is locally compact Hausdorff space as for any $x\in X$ and a open set $U$ containing $x$ , $x\in \{x\}\subset U$ where $\{x\}$ is compact. But $(X, d) $ doesn't have Heine-Borel property as $X$ is closed , bounded but not compact.
$\textbf{Theorem:}$ Let $\emptyset \neq P$ perfect subset of $\Bbb{R}^k$.
Claim : $P$ is uncountable.
Proof:(Rudin's way) $P\neq \emptyset$ implies $\exists x\in P$ .Since $\Bbb{R^k} $ is Hausdorff space , any open set $U$ containing $x$ contains an infinite subset of $P$. $($ Infact this result is also true for any $T_1$-space $)$ . Hence $P$ is an infinite set.
To show $P$ is not countably infinite . Suppose $P$ is countably infinite and $P=\{x_1,x_2,\ldots\}$.
Let $V_0$ is an open set containing $x_1$. Then by Local compactness of $\Bbb{R}^k$ , $\exists V_1\subset V_0$ open set such that $x_1\in \overline{V_1}\subset V_0$ and since $x_1$ is a limit point of $P$ , $V_1\setminus \{x_1\} \cap P\neq \emptyset$ and $\overline{V_1}$ is compact.
Let $x_2\in V_1\setminus \{x_1\} \cap P$
Again by Local compactness, we can find an open set $V_2\subset V_1$ such that $x_2\in \overline{V_2}\subset V_1$ and $\overline{V_2}$ is compact. Again $V_2\setminus \{x_2\} \cap P\neq \emptyset$
Continuing in that way, we produce a sequence of open sets $(V_n) $ with the properties :
$\overline{V_{n+1}}\subset {V_n}$
$x_n\notin V_{n+1}$
$V_{n+1}\cap P\neq \emptyset$
Put $K_n=\overline{V_n}\cap P$
As $2$ implies $x_n \notin{V_{n+1}}$ implies $\bigcap_{n}K_n=\emptyset$.
But $(K_n) $ is a descending sequence of non empty compact sets and $\bigcap_{n}K_n=\emptyset$ directly contradict $\textbf{Corollary:1}$.
Note : A compact subset of a metric space (infact in any Hausdorff space) is closed.
We can use completeness ,by choosing $V_n$ as the basic open sets i.e open balls in $\Bbb{R^n}$ , $V_n=B(x_n, \frac{r}{2^n})$ and then the Cantor intersection theorem for complete metric space.
The theorem is still true in every complete metric space as a closed subset of a complete metric space is complete and a complete metric space with no isolated point is uncountable. (an application of Baire Category theorem) .
$\textbf{Theorem}$ A normed linear space is finite dimensional iff closed unit ball is compact iff closed bounded sets are compact i.e Heine-Borel property is true.
Choose an infinite dimensional Banach space, then it doesn't have the Heine-Borel property but every non empty perfect set is uncountable.