I am looking at the Lemma in Ross's Stochastic Process textbook. The lemma says that
$P\{S_{N(t)} \leq s \}=\bar{F}(t)+\int_0^s \bar{F}(t-y)\mathrm{d}m(y), t \geq s \geq 0$.
In his proof, I am confused with the last step shown below:
$=\bar{F} (t)+\sum_{n=1}^{\infty} \int_0^{\infty} P\{S_n \leq s, S_{n+1} > t |S_n = y\}\mathrm{d}F_n(y)$
$= \bar{F}(t)+\sum_{n=1}^{\infty}\int_0^s \bar{F}(t-y)\mathrm{d}F_n(y)$
$=\bar{F}(t) + \int_0^s \bar{F}(t-y)\mathrm{d}\left( \sum_{n=1}^{\infty} F_n(y)\right)$
Although he mentions that the interchange of integral and summation is justified since all terms are non-negative in the bottom line, I believe it only accounts for why the summation symbol can go through the integral symbol.
But I am really confused about the last step. Can someone explain the principle behind it and answer why such step is valid?
Thanks a lot in advance.