Let \(A\) and \(B\) be disjoint nonempty closed sets in a metric space \(X\), and
define
$$f(p)=\frac{\rho_{A}(p)}{\rho_{A}(p)+\rho_{\Delta}(p)} \quad(p \in X)$$
Show that \(f\) is a continuous function on \(X\) whose range lies in \([0,1]\),
that \(f(p)=0\) precisely on \(A\) and \(f(p)=1\) precisely on \(B .\) This
establishes a converse of Exercise 3: Every closed set \(A \subset X\) is \(Z(f)\)
for some continuous real \(f\) on \(X\). Setting
$$V=f^{-1}\left(\left[0, \frac{1}{2}\right)\right), \quad
W=f^{-1}\left(\left(\frac{1}{2}, 1\right]\right)$$
show that \(V\) and \(W\) are open and disjoint, and that \(A \subset V, B \subset
W .\) (Thus pairs of disjoint closed sets in a metric space can be covered by
pairs of disjoint open sets. This property of metric spaces is called
normality.)