Lemma 1
Tag 08VJ, permanent. Cite it as [Bourbaki, Tag 08VJ].
Integration, IV, p. 72, § 5. Measurable functions and sets
Let g be a function with values in F, such that Np(g) < +\infty* (in other words, a function in ). The set A of points x \in X such that g(x) \neq 0 is contained in the union of a negligible set and a sequence of compact sets.
Let be the set of points such that ; A is the union of the , and , whence ; it follows that is contained in the union of a negligible set and a sequence of compact sets (§ 4, No. 6, Cor. 3 of Th. 4), therefore so is A.
The lemma proved, consider first the case that f has compact support K. By Cor. 1 of Th. 3 of No. 5, there exists a sequence of measurable step functions such that at every point and such that tends to almost everywhere. Now, is a linear combination of characteristic functions of measurable sets contained in K; since these sets are integrable by Prop. 3 of No. 1, belongs to . Since , Lebesgue’s theorem (§ 3, No. 7, Th. 6) shows that f belongs to .
In the general case, it follows from Lemma 1 that there exists an increasing sequence of compact sets such that is zero almost everywhere in the complement of the union of the . Let be the function equal to on and to 0 elsewhere; is measurable by No. 3, Cor. 5 of Th. 1; since , belongs to by the first part of the argument. Since is equal almost everywhere to the limit of the sequence , Lebesgue’s theorem again proves that , which completes the proof.
One should take care to note that a function that is locally negligible but not negligible is not integrable; thus, a function equal locally almost everywhere to an integrable function is not necessarily integrable.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.