The following question is from Fred H. Croom's book "Principles of Topology"
Let $X$ be a metric space with metric $d$ and $A$ a non-empty subset of $X$. Define $f:X\rightarrow \mathbb{R}$ by \begin{equation} f(x) = d(x,A) , x\in X \end{equation} Show that $f$ is continuous.
Now, we seek to show that $f$ is continuous. In order for it to be continuous, for every point $a$ in $X$, then for every $\epsilon>0$ there exists a $\delta>0$ such that if $x\in X$ and $d(x,a)<\delta$, then $d^{'}(f(x),f(a))<\epsilon$.
Now in this problem, $f(x)$ is defined to be the greatest lower bound of all distances between some point $x$ and the set $A$ (if I am not mistaken).
I am still a little confused on how to approach it from here. Would I just need to apply the definition of continuity? Any suggestion? How would I properly approach this problem?
I want to thank you for taking the time to read this question. I greatly appreciate any assistance you provide.