I want to prove highlighted part by epsilon-delta method.
So by definition of continuity:Function $f$ is continuous at $a$ if for every $\epsilon >0$ there exists a $\delta >0$ such that $|x - a| < \delta => |f(x) - f(a)| < \epsilon$. And we must show, that this fact doesn't hold.
Let's pick $\epsilon = 1/2$
Suppose $a$ is irrational:$|x - a| < \delta => |f(x) - f(a)| < \epsilon$
From this follows $|f(x)| < \epsilon$ and if we will pick any rational number $x$ within $\delta$ and $\sigma$ then $|f(x)| = 1 > 1/2 = \epsilon$. So function is not continuous if a is irrational
The same strategy for $a$ is rational: $|x - a| < \delta => |f(x) - f(a)| < \epsilon$
From this follows $|f(x)| < \epsilon$ and if we will pick any irrational number $x$ within $\delta$ and $\sigma$ then $|f(x)-1| = 1 > 1/2 = \epsilon$. So function is not continuous if x is rational.
Is my proof correct? if not, what exactly is wrong? Or maybe I missed some important details?
