I'm studying for my Topology exam and I am trying to brush up on my metric spaces.
Suppose $(X, d)$ is a metric space and $A$ is a proper subset of $X$. Show that the function $f: X \to \Bbb R$ given by $f(x) = d(x, A)$ is a continuous function.
I know that showing the pre-image of an open set is open in $X$ is an option for continuity. Yet, I would like to know how to show continuity with open balls or neighborhoods given the context of the problem.
By the way, is this the Euclidean metric? Or am I jumping the gun a bit there?