A metric space, B(S), with the "uniform metric" d(f,g) = sup {|f - g|}, of bounded, real valued functions on the set S is separable if and only if the space is finite. This is ex. 7 in the "Introduction to Topology" by Gamelin and Green (Second Edition) Part I. Section 5, which I am reading to keep my retired brain cells active. Regrettably, they are not active enough, because the hint supplied by the authors has not helped me. The hint defines a characteristic function for subsets of S as follows:

$\displaystyle X_T(s) = 1$ for s belongs to T
$\displaystyle X_T(s) = 0$ for s belongs to S-T
With this definition the open balls $\displaystyle B(X_T; 1/2)$ are disjoint, the authors state. That is the hint.

I see from the metric that the balls are indeed disjoint. I have not been able to use this property to show that S is finite if there is a countably dense subset of functions in B(S), nor given that the set S is finite that there is a countably dense set in B(S). I surmise that perhaps the zeros of a polynomial with real polynomial of degree N is involved in showing that S is finite. I have not been able to carry through the argument, sadly.

Can anyone help?