Let $C_f$ and $D_f$ mean sets where a function is continuous and discontinuous. I’m trying to prove there is no function $f:[0,1] \to \mathbb{R}$ such that $C_f = [0,1] \cap \mathbb{Q}$ and $D_f = [0,1] \setminus \mathbb{Q}$.
I have seen a proof using the Baire category theorem that there cannot be two functions $f$ and $g$ where $C_f$ and $C_g$ are both dense and $C_f = D_g$. Thomae’s function is continuous at the irrationals and discontinuous at the rationals, so it is impossible to have a function that is discontinuous on irrationals and continuous on rationals. The proof uses a lemma that if $C_f$ is dense then $D_f$ is first category, and some of the steps are not clear to me.
Is there a more elementary proof that there is no function discontinuous on irrationals and continuous on rationals?