I was finding a proof of the following result which is a characterisation of functions which are derivative of some function i.e. posseses an antiderivative.
Theorem
Let $I$ be an interval. $f:\mathbb {R\to R}$ be the derivative of some function on $I$ only if the set of all points of discontinuities of $f$ is $F_\sigma$ set of first category.
I want to find a concrete and detailed proof of the theorem.I have tried to prove this on my own,but I do not think this is trivial.Can someone provide me a detailed proof of this theorem?