Characterization of a martingale by bounded continuous-time stopped expectations (source code)

= Characterization of a martingale by bounded continuous-time stopped expectations
{title2=$\mathbb E X_T=\mathbb E X_0$}

Let $X$ be an <integrable> <adapted> <càdlàg process> under the <usual conditions for a filtration>. Then $X$ is a <martingale> if and only if $X_T$ is <integrable> and $\mathbb EX_T=\mathbb EX_0$ for every <bounded stopping time> $T$.

The forward implication is the <optional stopping theorem>. Conversely, fix deterministic $s<t$ and $A\in\mathcal F_s$, and use the <stopping time> $U=s\mathbf1_A+t\mathbf1_{A^c}$. Comparing $\mathbb EX_U$ with $\mathbb EX_t$ gives $\mathbb E[(X_t-X_s)\mathbf1_A]=0$. Since this holds for every such $A$, it is the defining <conditional expectation> identity of a <martingale>. The converse uses only integrable adapted coordinates; the stated path assumptions justify the forward assertion at all bounded random times.