I am considering the function
$$f(x)=\begin{cases} 1 &\text{if } x\in [0,1]\setminus \Bbb Q \\{}\\ 0 &\text{if } x\in [0,1] \cap \Bbb Q\end{cases}$$
I am trying to evaluate this using the Lebesgue integral. Quite simply, I am letting:
$$E_0=\{\text{$x$ such that $x$ is rational on $[0,1]$}\}, \text{ and } E_1=\{\text{$x$ such that $x$ is irrational on $[0,1]$}\}.$$
$\mu (E_0)$ is the size of the rational numbers, I am saying is $0$.
$\mu (E_1)$ is the size of the irrational numbers, I am saying is $1$.
When I evaluate the integral; $\int_a^b f(x) \, d \mu = 0\cdot0 + 1\cdot1 = 1$.
My questions are: 1) Am I correct? 2) I am stuck on the understanding the measure of the sets.