Theorem 3
Tag 08SG, permanent. Cite it as [Bourbaki, Tag 08SG].
Integration, chapter IV, § 4. Integrable functions and sets
— For a numerical function to be integrable, it is necessary and sufficient that, for every , there exist an upper semi-continuous function , with finite values and compact support, and a lower semi-continuous integrable function , such that and .
The condition is sufficient by a general criterion for integrability (§3, No. 4, Prop. 8), Prop. 5 and its Corollary 1. Let us show that the condition is necessary. If is integrable then, for every , there exists a function , continuous and with compact support, such that . By the definition of , this implies that there exists a lower semi-continuous function such that and . Thus, for all , and since is everywhere finite, it follows that for all . The functions and meet the requirements.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.