The function $f:\Bbb R\rightarrow \Bbb R$ defined with: $$f(x)= \left\{ \begin{array}{} 1, &x\in \mathbb{Q} \\ 0, &x\not\in\mathbb{Q} \end{array}\right.$$ is not continuous.
Let $c\in\Bbb Q$ and $f(c)=1$. Let a sequence $(c_n)_n$ from $\Bbb R\setminus \Bbb Q$ which converges to $c$. Then $f(c_n)=0$ so the sequence $(f(c_n))_n$ doesn't converge to $1$. Analogously, for $c\not\in \Bbb Q$ and $f(c)=0$ let $(c_n)_n$ be a sequence from $\Bbb Q$ which converges to $c$. Then $f(c_n)=1$ so the sequence $(f(c_n))_n$ doesn't converge to $0.$
What's the idea behind all this? I don't see how this proves that a function is not continuous. I have the following definition:
Let $I\subseteq \Bbb R$ be an open interval, $c\in\ I$ and a function $f:I\rightarrow \Bbb R$. The function $f$ is continuous at a point $c$ if and only if
$$(\forall \varepsilon>0)(\exists \delta>0)(\forall x\in I)((|x-c|<\delta)\Rightarrow(|f(x)-f(c)|<\varepsilon)).$$
Then if we want to prove that a function is not continuous, doesn't it mean we should prove that:
$$(\exists \varepsilon>0)(\forall\delta>0)(\exists x\in I)((|x-c|<\delta)\land(|f(x)-f(c)|\geq \varepsilon))?$$