$(X,d)$ is a metric space. We fix a point, $a \in X$, and we let $A = \bigcap_{n\in\mathbb{N}} \left\{x: d(x,a) < r + \frac{1}{n} \right\} \in X$.
Is $A$ open or closed? If it is closed. What is the proof that it is closed?
Thank you for your time.
Kind regards,
Marius
$A$ is closed if $A^c$ is open. Remember that in a metric space, a set is open if for each point $y$ there is an $\epsilon$ such that the $\epsilon$-ball around $y$ lies completely in the set.
So let $y$ be any point in $A^c$. There is an $n_0 \in \mathbb{N}$ such that $d(y,a) \geq r + \frac{1}{n_0}$. For any point $x \in A$ it holds that $d(x,a) < r+ \frac{1}{2n_0}$. With $\epsilon := \frac{1}{2 n_0}$, you see from the triangle inequality that $d(y,a) \leq d(x,a) + d(y,x)$, from which $$d(y,x) \geq d(y,a) - d(x,a) > r + \frac{1}{n_0} - r - \frac{1}{2 n_0} = \epsilon$$ follows. Therefore, the $\epsilon$-ball $K_\epsilon := \{y' \in X: d(y',y) < \epsilon\}$ lies completely in $A^c$, which means that $A^c$ is open and $A$ is closed.