Is $\mathbb R$ completely normal ( $T_5$ ) space?
I've seen this Wiki Page about Urysohn's lemma, which states that a topological space is normal if and only if any two disjoint closed sets can be separated by a continuous function.
Two plain subsets $A$ and $B$ are said to be separated by a function if there exists a continuous function $f : X \to[0,1]$ such that $f(A) = 0$ and $f(B) = 1$. Any such function is called a Urysohn function for $A$ and $B$.
So, now I need to construct continuous function $f : \mathbb R \to [0, 1]$ such that for all closed $A, B \subseteq \mathbb R: A \cap B = \varnothing,$ we have $f(A)=0$ and $f(B)=1$.
However, I wonder if one could construct such continuous function. I tried some thoughts by brute force but no success. Is there any algorithm to solve this kind of problems?
Thanks in advance!