For the continuous adapted process , the supremum on each compact time interval is attained. Let . Continuity gives , and hence
Each event inside the union is in , so this proves carefully that is a stopping time. Merely checking rational times for would miss a path that touches the level at an isolated irrational time; the approximation from below avoids this issue. This is the closed-level hitting times of continuous adapted processes criterion. For , nonnegativity makes and the later inequality is immediate.
For , put and . On , continuity implies . To justify the optional sampling step without extra filtration assumptions, round upwards to a finite dyadic grid in , obtaining stopping times . The event belongs to , and hence to : directly, for , while for it is . Discrete optional sampling for the sampled submartingale gives
As , continuity gives . Nonnegativity and the Fatou lemma therefore yield
Consequently the Doob maximal inequality for a nonnegative submartingale takes the precise form
For the second-moment bound, suppose first that ; otherwise the inequality with an infinite right side is automatic. Set . The layer cake representation and the preceding tail estimate give
The integrands are nonnegative, so the interchange is justified by the Tonelli theorem. Since is bounded, division is legitimate when its norm is nonzero, giving ; the zero-norm case is immediate. Finally, monotone convergence as gives
This truncated layer-cake proof of the L2 maximal inequality proves square integrability of the maximum rather than assuming it during the Cauchy-Schwarz inequality step.