Please how can I justify that these two definitions can be the same thing or let me say how can I compare the following two definitions.
If $g$ is a right continuous, increasing step function on $\mathbb{R}$ with countable discontinuous points $x_1,x_2,\cdots,x_n$. Then for any function $f$, we define the integral $$\int_{\mathbb{R} }f dg =\sum_{k=1}^{n} f(x_k)\Delta g(x_k)$$where $\Delta g(x_n) = g(x_n^+)-g(x_n^-)> 0$.
Let $(X, \mathcal{H}, \mu)$ be a measure space and let $f: X \rightarrow [0, \infty]$ be a measurable function. We define the Lebesgue integral of $f$ over $X$ as $$\int_{X}f d \mu= \sup \left\{ \int_{X}g d \mu: 0 \le g \le f, g \,\, \text{is simple} \right\}.$$
I would be glad if a proof or correspondence can be given. Thanks for your help.