Let
- $(\Omega,\mathcal A,\operatorname P)$ be a probability space
- $(\mathcal F_t)_{t\ge0}$ be a right-continuous filtration of $\mathcal A$
- $\tau_n$ be an $\mathcal F$-stopping time for $n\in\mathbb N_0$ with $$\tau_{n-1}\le\tau_n\;\;\;\text{for all }n\in\mathbb N\tag1$$ and $$\tau_n\xrightarrow{n\to\infty}\infty\tag2$$
- $M$ be a right-continuous $\mathcal F$-martingale on $(\Omega,\mathcal A,\operatorname P)$ with $$M_t\in L^2(\operatorname P)\;\;\;\text{for all }t\ge0\tag3$$
I want to show that $$\operatorname E\left[\sum_{n\in\mathbb N}\left|M^{\tau_n}_t-M^{\tau_{n-1}}_t\right|^2\right]=\operatorname E\left[M_t^2\right]\;\;\;\text{for all }t\ge0\;.\tag4$$
Since $(\tau_n)_{n\in\mathbb N_0}$ is nondecreasing, it's easy to see that $$\operatorname E\left[M_t^{\tau_n}-M_t^{\tau_{n-1}}\mid\mathcal F_{\tau_{n-1}}\right]=0\;\;\;\text{for all }t\ge0\text{ and }n\in\mathbb N\tag5$$ and hence $$\operatorname E\left[M_t^{\tau_n}-M_t^{\tau_{n-1}}\right]=0\;\;\;\text{for all }t\ge0\text{ and }n\in\mathbb N\;,\tag6$$ but I have no idea how we can show $(4)$. So, how can we prove it?
Hints: