This answer says that if $X$ is a random variable and $X_+ = \mathrm{max}(0, X)$, then $X_+ = \int_0^\infty I_{\{X > x\}}\mathrm{d}x$. I'd like to know how to derive this starting with $A \in \mathcal{S} \implies \int_S 1_A\mathrm{d}\mu = \mu(A)$ (from "Desired Properties").
My thinking is that for a probability space $(\Omega, F, \mu)$, $\{X > t\} \in F \implies \int_\Omega I_{\{X > t\}}\mathrm{d}\mu = \mu(\{X > t\})$ but it's the wrong variable of integration. Am I on the right track?