Theorem 4
Tag 0BPN, permanent. Cite it as [Bourbaki, Tag 0BPN].
General Topology, chapter IV, § 2. Fundamental topological properties of the real line
A subset of is connected if and only if is an interval.
i) The condition is necessary. Suppose that is connected: if consists of a single point, it is an interval. If has more than one point, let and be two points of such that ; by Proposition 1 of no. 4 it is enough to show that every such that belongs to . Now, if we should have ; but is the union of two disjoint open sets ] and , each of which meets , and therefore would not be connected, contrary to hypothesis.
2) The condition is sufficient. Let us show first that every compact interval is connected. For each integer , let be the entourage consisting of all pairs such that ; by Proposition 6 of Chapter II, § 4, no. 4, it is enough to show that every pair of points of can be joined by a -chain. Let be the greatest integer such that and let be the greatest integer such that ( and exist by reason of Theorem 1 of no. 1); then . If then and the points and form a -chain. If , put (); we have , and , hence the points form a -chain joining and .
If now is any interval not consisting of a single point, and if and are any two points of such that , then the interval is contained in and is connected, and hence is connected.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.