Theorem 1 (Weierstrass)
Tag 0BSF, permanent. Cite it as [Bourbaki, Tag 0BSF].
General Topology, chapter IV, § 6. Continuous and semi-continuous real-valued functions
Let be a continuous real-valued function defined on a non-empty quasi-compact space . Then there is at least one point such that , and at least one point such that . For is compact (Chapter I, § 9, no. 4, Theorem 2) and therefore closed in ; hence contains its bounds.
This theorem is often stated in the form that a continuous real-valued function on a non-empty quasi-compact space attains its bounds.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.