There is a calculation step in Lemma 5.4 of Probability Theory by Varadhan I am wondering about.
He defines the distribution function as $F(x):=P(X\le x)$ according to Chapter 1.6 and he also introduces the Riemann-Stieltjes integral later on. In Lemma 5.4 he defines $T(y):=P(Y\ge y)$. For continuous distributions, it holds $0(1-F)(y)=P(Y>y)=P(Y\ge y)=T(y)$. However, this is not true in general and I assume, that $(1-F)(y)\ne T(y)$.
My attempt: Since $Y$ is a nonnegative random variable, it holds $P(Y\le y)$ for any $y<0$. Then it holds
$$ \begin{aligned} E[Y^p]=\int_{\Omega}Y^p dP=\int_\mathbb{R}y^p dF(y)=\int_{[0,\infty)}y^p dF(y)=-\int_{[0,\infty)}y^p d(1-F)(y). \end{aligned} $$
On the other hand, the very first equality in the proof of Lemma 5.4 claims that
$$E[Y^p]=-\int_{[0,\infty)}y^p dT(y).$$
How does this coincide? (Again: It is clear to me, that this is true for continuous distributions.)
Any hint or help is appreciated. Thank you in advance!
EDIT:
Alternatively, just notice, that by assumption
$$0\le(1-F)(y)\le P(Y\ge y) \le \frac{1}{y}\int_{Y\ge y} X dP$$
Then, one finds by using integration by parts for Stieltjes integrals
$$ \begin{aligned} E[Y^p]=-\int_{[0,\infty)}py^{p-1} d(1-F)(y)&=\int_{[0,\infty)}py^{p-1} (1-F)(y)dy\\ &\le \int_{[0,\infty)}py^{p-1} \frac{1}{y}\int_{Y\ge y} X dP dy. \end{aligned} $$
But as Mittens stated, you can also see, that $py^{p-1}P(Y>y)$ and $py^{p-1}P(Y\ge y)$ only differ on a countable set, such that the integral with respect to the Lebesgue measure / the variable $y$ is the same. This in return gives the same Stieltjes integral by using integration by parts for Stieltjes integral again, since $$y^pT(y)\bigg|_{y=0}^{y=\infty}=y^p(1-F)(y)\bigg|_{y=0}^{y=\infty}=0.$$