[step:Verify the stopped process $X^T$ is a martingale]**(i)** We show $\mathbb{E}[X_{\min\{T, t\}} \mid \mathcal{F}_{t-1}] = X_{\min\{T, t-1\}}$ for each $t \geq 1$. Decompose:
\begin{align*}
X_{\min\{T, t\}} = \sum_{s=0}^{t-1} X_s \, \mathbb{1}_{\{T = s\}} + X_t \, \mathbb{1}_{\{T \geq t\}}.
\end{align*}
For $s \leq t-1$, the event $\{T = s\} \in \mathcal{F}_s \subset \mathcal{F}_{t-1}$, and $X_s$ is $\mathcal{F}_s$-measurable, hence $\mathcal{F}_{t-1}$-measurable. By [Taking Out What is Known](/theorems/1151), each term $X_s \, \mathbb{1}_{\{T = s\}}$ passes through the conditional expectation unchanged. The event $\{T \geq t\} = \{T > t-1\} = \{T \leq t-1\}^c \in \mathcal{F}_{t-1}$ (since $T$ is a stopping time), so $\mathbb{1}_{\{T \geq t\}}$ is $\mathcal{F}_{t-1}$-measurable and factors out:
\begin{align*}
\mathbb{E}[X_{\min\{T, t\}} \mid \mathcal{F}_{t-1}] &= \sum_{s=0}^{t-1} X_s \, \mathbb{1}_{\{T = s\}} + \mathbb{1}_{\{T \geq t\}} \, \mathbb{E}[X_t \mid \mathcal{F}_{t-1}].
\end{align*}
The martingale property gives $\mathbb{E}[X_t \mid \mathcal{F}_{t-1}] = X_{t-1}$. Substituting:
\begin{align*}
\mathbb{E}[X_{\min\{T, t\}} \mid \mathcal{F}_{t-1}] = \sum_{s=0}^{t-1} X_s \, \mathbb{1}_{\{T = s\}} + X_{t-1} \, \mathbb{1}_{\{T \geq t\}} = X_{\min\{T, t-1\}},
\end{align*}
where the last equality recombines the sum by noting $X_{t-1} \, \mathbb{1}_{\{T = t-1\}} + X_{t-1} \, \mathbb{1}_{\{T \geq t\}} = X_{t-1} \, \mathbb{1}_{\{T \geq t-1\}}$ and regrouping.
The identity $\mathbb{E}[X_{\min\{T,t\}}] = \mathbb{E}[X_0]$ follows by induction: the averaging property of conditional expectation gives $\mathbb{E}[X_{\min\{T,t\}}] = \mathbb{E}[X_{\min\{T,t-1\}}]$, and iterating down to $t = 0$ yields $\mathbb{E}[X_0]$.[/step]