Can a set be infinite, countable, and compact? Can you please review my proof attempt and guide me?
Note: This question is asking about my proof attempt. My goal is to learn, and you only learn by trying to prove things. Thus, I ask that this question be reopened. I've edited this post to make this more clear.
I tried to prove that it cannot (at least in $\mathbb{R}$), but my proof attempt contains an error.
Proof Attempt:
If set $S \subset \mathbb{R}$ is infinite and countable, then $S$ is not compact.
Let $E: \mathbb{N} \to S$ be an enumeration of $S$. Let $w(n) = \min (|E(n+1) - E(n)|, |E(n-1) - E(n)|)$, with $w(1) = |E(2) - E(1)|.$ Let $O(n)$ be the open interval $(E(n) - w(n)/3, E(n) + w(n)/3)$. Then every $s \in S$ is in exactly one $O_n$ [*], and so the collection $O = {O_n : n \in N}$ is an open cover of $S$ that does not admit a finite subcover. QED.
[*] This is not true, since the enumeration is not in any order. To fix it, we'd need $w(n)$ to be $\inf \{|E(m) - E(n)| : m \in \mathbb{N}\}$, but that is equal to zero.
Questions:
- Can a set be infinite, countable, and compact?
- Is there any way to salvage my proof attempt? Perhaps to prove something weaker.
- If so: How far can it be extended? To $\mathbb{R}^n$? Beyond?