[step:Apply the Martingale Problem to conclude $g(s, X_s)$ is a martingale on $[0, t]$]
By the [Martingale Problem](/theorems/2105), the process
\begin{align*}
M_s = g(s, X_s) - g(0, X_0) - \int_0^s (\partial_r + L)g(r, X_r) \, d\mathcal{L}^1(r)
\end{align*}
is a continuous local martingale. Since $(\partial_s + L)g = 0$ (established in the previous step), the integral vanishes:
\begin{align*}
M_s = g(s, X_s) - g(0, X_0) = u(t - s, X_s) - u(t, x).
\end{align*}
Therefore $s \mapsto u(t - s, X_s)$ is a continuous local martingale on $[0, t]$ (up to the additive constant $u(t, x)$).
We upgrade this to a true martingale. Since $f \in C^2_b(\mathbb{R}^d)$, the solution $u$ of the Cauchy problem is bounded: $\|u\|_\infty \leq \|f\|_\infty$ (by the maximum principle for parabolic equations, or directly from the representation $u(\tau, x) = \mathbb{E}_x[f(X_\tau)]$ once established, which gives $|u(\tau, x)| \leq \|f\|_\infty$; alternatively, the existence theory for the Cauchy problem with $f \in C^2_b$ gives bounded solutions). Therefore $|u(t - s, X_s)| \leq \|u\|_\infty$ for all $s \in [0, t]$, which means $M$ is a bounded continuous local martingale. By the [Dominated Local Martingale is a Martingale](/theorems/2079) theorem, $M$ is a true martingale.[/step]