Which of the following are compact?
- The open ball $B(f,1)$ in $(C[0,1],\mathbb R), d_\infty)$, where $f:[0,1] \to \mathbb R$ denotes the constant function at zero and $d_\infty (f,g) = \sup_{x\in[0,1]} |f(x)-g(x)|$
My guess is that this is not compact because $(C[0,1],\mathbb R), d_\infty)$ is unbounded.
- The closed ball $D(0,1)$ in $(\mathbb Z,d)$, where $d$ denotes the 3-adic metric.
My guess is that this is not compact, because $(\mathbb Z,d)$ is not complete.
Are either of these correct? Could anyone provide better proofs of them?
The open ball $B(f,1)$ in $(C[0,1],\mathbb R), d_\infty)$, where $f:[0,1] \to \mathbb R$ denotes the constant function at zero and $d_\infty (f,g) = \sup_{x\in[0,1]} |f(x)-g(x)|$ is clearly bounded, since every point in it is within distance $1$ from just one point. No two points in it are as much as, nor more than $2$ units away from each other, by the triangle inequality.
But the space is not compact, as may be seen as follows. Let $g_n$ be a continuous function that is $0$ outside the interval whose endpoints are $n\pm\frac 1 3$ has the value $1$ at $n$. That sequence has no convergent subsequence.