Theorem 2 (Borel-Lebesgue)
Tag 0BPH, permanent. Cite it as [Bourbaki, Tag 0BPH].
General Topology, chapter IV, § 2. Fundamental topological properties of the real line
For a subset of the real line to be compact it is necessary and sufficient that it be closed and bounded.
1) The condition is necessary. Let be a compact subset of and let be a real number . The set is closed (Chapter I, 9, no. 3, Proposition 4) and there exists a finite number of points () of such that is contained in the union of the neighbourhoods (Chapter I, 9, no. 3). Let be the maximum of the numbers ; then we have .
2) The condition is sufficient. It is enough to show that every interval () is compact, and since this interval is a closed subset of a complete uniform space, it is enough to show that, for each , we can cover by a finite number of intervals of the form (Chapter II, 4, no. 2, Corollary to Theorem 3). Now, let be an integer such that ; if and if is the largest integer (positive or negative) such that , then we have and . Hence the intervals () form a covering of the required type.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.