Let $X$ be a compact metric space, $\mathcal{B}(X)$ be the borel-sigma algebra.
Assume $\mu(G)>0$ for all nonempty open sets $G\subseteq X$.
Show that for each open set $G$, exists a closed subset $F\subset G$ of positive measure and a continuous function $f$ defined as $f(x)=1$ for $x\in F$, $f(x)>0$ for $x\in G$ and $f(x)=0$ for $x\in X\setminus G$.
Is there any reason why a function like $g(x)=\frac{d(x,X\setminus G)}{d(x,X\setminus G)+d(x,G)}$
wouldn't work? The only problem i got with it...that $g(x)=1$ for all $x\in G$. But it seems to work. I'm not sure what to show here. I feel somehow it's not the function im supposed to coock up :P