Let $f:X\to\mathbb{R}$ measurable, suppose that $\mu$ is $\sigma$-finite and put $v(A):=\mu(f^{-1}(A))$, $A\in\mathcal{B}(\mathbb{R})$ (borelians). Show that $v$ is a Lebesgue-Stieltjes measure, that is, find a nondecreasing right-continuous map $F:\mathbb{R}\to\mathbb{R}$ satisfying \begin{equation}\label{eq1} v(E)=\inf\left\{\sum_{(a_k, b_k]\in\mathcal{F}}[F(b_k)-F(a_k)]\right\},\end{equation} where the infimum is taken over all countable collections $\mathcal{F}$ os half-open intervals of the form $(a_k, b_k]$ such that $$E\subset \bigcup_{(a_k, b_k]\in\mathcal{F}}(a_k, b_k].$$
My question is: What function $F$ should I take? I tried to put $F(x)=\mu(f^{-1}(-\infty, x])$ but failed to prove the equality above.