I struggled to understand a part of the following proof.
Topological Proof that every Interval $I \subset \mathbb{R}$ is connected
Definition: A topological space is connected if, and only if, it cannot be divided in two nonempty, open and disjoint subsets, or, similarly, if the empty set and the whole set are the only subsets that are open and closed at the same time.
Proof. Suppose $I = A \cup B$ and $A \cap B = \emptyset$, $A$ and $B$ are both non-empty and open in the subspace-topology of $I \subset \mathbb{R}$. Choose $a\in A$ and $b\in B$ and suppose $a < b$. Let $s := \mathrm{inf}\{ x \in B ~|~ a < x \}$. Then in every neighborhood of $s$ there are points of $B$ (because of the definition of the infimum), but also of $A$, then if not $s = a$, then $a < s$ and the open interval $(a,s)$ lies entirely in $A$. And so $s$ cannot be an inner point of $A$ nor $B$, but this is a contradiction to the property that both $A$ and $B$ be open and $s \in A \cup B$.
My Problems I am struggled with the bold parts. Probably because I'm more familiar with metric spaces than with topological spaces. I know that $\forall \epsilon>0, \exists y\in B:s+\epsilon>y$ and this implies that every open ball $\beta (s,\epsilon)$ contains a point of $B$. Furthermore, if $a=s\in A$ clearly $\beta (s,\epsilon)$ contains a point of $A$, otherwise, if $a<s$ then $(a,s)\subset A$ which also means that $\beta (s,\epsilon)$ contain a point of $A$. If this argument is correct, then my problem turns out to be the translation of these ideas of open balls and distances to the topological framework. I have the intuition that he is trying to show that $s$ is a boundary point of $B$ in $I$. As $A$ and $B$ separates $I$, $B^c=A$. So, $s$ can never be (an interior point) either in $A$ or in $B$.
I'm trying to furnish a proof in the context of a topological space. Can someone clarify my doubts?
Thanks in advance!