Suppose is continuous. Prove that defined by
is Borel measurable.
Show that for any Borel set there is a choice of continuous function so that agrees almost everywhere with the indicator function of .
Observe that by continuity,
so because supremums and infimums of a countable family of measurable functions is measurable, it follows that is Borel measurable.
Let be the set of Borel sets which satisfy this condition. Since and , we see that . If is an open set, then is lower semi-continuous, so there exists a sequence of continuous functions which converge pointwise to , and if for we set
then we see that is piecewise continuous and continuous at each endpoint, since each was. Thus, contains open sets. If , then let be the associated continuous function. Observe that if , then has range in , is continuous, and satisfies
so is closed under complements. Finally, suppose with corresponding continuous functions . Let and be the sequence , i.e., each appears infinitely often. For each , by regularity of the Lebesgue, there exists an open set such that . Let be a piecewise linear approximation to such that and only differ on an interval of length such that on . As before, set for
as before. Then by construction, if , then because appears infinitely often, it follows that . If for every , then there exists large enough so that , so by construction, for all , and so almost everywhere, as required.