If $X$ is a countable set, does there exist a metric that makes it compact? I know there is always a metric that does not make it compact and that there are examples of compact countable spaces but I am unable to figure out if every countable set has a compact metric or not.
2026-04-08 16:24:32.1775665472
If $X$ is a countable set, does there exist a metric that makes it compact?
524 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
Take a countable set $X$. There is a bijection $f:X\to A$ where $$A=\{1/n~\vert~n\geq 1\}\cup \{0\}$$ Give $A$ the metric induced by the metric on $\Bbb R$ (it's just the absolute value). Then define the metric on $X$ by $$d(x,y)=\vert f(x)-f(y)\vert$$ You can check that this is a metric on $X$ and that with this metric, $f$ is an isometry between $X$ and $A$. Therefore $X$ and $A$ are homeomorphic spaces. Because $A$ is compact, so is $X$.