I am stuck in a simple question which should be easy.
The indicator function of $\mathbb Q$ on the compact interval $[0,1]$ is not Riemann integrable. The proof is very easily done by taking the upper and lower sums which are not equal. Yet I cannot understand why the Lebesgue inegrability condition does not seem to work: a bounded function $f: [a,b] \to \mathbb R$ is Riemann integrable if and only if its points of discontinuity form a set with Lebesgue measure zero.
So the question is: does the set od discontinuities for the indicator function of $ \mathbb Q$ on $[0,1]$ have Lebesgue measure zero? The problem arose when I was reading a book which stated that the indicator function is continuous on the set of the irrationals, which itself is un uncountable set! So what is wrong?
The indicator function for $\mathbb Q $ is everywhere discontinuous on $[0,1] $ and so it is not riemann integrable. On the other hand, the function is only nonzero on $\mathbb Q $, a set of measure zero, so its lebesgue integrable has zero value. I.e:
$$\int_{[0,1]} \chi_{\mathbb Q}\, dm=0. $$
To see that the rationals have measure zero, just note that the set of rationals is countable, and so by countable additivity, $$m (\mathbb Q)=m (\bigcup_{n \in \mathbb N} q_n)= \sum_{n \in \mathbb N} m (q_n)=0. $$
Intuitively, you can find an arbitrarily "small" open cover for $\mathbb Q$, since each point has no dimension, and there are only countably many.
Certainly, the function $\chi_{ \mathbb Q} $ is continuous if you restrict its domain to the irrationals, since it is identically zero on that set, and constant functions are continuous (note that a constant function's preimage is either empty, or the whole set, both which are open in any topology.)