Let $S\subset M$ dense subset. Given a sequence $(x_n)$ in $M$, suppose that for some $x\in M$ $\lim d(x_n,s) = d(x,s)$ for every $s\in S$. Prove that $\lim x_n = x$.
My attempt: Since $S$ is dense in $M$ and $x\in M$, it follows that $x = \lim a_n$ for some sequence $(a_n)$ in $S$. It is given that $\lim d(x_n,s) = d(x,s)$ for every $s\in S$. So, in particular we can evaluate for all elements of $(a_n)$. Therefore, noting that the metric function $d$ is continuous, we obtain $\lim d(x_n,a_n) = d(x,a_n) = d(\lim a_n,a_n) = \lim d(a_n,a_n) = 0.$
But this only proves that $\lim d(x_n,a_n) = 0$. How can I proceed to the conclusion that $\lim x_n = x$?