A subset \(S\subseteq \mathbb{R}\) is connected if and only if it is an interval.
Proof
By contradiction follows that every connected set is an interval.
On the other hand, if \(S\) is not construct open subsets disconnecting \(S\).
A subset \(S\subseteq \mathbb{R}\) is connected if and only if it is an interval.