For the real-valued variables here, take a -measurable version of . Since the variables are bounded, the conditional expectation defining identity extends to the bounded -measurable multiplier , giving
The equality case for conditional second moments now gives
A nonnegative random variable with zero expectation vanishes with probability one. Thus as an almost sure equality. The same proof works for square-integrable variables; boundedness is more than is needed.