I need help with the proof of the converse, as given by Rudin in Principles of Mathematical Analysis, to the following theorem:
Theorem 2.47: A subset $E$ of the real line $\mathbb{R}^1$ is connected if and only if it has the following property: If $x \in E$, $y \in E$, and $x < z < y$ then $z \in E$.
Proof: To prove the converse suppose that $E$ is not connected. Then there are nonempty separated sets $A \text { and } B$ such that $A \cup B = E$. Pick $x \in A, y \in B$ and assume (without loss of generality) $x < y$. Define
$$z = \sup(A \cap [x,y])$$
By Theorem 2.28, $z \in \overline{A}$; hence $z \not\in B$. In particular, $x \leq z < y.$ If $z \not \in A$, it follows that $x < z < y$, and $z \not\in E$. If $z \in A$, then $z \not\in \overline{B}$, hence there exists $z_1$ such that $z < z_1 < y \text { and } z_1 \not\in B$. Then $x < z_1 < y$ and $z_1 \not \in E$. $_\Box$
What I need help with:
i) I need help understanding what $z$ is and if there is any relationship to $\sup(A)$. I initially thought they were equal, but I constructed an example where they weren't.
ii) I need help understanding why Theorem 2.28 implies that $z \in \overline{A}$. It is my understanding that Theorem 2.28 implies that $z \in \overline{A \cap [x,y]}$. I initially thought that $\overline{A \cap [x,y]} = \overline{A} \cap \overline{[x,y]}$, but I've come to realize that this isn't generally the case and therefore I'm having troubles seeing the implication.
iii) I suppose that I should be able to understand the rest of the proof if I understand i) and ii), but any further added detail would be greatly appreciated.
Thank-you.
For reference:
Definition: Two subsets $A$ and $B$ of a metric space $X$ are said to be separated if $\overline{A} \cap B = \emptyset = A \cap \overline{B}$.
Definition: A set $E \subset X$ is said to be connected if $E$ is not a union of two nonempty separated sets.
Theorem 2.28: Let $E$ be a nonempty set of real numbers which is bounded above. Let $y = \sup(E)$. Then $y \in \overline{E}$. Hence $y \in E$ if $E$ is closed.