For real random variables , if is measurable with respect to the sigma-algebra generated by a random variable , there is a Borel measurable function with . To prove the bounded case, approximate pointwise by finite-valued simple functions . Each level set is for a Borel set , so each approximation factors as with a Borel measurable function. Apply scalar clipping to with a common bounded interval and use its limit superior to obtain . For unbounded finite , apply the bounded case to the one-to-one bounded continuous function , then invert on and assign arbitrary values elsewhere. Exact measurability gives exact factorization; assumptions after adjoining null sets give an almost surely equal version.