Let $f:\mathbb{R}\to\mathbb{R}$. Let $S$ be the set of points at which $f$ is discontinuous. Which of the following could be $S$?
- All positive real numbers
- All irrational numbers
- All real numbers
I know that 3 is possible. One example is Dirichlet function. But I am not sure about 1 and 2. For 2, I know that there is no function $g$ on $[0,1]$ such that $g$ is continuous only at rational points. So I suspect 2 to be impossible. For 3, I am not sure but I suspect that something could go wrong near zero. Namely, if $f$ is continuous at zero, $f$ is continuous near zero.