I got stuck on an assignment. Can you help me to solve this?
Let $(X,d)$ be a metric space, and let $C$ be a subst. Define the function: $$ f \quad : \quad X \longrightarrow \mathbb{R} \quad : \quad x \ \longmapsto \ \inf \{ d(x,a) : a \in C \} $$ Prove that this function is continuous.
Research effort
Let's write $d(x,C) := \inf \{ d(x,a) : a \in C \}$. We can make a sequence Cauchy $(a_n)_{n \in \mathbb{N}}$ such that the resulting sequence $(d(x,a_n))_{n \in \mathbb{N}}$ converges to $d(x,C)$. We can find a sequence $(y_n)$ with the same properties with respect to $y$. With this knowledge I tried to find an upper bound: $$ |d(x,C)- d(y,C)| \quad \leq \quad |d(x,C)- d(x, a_n)| + |d(y,a_n)- d(y,C)| $$ The leftmost term will be small. The rightmost term might become small too, but I can't see it. can you please help me?
I think this is just triangle inequality.
$d(x,C) = \inf_{c\in C} d(x,c) \leq \inf_{c\in C} d(x,y) + d(y,c) = d(x,y) + d(y,C)$
symetrically
$d(y,C) \leq d(x,y) + d(x,C)$
so
$\|d(x,C)-d(y,C)\| \leq d(x,y)$
so it is a contraction (hence many properties)