If i suppose that $\mathbb{R}$ is not connected, then there exists $A\subset \mathbb{R}$ is closed and open , where $\emptyset\neq A\neq \mathbb{R}$
How to continue with this methode ?
Edit: Let $x\notin A$ we suppose that $A\cap ]-\infty,x]\neq \emptyset$ (or we work with that set $A\cap [x,+\infty[$ )
this set is closed and open sice $x\notin A$ and it is bounded from upper by $x$
so there exists $y=\sup (A\cap ]-\infty,x])$, As $A\cap ]-\infty,x]$ is open; $\exists \varepsilon>0, ]y-\varepsilon, y+\varepsilon[\subset (A\cap ]-\infty, x])$
Where is the contradiction please
Thank you