Is a subset of $\mathbf{R}^n$ closed iff it can be covered by a finite number of closed balls? A subset $U\subset \mathbf{R}^n$ is open if and only if it can be covered by open balls. (An open ball is a subset of the form $\{x\in \mathbf{R}^n: d(x,y) < r\}$, where $y$ is the origin of the open ball, $r$ is the radius, and $d(\cdot, \cdot)$ is the standard metric on $\mathbf{R}^n$.)
Is it true that a subset $X\subset\mathbf{R}^n$ is closed if and only if it can be covered by a finite number of closed balls?
If $X$ is closed, its complement can be covered by open balls. That's all I got.
just answered my own question. It's not possible. Take the complement of the open ball around the origin of radius $1$.
 A: The answer is no. For example, $\mathbb Z$ in $\mathbb R$ is closed (since it is discrete, and every sequence converges if and only if it is eventually constant) but a finite union of closed balls has a finite diameter.
The diameter of a set $A$ is defined as: $\operatorname{diam}(A)=\sup\{|x-y|:x,y\in A\}$, the supremum of distances between the elements of $A$.
However, if we consider compact subsets, then the answer is almost yes, that is a finite union of closed balls is compact, and a compact set is a subset of such finite union of closed balls. This comes from the fact that a subset of $\mathbb R^n$ is compact if and only if it is closed and bounded. Since it is compact it is covered by a finite union of open balls. Take the closed balls with the same radius and centers and you have it.
Added. Several things to note:


*

*A finite union of closed balls is always closed, and its diameter is always finite.

*Every bounded set can be covered by a closed ball, regardless of being open or closed or anything else.

*Not every set is the union of closed balls, it is not the intersection of finite union of closed balls either. Closed sets can get very complicated, and the simplest and best way to describe them is ultimately as "complement of open".

*Closed sets which contain no open subset (for example a singleton) cannot be union of closed balls, since closed balls have positive radii and thus contain an open set.
This list can get very long, so I'll stop now.
