For a stopping time , optional sampling for gives , hence
This is justified by truncation and the Cauchy-Schwarz inequality, as in solution. If is a martingale, bounded optional sampling gives , proving the required condition.
Conversely suppose the required condition holds. Every bounded stopping time lies below some deterministic , so the displayed identity gives . The product is continuous and adapted, and its stopped values are integrable: the Doob L2 maximal inequality bounds the product of the two path suprema in by the Cauchy-Schwarz inequality. The characterization of a martingale by bounded continuous-time stopped expectations therefore makes a martingale. Thus orthogonality is equivalent to the backward-stopping expectation test. In contrast to weakly orthogonal continuous martingales, this tests the product at random times, not only deterministic times.
Fix deterministic and . The pasting ordered stopping times argument shows that is a bounded stopping time. The given stopped-expectation property, applied to and to the deterministic stopping time , yields
This holds for every . Since is -measurable and both time values are integrable, it is exactly the defining test for conditional expectation:
Hence is a martingale. This proof of the characterization of a martingale by bounded continuous-time stopped expectations uses only deterministic two-time pastings; the càdlàg assumption and the usual conditions for a filtration are stronger than needed for this implication.