Prove that a subset of R is connected iff it is an interval