Let $D$ a infinity countable subset of $(a,b)$. Show that exists a function not increasing $f:(a,b)\rightarrow\mathbb{R}$ that is continuous only over $(a,b)\setminus D$
This is an exercise of my course of Measure and Integration. The next exercise is to show there is a function not increasing over $[0,1]$ that is continuous only over the $[0,1]\setminus\mathbb{Q}$ and I'm thinking that the first exercise is a more geral approach. I'm right or there is two versions of the same exercise?
I know how to solve the second (the example to solve), but I'm not convinced that the first exercise is the same thing. If the first is a more geral approach, I need help how to solve this.
You can use the theorem saying that if $F$ is a $F_{\sigma}$ set, then there exists some function $f$ with $D(f)=F$, where $D(f)$ denotes to the set of discoutinuous points. For the non-increasing part, you can consider $-v(x)=-V_{a}^{x}f$, the negative of variation function. $v(x)$ is continous at a point $x$ if and only if $f$ is continuous at that point. So $D(-v)=D(f)=F$.