According to the classroom notes "Uniformly Continuous Linear Set" in American Mathematical Monthly, Vol. 62. No. 8(Oct., 1955) pp. 579-580, Author: Norman Levine, DOI: 10.2307/2307254.
In the proof of theorem 1,how to verify that f is continuous while not uniformly continuous itself?
thanks
Relevant part of the proof (in this proof $E$ is a linear set of points):
If $E$ is not closed, there is a point $c$ which is a limit point for $E$, but which does not belong to $E$. Then, without loss of generality, there exists a sequence of points $p_i$ in $E$ such that $p_i<p_{i+1}$ and $\lim p_i=c$.
Define $$f\equiv \begin{cases} 1 & \text{for }x=p_{2i-1} \\ 0 & \text{for }x=p_{2i} \end{cases} $$ and linear between $p_i$ and $p_{i+1}$, and let $f(x)=1$ for $x>c$ and for $x\le p_1$. It is easy to verify that $f(x)$ is continuous on $E$, but not uniformly continuous on $E$.