Lemma 5
Tag 08WF, permanent. Cite it as [Bourbaki, Tag 08WF].
Integration, IV, p. 86, § 5. Measurable functions and sets
Let be a locally compact space, a bounded positive measure on , a Banach space, and a bounded function on with values in . The following conditions are equivalent:
(i) The set of points of discontinuity of is -negligible.
(ii) For every , there exist elements of , functions belonging to , and a bounded continuous function on such that on , and .
Denote by the set of points of discontinuity of , and let .
(i) (ii). Suppose that condition (i) is satisfied. Let . The function is -integrable (No. 2, Cor. 4 of Prop. 5, and No. 6, Th. 5), therefore there exist in and in such that, on setting , we have (§ 3, No. 5,
Prop. 10). Multiplying by a suitable same element of , we can suppose in addition that
on X, whence . The set of points of discontinuity of is contained in , hence is negligible. For every , set .
Then on X, and on , that is, almost everywhere for , therefore . On the other hand, is bounded and upper semi-continuous, hence is the lower envelope of the set of bounded continuous functions . Therefore there exists a bounded continuous function on X such that and (§ 4, No. 4, Cor. 2 of Prop. 5). Then and .
(ii) (i). Suppose that condition (ii) is satisfied. For every let be the oscillation of f at x (GT, IX, § 2, No. 3). Let . There exist with the properties of (ii). For every , is the oscillation of at x, therefore . Thus . Consequently, the set of such that satisfies . This proves that , whence .
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.