Proposition. Each $C^*$-embedded subset $S$ of a first countable Tychonoff space $X$ is closed.
Proof. Let $S$ be a non-closed subset of the space $X$. Pick a point $x_0\in \overline{S}\setminus S$ and a countable base $\{U_n\}$ of open neighborhoods of the point $x_0$. For each $n$ take a continuos function $f_n:X\to [0,1]$ such that $f(x_0)=1$ and $f_n(X\setminus U_n)=\{0\}$, and put $f(x)=\sum f_n(x)$ for each $x\in S$. It is easy to check that the function $f$ is correctly defined and continuous on $S$ and the image $f(S)\subset\Bbb R$ is unbounded. So it contains a sequence $Y=\{y_n\}$ of distinct points such that $|y_n|>n$ for each $n$. Define a function $g:Y\to [0,1]$ such that $g(y_n)=0$ for even $n$ and $g(y_n)=0$ for odd $n$. Since $Y$ is a closed discrete subspace of a normal space $\Bbb R$, the function $g$ can be extended to a continuous function $\hat g:\Bbb R\to [0,1]$. The construction implies that the function $\hat gf:S\to [0,1]$ cannot be extended to a continuous function from $S\cup\{x_0\}$ to $[0,1]$, so the set $S$ is not $C^*$-embedded in the space $X$. $\square$
My question are:
1: Why is $f(x)=\sum f_n(x)$ for each $x\in S$ defined on $S$ and why is the image $f(S)\subset\Bbb R$ unbounded?
2:Why are $g(y_n)=0$ for even $n$ and $g(y_n)=0$ for odd $n$ and why is $Y$ a closed discrete subspace of a normal space $\Bbb R$?