Topology (Munkres)
§24 Connected Subspaces of the Real Line
$b$ is an upper bound of $A$ in $X$ with respect to $R$ iff $b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and for all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $a\mathrel{R}b$ or $a = b$.
LaTeX source
\begin{definition}
\label{upper_bound_rel}
$b$ is an upper bound of $A$ in $X$ with respect to $R$ iff
$b\in X$ and $A\subseteq X$ and
for all $a\in A$ we have $a\mathrel{R}b$ or $a = b$.
\end{definition}
$b$ is a least upper bound of $A$ in $X$ with respect to $R$ iff $b$ is an upper bound of $A$ in $X$ with respect to $R$ and for all $c$ such that $c$ is an upper bound of $A$ in $X$ with respect to $R$ we have $b\mathrel{R}c$ or $b = c$.
LaTeX source
\begin{definition}
\label{least_upper_bound_rel}
$b$ is a least upper bound of $A$ in $X$ with respect to $R$ iff
$b$ is an upper bound of $A$ in $X$ with respect to $R$ and
for all $c$ such that $c$ is an upper bound of $A$ in $X$ with respect to $R$
we have $b\mathrel{R}c$ or $b = c$.
\end{definition}
$X$ has the least upper bound property with respect to $R$ iff for all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $A$ is inhabited and there exists $b$ such that $b$ is an upper bound of $A$ in $X$ with respect to $R$ there exists $c$ such that $c$ is a least upper bound of $A$ in $X$ with respect to $R$.
LaTeX source
\begin{definition}
\label{least_upper_bound_property}
$X$ has the least upper bound property with respect to $R$ iff
for all $A$ such that $A\subseteq X$ and $A$ is inhabited and
there exists $b$ such that $b$ is an upper bound of $A$ in $X$ with respect to $R$
there exists $c$ such that $c$ is a least upper bound of $A$ in $X$ with respect to $R$.
\end{definition}
$X$ is a linear continuum with respect to $R$ iff $R$ is a simple order relation on $X$ and $X$ has more than one element and $X$ has the least upper bound property with respect to $R$ and for all $x,y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ if $x\mathrel{R}y$ then there exists $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $x\mathrel{R}z$ and $z\mathrel{R}y$.
LaTeX source
\begin{definition}
\label{linear_continuum}
$X$ is a linear continuum with respect to $R$ iff
$R$ is a simple order relation on $X$ and
$X$ has more than one element and
$X$ has the least upper bound property with respect to $R$ and
for all $x,y\in X$ if $x\mathrel{R}y$ then
there exists $z\in X$ such that $x\mathrel{R}z$ and $z\mathrel{R}y$.
\end{definition}
Assume $R$ is transitive.
Suppose $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\intervalopenrel{R}{X}{a}{b}$ is convex in $X$ with respect to $R$.
LaTeX source
\begin{lemma}
\label{intervalopenrel_convex}
Assume $R$ is transitive.
Suppose $a,b\in X$.
Then $\intervalopenrel{R}{X}{a}{b}$ is convex in $X$ with respect to $R$.
\end{lemma}
Proof
Follows by Definition 1, Definition 37 [Transitivity], Definition 129, Definition 148.
LaTeX source
\begin{proof}
Follows by \cref{intervalopen_rel,transitive,subseteq,convex_in}.
\end{proof}
Assume $R$ is transitive.
Suppose $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\intervalopenclosedrel{R}{X}{a}{b}$ is convex in $X$ with respect to $R$.
LaTeX source
\begin{lemma}
\label{intervalopenclosedrel_convex}
Assume $R$ is transitive.
Suppose $a,b\in X$.
Then $\intervalopenclosedrel{R}{X}{a}{b}$ is convex in $X$ with respect to $R$.
\end{lemma}
Proof
Follows by Definition 1, Definition 37 [Transitivity], Definition 130, Definition 148.
LaTeX source
\begin{proof}
Follows by \cref{intervalopenclosed_rel,transitive,subseteq,convex_in}.
\end{proof}
Assume $R$ is transitive.
Suppose $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\intervalclosedopenrel{R}{X}{a}{b}$ is convex in $X$ with respect to $R$.
LaTeX source
\begin{lemma}
\label{intervalclosedopenrel_convex}
Assume $R$ is transitive.
Suppose $a,b\in X$.
Then $\intervalclosedopenrel{R}{X}{a}{b}$ is convex in $X$ with respect to $R$.
\end{lemma}
Proof
Follows by Definition 1, Definition 37 [Transitivity], Definition 131, Definition 148.
LaTeX source
\begin{proof}
Follows by \cref{intervalclosedopen_rel,transitive,subseteq,convex_in}.
\end{proof}
Assume $R$ is transitive.
Suppose $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\intervalclosedrel{R}{X}{a}{b}$ is convex in $X$ with respect to $R$.
LaTeX source
\begin{lemma}
\label{intervalclosedrel_convex}
Assume $R$ is transitive.
Suppose $a,b\in X$.
Then $\intervalclosedrel{R}{X}{a}{b}$ is convex in $X$ with respect to $R$.
\end{lemma}
Proof
Follows by Definition 1, Definition 37 [Transitivity], Definition 132, Definition 148.
LaTeX source
\begin{proof}
Follows by \cref{intervalclosed_rel,transitive,subseteq,convex_in}.
\end{proof}
Assume $R$ is transitive.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\openrayright{R}{X}{a}$ is convex in $X$ with respect to $R$.
LaTeX source
\begin{lemma}
\label{openrayright_convex}
Assume $R$ is transitive.
Suppose $a\in X$.
Then $\openrayright{R}{X}{a}$ is convex in $X$ with respect to $R$.
\end{lemma}
Proof
Follows by Definition 1, Definition 37 [Transitivity], Definition 135, Definition 148.
LaTeX source
\begin{proof}
Follows by \cref{openray_right,transitive,subseteq,convex_in}.
\end{proof}
Assume $R$ is transitive.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\openrayleft{R}{X}{a}$ is convex in $X$ with respect to $R$.
LaTeX source
\begin{lemma}
\label{openrayleft_convex}
Assume $R$ is transitive.
Suppose $a\in X$.
Then $\openrayleft{R}{X}{a}$ is convex in $X$ with respect to $R$.
\end{lemma}
Proof
Follows by Definition 1, Definition 37 [Transitivity], Definition 136, Definition 148.
LaTeX source
\begin{proof}
Follows by \cref{openray_left,transitive,subseteq,convex_in}.
\end{proof}
Assume $R$ is transitive.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\closedrayright{R}{X}{a}$ is convex in $X$ with respect to $R$.
LaTeX source
\begin{lemma}
\label{closedrayright_convex}
Assume $R$ is transitive.
Suppose $a\in X$.
Then $\closedrayright{R}{X}{a}$ is convex in $X$ with respect to $R$.
\end{lemma}
Proof
Follows by Definition 1, Definition 37 [Transitivity], Definition 137, Definition 148.
LaTeX source
\begin{proof}
Follows by \cref{closedray_right,transitive,subseteq,convex_in}.
\end{proof}
Assume $R$ is transitive.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\closedrayleft{R}{X}{a}$ is convex in $X$ with respect to $R$.
LaTeX source
\begin{lemma}
\label{closedrayleft_convex}
Assume $R$ is transitive.
Suppose $a\in X$.
Then $\closedrayleft{R}{X}{a}$ is convex in $X$ with respect to $R$.
\end{lemma}
Proof
Follows by Definition 1, Definition 37 [Transitivity], Definition 138, Definition 148.
LaTeX source
\begin{proof}
Follows by \cref{closedray_left,transitive,subseteq,convex_in}.
\end{proof}
Assume $T$ is the order topology on $L$ with respect to $R$.
Assume $L$ is a linear continuum with respect to $R$.
Suppose $Y$ is convex in $L$ with respect to $R$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Suppose $Y$ is separated by $A$ and $B$ with respect to $T_Y$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $a\mathrel{R}b$.
Contradiction.
LaTeX source
\begin{lemma}
\label{convex_separation_contradiction}
Assume $T$ is the order topology on $L$ with respect to $R$.
Assume $L$ is a linear continuum with respect to $R$.
Suppose $Y$ is convex in $L$ with respect to $R$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Suppose $Y$ is separated by $A$ and $B$ with respect to $T_Y$.
Suppose $a\in A$ and $b\in B$ and $a\mathrel{R}b$.
Contradiction.
\end{lemma}
Proof
$R$ is a simple order relation on $L$ by Definition 231.
$R$ is transitive and $R$ is asymmetric and $R$ is connex on $L$ by Definition 98.
$L$ has more than one element and $L$ has the least upper bound property with respect to $R$ by Definition 231.
$Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} L$ by Definition 148.
$T = \basisTopology{\orderBasis{R}{L}}{L}$ and $\orderBasis{R}{L}$ is a basis on $L$ by Definition 134, Lemma 113.
$T$ is a topology on $L$ by Lemma 76.
$T_Y$ is a topology on $Y$ by Definition 147, Definition 148, Lemma 131.
$A$ is open in $Y$ with respect to $T_Y$ and $B$ is open in $Y$ with respect to $T_Y$ by Definition 226.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ by Definition 1, Definition 101, Definition 103, Definition 147, Definition 148, Definition 226, Lemma 131, Proposition 156.
Let $I = \intervalclosedrel{R}{L}{a}{b}$.
$I\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ by Definition 1, Definition 132, Definition 148.
$I\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} L$ by Definition 148, Proposition 6.
Let $A_0 = A\inter I$.
Let $B_0 = B\inter I$.
Let $T_I = \subspaceTopology{T}{I}$.
Claim: There exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $A = Y\inter U$.
Follows by Definition 103, Definition 146.
$A_0$ is open in $I$ with respect to $T_I$ by Definition 1, Definition 103, Definition 146, Definition 147, Lemma 131, Proposition 65 [Commutativity of intersection], Proposition 66 [Associativity of intersection], Proposition 69.
Claim: There exists $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $B = Y\inter V$.
Follows by Definition 103, Definition 146.
$B_0$ is open in $I$ with respect to $T_I$ by Definition 1, Definition 103, Definition 146, Definition 147, Lemma 131, Proposition 65 [Commutativity of intersection], Proposition 66 [Associativity of intersection], Proposition 69.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ by Definition 132.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ by Proposition 61.
$A_0\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ and $B_0\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2.
$A_0$ is disjoint from $B_0$ by Definition 3, Definition 5, Definition 226.
$A_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} I$ and $B_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} I$ by Definition 1, Proposition 63.
$I\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_0\union B_0$ by Axiom 5, Definition 1, Definition 226, Proposition 38, Proposition 39, Proposition 61.
$A_0\union B_0 = I$ by Definition 1, Proposition 3, Proposition 44.
$I$ is separated by $A_0$ and $B_0$ with respect to $T_I$ by Definition 226.
$A_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} L$ by Definition 1, Proposition 6, Proposition 63.
$A_0$ is inhabited by Proposition 10.
$b$ is an upper bound of $A_0$ in $L$ with respect to $R$ by Definition 132, Definition 228, Proposition 63.
Take $c$ such that $c$ is a least upper bound of $A_0$ in $L$ with respect to $R$ by Definition 228, Definition 230, Definition 231.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ by Definition 132, Definition 228, Definition 229.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ or $c\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ by Axiom 5.
Suppose not.
$c\class{latex-symbol-tip latex-symbol-id-notin}{\notin} A_0$ by Definition 3.
$c\class{latex-symbol-tip latex-symbol-id-neq}{\neq} a$.
$a\mathrel{R}c$ by Definition 132.
Take $U_0\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $B_0 = I\inter U_0$ by Definition 103, Definition 146.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in} U_0$ by Proposition 63.
Take $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\orderBasis{R}{L}$ such that $c\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ and $B_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U_0$ by Definition 114.
$B_1\inter I \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_0$ by Definition 1, Proposition 72.
Claim: There exists $d\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ such that $d\mathrel{R}c$ and $\intervalopenclosedrel{R}{I}{d}{c} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_0$.
$B_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{L}$ and $((\class{latex-symbol-tip latex-symbol-id-exists}{\exists} u, v\class{latex-symbol-tip latex-symbol-id-in}{\in} L. u\mathrel{R}v \class{latex-symbol-tip latex-symbol-id-land}{\land} B_1 = \intervalopenrel{R}{L}{u}{v}) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (\class{latex-symbol-tip latex-symbol-id-exists}{\exists} v\class{latex-symbol-tip latex-symbol-id-in}{\in} L. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} u_0\class{latex-symbol-tip latex-symbol-id-in}{\in} L. (\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} L. u_0\mathrel{R}x \class{latex-symbol-tip latex-symbol-id-lor}{\lor} u_0 = x) \class{latex-symbol-tip latex-symbol-id-land}{\land} B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (\class{latex-symbol-tip latex-symbol-id-exists}{\exists} u\class{latex-symbol-tip latex-symbol-id-in}{\in} L. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} v_0\class{latex-symbol-tip latex-symbol-id-in}{\in} L. (\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} L. x\mathrel{R}v_0 \class{latex-symbol-tip latex-symbol-id-lor}{\lor} x = v_0) \class{latex-symbol-tip latex-symbol-id-land}{\land} B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}))$ by Definition 133.
Take $u, v\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ such that $u\mathrel{R}v$ and $B_1 = \intervalopenrel{R}{L}{u}{v}$.
$u\mathrel{R}c$ and $c\mathrel{R}v$ by Definition 129.
Take $d\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ such that $(d = u \class{latex-symbol-tip latex-symbol-id-lor}{\lor} d = a) \class{latex-symbol-tip latex-symbol-id-land}{\land} (u\mathrel{R}d \class{latex-symbol-tip latex-symbol-id-lor}{\lor} u = d) \class{latex-symbol-tip latex-symbol-id-land}{\land} (a\mathrel{R}d \class{latex-symbol-tip latex-symbol-id-lor}{\lor} a = d)$ by Lemma 109.
$d\mathrel{R}c$ by Definition 37 [Transitivity], Definition 129, Lemma 109.
$d\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ by Definition 37 [Transitivity], Definition 132, Lemma 109.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \intervalopenclosedrel{R}{I}{d}{c}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ by Definition 1, Definition 37 [Transitivity], Definition 129, Definition 130, Lemma 109, Proposition 61.
$\intervalopenclosedrel{R}{I}{d}{c} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_0$ by Definition 1.
There exists $d_0\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ such that $d_0\mathrel{R}c$ and $\intervalopenclosedrel{R}{I}{d_0}{c} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_0$.
Take $u_0, v\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ such that $(\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} L. u_0\mathrel{R}x \class{latex-symbol-tip latex-symbol-id-lor}{\lor} u_0 = x)$ and $B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.
$c\mathrel{R}v$ by Definition 131.
Let $d = a$.
$d\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ by Definition 132.
$d\mathrel{R}c$ by Definition 132.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \intervalopenclosedrel{R}{I}{d}{c}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ by Definition 1, Definition 37 [Transitivity], Definition 130, Definition 131, Proposition 61.
$\intervalopenclosedrel{R}{I}{d}{c} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_0$ by Definition 1.
There exists $d_0\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ such that $d_0\mathrel{R}c$ and $\intervalopenclosedrel{R}{I}{d_0}{c} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_0$.
Take $u, v_0\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ such that $(\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} L. x\mathrel{R}v_0 \class{latex-symbol-tip latex-symbol-id-lor}{\lor} x = v_0)$ and $B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.
$u\mathrel{R}c$ by Definition 130.
Take $d\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ such that $(d = u \class{latex-symbol-tip latex-symbol-id-lor}{\lor} d = a) \class{latex-symbol-tip latex-symbol-id-land}{\land} (u\mathrel{R}d \class{latex-symbol-tip latex-symbol-id-lor}{\lor} u = d) \class{latex-symbol-tip latex-symbol-id-land}{\land} (a\mathrel{R}d \class{latex-symbol-tip latex-symbol-id-lor}{\lor} a = d)$ by Lemma 109.
$a\mathrel{R}d$ or $d = a$.
$d\mathrel{R}c$ by Definition 130.
$c\mathrel{R}b$ or $c = b$ by Definition 132.
$d\mathrel{R}b$ or $d = b$ by \hyperref[transitive]{transitivity}.
$d\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ by Definition 132.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \intervalopenclosedrel{R}{I}{d}{c}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ by Definition 1, Definition 37 [Transitivity], Definition 130, Lemma 109, Proposition 61.
$\intervalopenclosedrel{R}{I}{d}{c} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_0$ by Definition 1.
There exists $d_0\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ such that $d_0\mathrel{R}c$ and $\intervalopenclosedrel{R}{I}{d_0}{c} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_0$.
LaTeX source
\begin{byCase}
\caseOf{$\exists u, v\in L. u\mathrel{R}v \land B_1 = \intervalopenrel{R}{L}{u}{v}$.}
Take $u, v\in L$ such that $u\mathrel{R}v$ and $B_1 = \intervalopenrel{R}{L}{u}{v}$.
$u\mathrel{R}c$ and $c\mathrel{R}v$ by \cref{intervalopen_rel}.
Take $d\in L$ such that
$(d = u \lor d = a) \land (u\mathrel{R}d \lor u = d) \land (a\mathrel{R}d \lor a = d)$
by \cref{max_of_two_elements}.
$d\mathrel{R}c$ by \cref{max_of_two_elements,intervalopen_rel,transitive}.
$d\in I$ by \cref{max_of_two_elements,intervalclosed_rel,transitive}.
For all $x$ such that $x\in \intervalopenclosedrel{R}{I}{d}{c}$ we have $x\in B_0$
by \cref{intervalopenclosed_rel,max_of_two_elements,transitive,intervalopen_rel,inter_intro,subseteq}.
$\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$ by \cref{subseteq}.
There exists $d_0\in I$ such that $d_0\mathrel{R}c$ and
$\intervalopenclosedrel{R}{I}{d_0}{c} \subseteq B_0$.
\caseOf{$\exists v\in L. \exists u_0\in L. (\forall x\in L. u_0\mathrel{R}x \lor u_0 = x) \land B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.}
Take $u_0, v\in L$ such that
$(\forall x\in L. u_0\mathrel{R}x \lor u_0 = x)$ and $B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.
$c\mathrel{R}v$ by \cref{intervalclosedopen_rel}.
Let $d = a$.
$d\in I$ by \cref{intervalclosed_rel}.
$d\mathrel{R}c$ by \cref{intervalclosed_rel}.
For all $x$ such that $x\in \intervalopenclosedrel{R}{I}{d}{c}$ we have $x\in B_0$
by \cref{intervalopenclosed_rel,subseteq,transitive,intervalclosedopen_rel,inter_intro}.
$\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$ by \cref{subseteq}.
There exists $d_0\in I$ such that $d_0\mathrel{R}c$ and
$\intervalopenclosedrel{R}{I}{d_0}{c} \subseteq B_0$.
\caseOf{$\exists u\in L. \exists v_0\in L. (\forall x\in L. x\mathrel{R}v_0 \lor x = v_0) \land B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.}
Take $u, v_0\in L$ such that
$(\forall x\in L. x\mathrel{R}v_0 \lor x = v_0)$ and $B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.
$u\mathrel{R}c$ by \cref{intervalopenclosed_rel}.
Take $d\in L$ such that
$(d = u \lor d = a) \land (u\mathrel{R}d \lor u = d) \land (a\mathrel{R}d \lor a = d)$
by \cref{max_of_two_elements}.
$a\mathrel{R}d$ or $d = a$.
$d\mathrel{R}c$ by \cref{intervalopenclosed_rel}.
$c\mathrel{R}b$ or $c = b$ by \cref{intervalclosed_rel}.
$d\mathrel{R}b$ or $d = b$ by \hyperref[transitive]{transitivity}.
$d\in I$ by \cref{intervalclosed_rel}.
For all $x$ such that $x\in \intervalopenclosedrel{R}{I}{d}{c}$ we have $x\in B_0$
by \cref{intervalopenclosed_rel,max_of_two_elements,transitive,inter_intro,subseteq}.
$\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$ by \cref{subseteq}.
There exists $d_0\in I$ such that $d_0\mathrel{R}c$ and
$\intervalopenclosedrel{R}{I}{d_0}{c} \subseteq B_0$.
\end{byCase}
Take $d\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ such that $d\mathrel{R}c$ and $\intervalopenclosedrel{R}{I}{d}{c} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_0$.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ we have $x\mathrel{R}d$ or $x = d$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$.
$x\mathrel{R}c$ or $x = c$ by Definition 228, Definition 229.
Claim: It is wrong that $d\mathrel{R}x$.
Suppose not.
$d\mathrel{R}x$.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$.
Contradiction by Definition 3.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ by Definition 1, Definition 130.
Contradiction by Definition 3.
LaTeX source
\begin{byCase}
\caseOf{$x = c$.}
$c\in A_0$.
Contradiction by \cref{disjoint}.
\caseOf{$x\mathrel{R}c$.}
$x\in B_0$ by \cref{intervalopenclosed_rel,subseteq}.
Contradiction by \cref{disjoint}.
\end{byCase}
$x\mathrel{R}d$ or $x = d$.
$x\mathrel{R}d$ or $d\mathrel{R}x$ by Definition 1, Definition 40.
$x\mathrel{R}d$.
$x\mathrel{R}d$ or $x = d$.
LaTeX source
\begin{byCase}
\caseOf{$x = d$.}
$x\mathrel{R}d$ or $x = d$.
\caseOf{$x \neq d$.}
$x\mathrel{R}d$ or $d\mathrel{R}x$ by \cref{subseteq,connex}.
$x\mathrel{R}d$.
$x\mathrel{R}d$ or $x = d$.
\end{byCase}
$d$ is an upper bound of $A_0$ in $L$ with respect to $R$ by Definition 132, Definition 228.
$c\mathrel{R}d$ or $c = d$ by Definition 229.
Contradiction by Definition 36.
Suppose not.
$c\class{latex-symbol-tip latex-symbol-id-notin}{\notin} B_0$ by Definition 3.
$c\class{latex-symbol-tip latex-symbol-id-neq}{\neq} b$.
Take $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $A_0 = I\inter U_1$ by Definition 103, Definition 146.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1$ by Proposition 63.
Take $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\orderBasis{R}{L}$ such that $c\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ and $B_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U_1$ by Definition 114.
$B_1\inter I \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_0$ by Definition 1, Proposition 72.
Claim: There exists $e\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ such that $c\mathrel{R}e$ and $\intervalclosedopenrel{R}{I}{c}{e} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_0$.
$B_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{L}$ and $((\class{latex-symbol-tip latex-symbol-id-exists}{\exists} u, v\class{latex-symbol-tip latex-symbol-id-in}{\in} L. u\mathrel{R}v \class{latex-symbol-tip latex-symbol-id-land}{\land} B_1 = \intervalopenrel{R}{L}{u}{v}) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (\class{latex-symbol-tip latex-symbol-id-exists}{\exists} v\class{latex-symbol-tip latex-symbol-id-in}{\in} L. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} u_0\class{latex-symbol-tip latex-symbol-id-in}{\in} L. (\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} L. u_0\mathrel{R}x \class{latex-symbol-tip latex-symbol-id-lor}{\lor} u_0 = x) \class{latex-symbol-tip latex-symbol-id-land}{\land} B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (\class{latex-symbol-tip latex-symbol-id-exists}{\exists} u\class{latex-symbol-tip latex-symbol-id-in}{\in} L. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} v_0\class{latex-symbol-tip latex-symbol-id-in}{\in} L. (\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} L. x\mathrel{R}v_0 \class{latex-symbol-tip latex-symbol-id-lor}{\lor} x = v_0) \class{latex-symbol-tip latex-symbol-id-land}{\land} B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}))$ by Definition 133.
Take $u, v\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ such that $u\mathrel{R}v$ and $B_1 = \intervalopenrel{R}{L}{u}{v}$.
$u\mathrel{R}c$ and $c\mathrel{R}v$ by Definition 129.
Take $e\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ such that $(e = v \class{latex-symbol-tip latex-symbol-id-lor}{\lor} e = b) \class{latex-symbol-tip latex-symbol-id-land}{\land} (e\mathrel{R}v \class{latex-symbol-tip latex-symbol-id-lor}{\lor} e = v) \class{latex-symbol-tip latex-symbol-id-land}{\land} (e\mathrel{R}b \class{latex-symbol-tip latex-symbol-id-lor}{\lor} e = b)$ by Lemma 110.
$c\mathrel{R}e$ by Definition 37 [Transitivity], Definition 132, Lemma 110.
$e\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ by Definition 37 [Transitivity], Definition 132, Lemma 110.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \intervalclosedopenrel{R}{I}{c}{e}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ by Definition 1, Definition 37 [Transitivity], Definition 129, Definition 131, Proposition 61.
$\intervalclosedopenrel{R}{I}{c}{e} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_0$ by Definition 1.
There exists $e_0\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ such that $c\mathrel{R}e_0$ and $\intervalclosedopenrel{R}{I}{c}{e_0} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_0$.
Take $u_0, v\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ such that $(\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} L. u_0\mathrel{R}x \class{latex-symbol-tip latex-symbol-id-lor}{\lor} u_0 = x)$ and $B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.
$c\mathrel{R}v$ by Definition 131.
Take $e\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ such that $(e = v \class{latex-symbol-tip latex-symbol-id-lor}{\lor} e = b) \class{latex-symbol-tip latex-symbol-id-land}{\land} (e\mathrel{R}v \class{latex-symbol-tip latex-symbol-id-lor}{\lor} e = v) \class{latex-symbol-tip latex-symbol-id-land}{\land} (e\mathrel{R}b \class{latex-symbol-tip latex-symbol-id-lor}{\lor} e = b)$ by Lemma 110.
$e\mathrel{R}b$ or $e = b$.
$c\mathrel{R}b$ by Definition 132.
$c\mathrel{R}e$.
$a\mathrel{R}c$ or $a = c$ by Definition 132.
$a\mathrel{R}e$ or $e = a$ by \hyperref[transitive]{transitivity}.
$e\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ by Definition 132.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \intervalclosedopenrel{R}{I}{c}{e}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ by Definition 1, Definition 37 [Transitivity], Definition 131, Proposition 61.
$\intervalclosedopenrel{R}{I}{c}{e} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_0$ by Definition 1.
There exists $e_0\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ such that $c\mathrel{R}e_0$ and $\intervalclosedopenrel{R}{I}{c}{e_0} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_0$.
Take $u, v_0\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ such that $(\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} L. x\mathrel{R}v_0 \class{latex-symbol-tip latex-symbol-id-lor}{\lor} x = v_0)$ and $B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.
$u\mathrel{R}c$ by Definition 130.
Take $e\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ such that $(e = v_0 \class{latex-symbol-tip latex-symbol-id-lor}{\lor} e = b) \class{latex-symbol-tip latex-symbol-id-land}{\land} (e\mathrel{R}v_0 \class{latex-symbol-tip latex-symbol-id-lor}{\lor} e = v_0) \class{latex-symbol-tip latex-symbol-id-land}{\land} (e\mathrel{R}b \class{latex-symbol-tip latex-symbol-id-lor}{\lor} e = b)$ by Lemma 110.
Claim: $c\mathrel{R}e$.
$c\mathrel{R}b$ or $c = b$ by Definition 132.
$c \class{latex-symbol-tip latex-symbol-id-neq}{\neq} b$ by Definition 3.
$c\mathrel{R}e$.
$c\mathrel{R}v_0$ or $c = v_0$.
Claim: $c\mathrel{R}v_0$.
Suppose not.
$c = v_0$.
$b\mathrel{R}v_0$ or $b = v_0$.
Contradiction by Definition 3.
$c\mathrel{R}b$ or $c = b$ by Definition 132.
Contradiction by Definition 3.
$b\mathrel{R}c$.
Contradiction by Definition 36.
LaTeX source
\begin{byCase}
\caseOf{$c = b$.} Contradiction by \cref{disjoint}.
\caseOf{$c\mathrel{R}b$.}
$b\mathrel{R}c$.
Contradiction by \cref{asymmetric}.
\end{byCase}
LaTeX source
\begin{byCase}
\caseOf{$b = v_0$.} Contradiction by \cref{disjoint}.
\caseOf{$b\mathrel{R}v_0$.}
$c\mathrel{R}b$ or $c = b$ by \cref{intervalclosed_rel}.
\begin{byCase}
\caseOf{$c = b$.} Contradiction by \cref{disjoint}.
\caseOf{$c\mathrel{R}b$.}
$b\mathrel{R}c$.
Contradiction by \cref{asymmetric}.
\end{byCase}
\end{byCase}
$c\mathrel{R}e$.
LaTeX source
\begin{byCase}
\caseOf{$e = b$.}
$c\mathrel{R}b$ or $c = b$ by \cref{intervalclosed_rel}.
$c \neq b$ by \cref{disjoint}.
$c\mathrel{R}e$.
\caseOf{$e = v_0$.}
$c\mathrel{R}v_0$ or $c = v_0$.
Show that $c\mathrel{R}v_0$.
\begin{subproof}
Suppose not.
$c = v_0$.
$b\mathrel{R}v_0$ or $b = v_0$.
\begin{byCase}
\caseOf{$b = v_0$.} Contradiction by \cref{disjoint}.
\caseOf{$b\mathrel{R}v_0$.}
$c\mathrel{R}b$ or $c = b$ by \cref{intervalclosed_rel}.
\begin{byCase}
\caseOf{$c = b$.} Contradiction by \cref{disjoint}.
\caseOf{$c\mathrel{R}b$.}
$b\mathrel{R}c$.
Contradiction by \cref{asymmetric}.
\end{byCase}
\end{byCase}
\end{subproof}
$c\mathrel{R}e$.
\end{byCase}
$a\mathrel{R}c$ or $a = c$ by Definition 132.
$a\mathrel{R}e$ or $e = a$ by \hyperref[transitive]{transitivity}.
$e\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ by Definition 132.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \intervalclosedopenrel{R}{I}{c}{e}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ by Definition 1, Definition 37 [Transitivity], Definition 130, Definition 131, Proposition 61.
$\intervalclosedopenrel{R}{I}{c}{e} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_0$ by Definition 1.
There exists $e_0\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ such that $c\mathrel{R}e_0$ and $\intervalclosedopenrel{R}{I}{c}{e_0} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_0$.
LaTeX source
\begin{byCase}
\caseOf{$\exists u, v\in L. u\mathrel{R}v \land B_1 = \intervalopenrel{R}{L}{u}{v}$.}
Take $u, v\in L$ such that $u\mathrel{R}v$ and $B_1 = \intervalopenrel{R}{L}{u}{v}$.
$u\mathrel{R}c$ and $c\mathrel{R}v$ by \cref{intervalopen_rel}.
Take $e\in L$ such that
$(e = v \lor e = b) \land (e\mathrel{R}v \lor e = v) \land (e\mathrel{R}b \lor e = b)$
by \cref{min_of_two_elements}.
$c\mathrel{R}e$ by \cref{min_of_two_elements,intervalclosed_rel,transitive}.
$e\in I$ by \cref{min_of_two_elements,intervalclosed_rel,transitive}.
For all $x$ such that $x\in \intervalclosedopenrel{R}{I}{c}{e}$ we have $x\in A_0$
by \cref{intervalclosedopen_rel,transitive,intervalopen_rel,inter_intro,subseteq}.
$\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$ by \cref{subseteq}.
There exists $e_0\in I$ such that $c\mathrel{R}e_0$ and
$\intervalclosedopenrel{R}{I}{c}{e_0} \subseteq A_0$.
\caseOf{$\exists v\in L. \exists u_0\in L. (\forall x\in L. u_0\mathrel{R}x \lor u_0 = x) \land B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.}
Take $u_0, v\in L$ such that
$(\forall x\in L. u_0\mathrel{R}x \lor u_0 = x)$ and $B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.
$c\mathrel{R}v$ by \cref{intervalclosedopen_rel}.
Take $e\in L$ such that
$(e = v \lor e = b) \land (e\mathrel{R}v \lor e = v) \land (e\mathrel{R}b \lor e = b)$
by \cref{min_of_two_elements}.
$e\mathrel{R}b$ or $e = b$.
$c\mathrel{R}b$ by \cref{intervalclosed_rel}.
$c\mathrel{R}e$.
$a\mathrel{R}c$ or $a = c$ by \cref{intervalclosed_rel}.
$a\mathrel{R}e$ or $e = a$ by \hyperref[transitive]{transitivity}.
$e\in I$ by \cref{intervalclosed_rel}.
For all $x$ such that $x\in \intervalclosedopenrel{R}{I}{c}{e}$ we have $x\in A_0$
by \cref{intervalclosedopen_rel,transitive,inter_intro,subseteq}.
$\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$ by \cref{subseteq}.
There exists $e_0\in I$ such that $c\mathrel{R}e_0$ and
$\intervalclosedopenrel{R}{I}{c}{e_0} \subseteq A_0$.
\caseOf{$\exists u\in L. \exists v_0\in L. (\forall x\in L. x\mathrel{R}v_0 \lor x = v_0) \land B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.}
Take $u, v_0\in L$ such that
$(\forall x\in L. x\mathrel{R}v_0 \lor x = v_0)$ and $B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.
$u\mathrel{R}c$ by \cref{intervalopenclosed_rel}.
Take $e\in L$ such that
$(e = v_0 \lor e = b) \land (e\mathrel{R}v_0 \lor e = v_0) \land (e\mathrel{R}b \lor e = b)$
by \cref{min_of_two_elements}.
Show that $c\mathrel{R}e$.
\begin{subproof}
\begin{byCase}
\caseOf{$e = b$.}
$c\mathrel{R}b$ or $c = b$ by \cref{intervalclosed_rel}.
$c \neq b$ by \cref{disjoint}.
$c\mathrel{R}e$.
\caseOf{$e = v_0$.}
$c\mathrel{R}v_0$ or $c = v_0$.
Show that $c\mathrel{R}v_0$.
\begin{subproof}
Suppose not.
$c = v_0$.
$b\mathrel{R}v_0$ or $b = v_0$.
\begin{byCase}
\caseOf{$b = v_0$.} Contradiction by \cref{disjoint}.
\caseOf{$b\mathrel{R}v_0$.}
$c\mathrel{R}b$ or $c = b$ by \cref{intervalclosed_rel}.
\begin{byCase}
\caseOf{$c = b$.} Contradiction by \cref{disjoint}.
\caseOf{$c\mathrel{R}b$.}
$b\mathrel{R}c$.
Contradiction by \cref{asymmetric}.
\end{byCase}
\end{byCase}
\end{subproof}
$c\mathrel{R}e$.
\end{byCase}
\end{subproof}
$a\mathrel{R}c$ or $a = c$ by \cref{intervalclosed_rel}.
$a\mathrel{R}e$ or $e = a$ by \hyperref[transitive]{transitivity}.
$e\in I$ by \cref{intervalclosed_rel}.
For all $x$ such that $x\in \intervalclosedopenrel{R}{I}{c}{e}$ we have $x\in A_0$
by \cref{intervalclosedopen_rel,transitive,intervalopenclosed_rel,inter_intro,subseteq}.
$\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$ by \cref{subseteq}.
There exists $e_0\in I$ such that $c\mathrel{R}e_0$ and
$\intervalclosedopenrel{R}{I}{c}{e_0} \subseteq A_0$.
\end{byCase}
Take $e\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ such that $c\mathrel{R}e$ and $\intervalclosedopenrel{R}{I}{c}{e} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_0$.
Take $z\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ such that $c\mathrel{R}z$ and $z\mathrel{R}e$ by Definition 1, Definition 231.
$a\mathrel{R}c$ or $a = c$ by Definition 132.
$a\mathrel{R}z$ or $z = a$ by \hyperref[transitive]{transitivity}.
$e\mathrel{R}b$ or $e = b$ by Definition 132.
$z\mathrel{R}b$ or $z = b$ by \hyperref[transitive]{transitivity}.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ by Definition 132.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ by Definition 1, Definition 131.
$z\mathrel{R}c$ or $z = c$ by Definition 228, Definition 229.
Contradiction by Definition 36.
LaTeX source
\begin{byCase}
\caseOf{$c\in B_0$.}
Suppose not.
$c\notin A_0$ by \cref{disjoint}.
$c\neq a$.
$a\mathrel{R}c$ by \cref{intervalclosed_rel}.
Take $U_0\in T$ such that $B_0 = I\inter U_0$ by \cref{subspace_topology,open_in}.
$c\in U_0$ by \cref{inter_elim_right}.
Take $B_1\in\orderBasis{R}{L}$ such that $c\in B_1$ and $B_1\subseteq U_0$
by \cref{topology_generated_by_basis}.
$B_1\inter I \subseteq B_0$ by \cref{subseteq_inter_iff,subseteq}.
Show that there exists $d\in I$ such that $d\mathrel{R}c$ and
$\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$.
\begin{subproof}
$B_1\in\pow{L}$ and
$((\exists u, v\in L. u\mathrel{R}v \land B_1 = \intervalopenrel{R}{L}{u}{v}) \lor
(\exists v\in L. \exists u_0\in L. (\forall x\in L. u_0\mathrel{R}x \lor u_0 = x) \land B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}) \lor
(\exists u\in L. \exists v_0\in L. (\forall x\in L. x\mathrel{R}v_0 \lor x = v_0) \land B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}))$
by \cref{order_basis}.
\begin{byCase}
\caseOf{$\exists u, v\in L. u\mathrel{R}v \land B_1 = \intervalopenrel{R}{L}{u}{v}$.}
Take $u, v\in L$ such that $u\mathrel{R}v$ and $B_1 = \intervalopenrel{R}{L}{u}{v}$.
$u\mathrel{R}c$ and $c\mathrel{R}v$ by \cref{intervalopen_rel}.
Take $d\in L$ such that
$(d = u \lor d = a) \land (u\mathrel{R}d \lor u = d) \land (a\mathrel{R}d \lor a = d)$
by \cref{max_of_two_elements}.
$d\mathrel{R}c$ by \cref{max_of_two_elements,intervalopen_rel,transitive}.
$d\in I$ by \cref{max_of_two_elements,intervalclosed_rel,transitive}.
For all $x$ such that $x\in \intervalopenclosedrel{R}{I}{d}{c}$ we have $x\in B_0$
by \cref{intervalopenclosed_rel,max_of_two_elements,transitive,intervalopen_rel,inter_intro,subseteq}.
$\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$ by \cref{subseteq}.
There exists $d_0\in I$ such that $d_0\mathrel{R}c$ and
$\intervalopenclosedrel{R}{I}{d_0}{c} \subseteq B_0$.
\caseOf{$\exists v\in L. \exists u_0\in L. (\forall x\in L. u_0\mathrel{R}x \lor u_0 = x) \land B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.}
Take $u_0, v\in L$ such that
$(\forall x\in L. u_0\mathrel{R}x \lor u_0 = x)$ and $B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.
$c\mathrel{R}v$ by \cref{intervalclosedopen_rel}.
Let $d = a$.
$d\in I$ by \cref{intervalclosed_rel}.
$d\mathrel{R}c$ by \cref{intervalclosed_rel}.
For all $x$ such that $x\in \intervalopenclosedrel{R}{I}{d}{c}$ we have $x\in B_0$
by \cref{intervalopenclosed_rel,subseteq,transitive,intervalclosedopen_rel,inter_intro}.
$\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$ by \cref{subseteq}.
There exists $d_0\in I$ such that $d_0\mathrel{R}c$ and
$\intervalopenclosedrel{R}{I}{d_0}{c} \subseteq B_0$.
\caseOf{$\exists u\in L. \exists v_0\in L. (\forall x\in L. x\mathrel{R}v_0 \lor x = v_0) \land B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.}
Take $u, v_0\in L$ such that
$(\forall x\in L. x\mathrel{R}v_0 \lor x = v_0)$ and $B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.
$u\mathrel{R}c$ by \cref{intervalopenclosed_rel}.
Take $d\in L$ such that
$(d = u \lor d = a) \land (u\mathrel{R}d \lor u = d) \land (a\mathrel{R}d \lor a = d)$
by \cref{max_of_two_elements}.
$a\mathrel{R}d$ or $d = a$.
$d\mathrel{R}c$ by \cref{intervalopenclosed_rel}.
$c\mathrel{R}b$ or $c = b$ by \cref{intervalclosed_rel}.
$d\mathrel{R}b$ or $d = b$ by \hyperref[transitive]{transitivity}.
$d\in I$ by \cref{intervalclosed_rel}.
For all $x$ such that $x\in \intervalopenclosedrel{R}{I}{d}{c}$ we have $x\in B_0$
by \cref{intervalopenclosed_rel,max_of_two_elements,transitive,inter_intro,subseteq}.
$\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$ by \cref{subseteq}.
There exists $d_0\in I$ such that $d_0\mathrel{R}c$ and
$\intervalopenclosedrel{R}{I}{d_0}{c} \subseteq B_0$.
\end{byCase}
\end{subproof}
Take $d\in I$ such that $d\mathrel{R}c$ and $\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$.
Show that for all $x\in A_0$ we have $x\mathrel{R}d$ or $x = d$.
\begin{subproof}
Fix $x$ such that $x\in A_0$.
$x\mathrel{R}c$ or $x = c$ by \cref{least_upper_bound_rel,upper_bound_rel}.
Show that it is wrong that $d\mathrel{R}x$.
\begin{subproof}
Suppose not.
$d\mathrel{R}x$.
\begin{byCase}
\caseOf{$x = c$.}
$c\in A_0$.
Contradiction by \cref{disjoint}.
\caseOf{$x\mathrel{R}c$.}
$x\in B_0$ by \cref{intervalopenclosed_rel,subseteq}.
Contradiction by \cref{disjoint}.
\end{byCase}
\end{subproof}
\begin{byCase}
\caseOf{$x = d$.}
$x\mathrel{R}d$ or $x = d$.
\caseOf{$x \neq d$.}
$x\mathrel{R}d$ or $d\mathrel{R}x$ by \cref{subseteq,connex}.
$x\mathrel{R}d$.
$x\mathrel{R}d$ or $x = d$.
\end{byCase}
\end{subproof}
$d$ is an upper bound of $A_0$ in $L$ with respect to $R$ by \cref{intervalclosed_rel,upper_bound_rel}.
$c\mathrel{R}d$ or $c = d$ by \cref{least_upper_bound_rel}.
Contradiction by \cref{asymmetric}.
\caseOf{$c\in A_0$.}
Suppose not.
$c\notin B_0$ by \cref{disjoint}.
$c\neq b$.
Take $U_1\in T$ such that $A_0 = I\inter U_1$ by \cref{subspace_topology,open_in}.
$c\in U_1$ by \cref{inter_elim_right}.
Take $B_1\in\orderBasis{R}{L}$ such that $c\in B_1$ and $B_1\subseteq U_1$
by \cref{topology_generated_by_basis}.
$B_1\inter I \subseteq A_0$ by \cref{subseteq_inter_iff,subseteq}.
Show that there exists $e\in I$ such that $c\mathrel{R}e$ and
$\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$.
\begin{subproof}
$B_1\in\pow{L}$ and
$((\exists u, v\in L. u\mathrel{R}v \land B_1 = \intervalopenrel{R}{L}{u}{v}) \lor
(\exists v\in L. \exists u_0\in L. (\forall x\in L. u_0\mathrel{R}x \lor u_0 = x) \land B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}) \lor
(\exists u\in L. \exists v_0\in L. (\forall x\in L. x\mathrel{R}v_0 \lor x = v_0) \land B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}))$
by \cref{order_basis}.
\begin{byCase}
\caseOf{$\exists u, v\in L. u\mathrel{R}v \land B_1 = \intervalopenrel{R}{L}{u}{v}$.}
Take $u, v\in L$ such that $u\mathrel{R}v$ and $B_1 = \intervalopenrel{R}{L}{u}{v}$.
$u\mathrel{R}c$ and $c\mathrel{R}v$ by \cref{intervalopen_rel}.
Take $e\in L$ such that
$(e = v \lor e = b) \land (e\mathrel{R}v \lor e = v) \land (e\mathrel{R}b \lor e = b)$
by \cref{min_of_two_elements}.
$c\mathrel{R}e$ by \cref{min_of_two_elements,intervalclosed_rel,transitive}.
$e\in I$ by \cref{min_of_two_elements,intervalclosed_rel,transitive}.
For all $x$ such that $x\in \intervalclosedopenrel{R}{I}{c}{e}$ we have $x\in A_0$
by \cref{intervalclosedopen_rel,transitive,intervalopen_rel,inter_intro,subseteq}.
$\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$ by \cref{subseteq}.
There exists $e_0\in I$ such that $c\mathrel{R}e_0$ and
$\intervalclosedopenrel{R}{I}{c}{e_0} \subseteq A_0$.
\caseOf{$\exists v\in L. \exists u_0\in L. (\forall x\in L. u_0\mathrel{R}x \lor u_0 = x) \land B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.}
Take $u_0, v\in L$ such that
$(\forall x\in L. u_0\mathrel{R}x \lor u_0 = x)$ and $B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.
$c\mathrel{R}v$ by \cref{intervalclosedopen_rel}.
Take $e\in L$ such that
$(e = v \lor e = b) \land (e\mathrel{R}v \lor e = v) \land (e\mathrel{R}b \lor e = b)$
by \cref{min_of_two_elements}.
$e\mathrel{R}b$ or $e = b$.
$c\mathrel{R}b$ by \cref{intervalclosed_rel}.
$c\mathrel{R}e$.
$a\mathrel{R}c$ or $a = c$ by \cref{intervalclosed_rel}.
$a\mathrel{R}e$ or $e = a$ by \hyperref[transitive]{transitivity}.
$e\in I$ by \cref{intervalclosed_rel}.
For all $x$ such that $x\in \intervalclosedopenrel{R}{I}{c}{e}$ we have $x\in A_0$
by \cref{intervalclosedopen_rel,transitive,inter_intro,subseteq}.
$\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$ by \cref{subseteq}.
There exists $e_0\in I$ such that $c\mathrel{R}e_0$ and
$\intervalclosedopenrel{R}{I}{c}{e_0} \subseteq A_0$.
\caseOf{$\exists u\in L. \exists v_0\in L. (\forall x\in L. x\mathrel{R}v_0 \lor x = v_0) \land B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.}
Take $u, v_0\in L$ such that
$(\forall x\in L. x\mathrel{R}v_0 \lor x = v_0)$ and $B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.
$u\mathrel{R}c$ by \cref{intervalopenclosed_rel}.
Take $e\in L$ such that
$(e = v_0 \lor e = b) \land (e\mathrel{R}v_0 \lor e = v_0) \land (e\mathrel{R}b \lor e = b)$
by \cref{min_of_two_elements}.
Show that $c\mathrel{R}e$.
\begin{subproof}
\begin{byCase}
\caseOf{$e = b$.}
$c\mathrel{R}b$ or $c = b$ by \cref{intervalclosed_rel}.
$c \neq b$ by \cref{disjoint}.
$c\mathrel{R}e$.
\caseOf{$e = v_0$.}
$c\mathrel{R}v_0$ or $c = v_0$.
Show that $c\mathrel{R}v_0$.
\begin{subproof}
Suppose not.
$c = v_0$.
$b\mathrel{R}v_0$ or $b = v_0$.
\begin{byCase}
\caseOf{$b = v_0$.} Contradiction by \cref{disjoint}.
\caseOf{$b\mathrel{R}v_0$.}
$c\mathrel{R}b$ or $c = b$ by \cref{intervalclosed_rel}.
\begin{byCase}
\caseOf{$c = b$.} Contradiction by \cref{disjoint}.
\caseOf{$c\mathrel{R}b$.}
$b\mathrel{R}c$.
Contradiction by \cref{asymmetric}.
\end{byCase}
\end{byCase}
\end{subproof}
$c\mathrel{R}e$.
\end{byCase}
\end{subproof}
$a\mathrel{R}c$ or $a = c$ by \cref{intervalclosed_rel}.
$a\mathrel{R}e$ or $e = a$ by \hyperref[transitive]{transitivity}.
$e\in I$ by \cref{intervalclosed_rel}.
For all $x$ such that $x\in \intervalclosedopenrel{R}{I}{c}{e}$ we have $x\in A_0$
by \cref{intervalclosedopen_rel,transitive,intervalopenclosed_rel,inter_intro,subseteq}.
$\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$ by \cref{subseteq}.
There exists $e_0\in I$ such that $c\mathrel{R}e_0$ and
$\intervalclosedopenrel{R}{I}{c}{e_0} \subseteq A_0$.
\end{byCase}
\end{subproof}
Take $e\in I$ such that $c\mathrel{R}e$ and $\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$.
Take $z\in L$ such that $c\mathrel{R}z$ and $z\mathrel{R}e$ by \cref{subseteq,linear_continuum}.
$a\mathrel{R}c$ or $a = c$ by \cref{intervalclosed_rel}.
$a\mathrel{R}z$ or $z = a$ by \hyperref[transitive]{transitivity}.
$e\mathrel{R}b$ or $e = b$ by \cref{intervalclosed_rel}.
$z\mathrel{R}b$ or $z = b$ by \hyperref[transitive]{transitivity}.
$z\in I$ by \cref{intervalclosed_rel}.
$z\in A_0$ by \cref{intervalclosedopen_rel,subseteq}.
$z\mathrel{R}c$ or $z = c$ by \cref{least_upper_bound_rel,upper_bound_rel}.
Contradiction by \cref{asymmetric}.
\end{byCase}
LaTeX source
\begin{proof}
$R$ is a simple order relation on $L$ by \cref{linear_continuum}.
$R$ is transitive and $R$ is asymmetric and $R$ is connex on $L$ by \cref{simple_order_relation}.
$L$ has more than one element and $L$ has the least upper bound property with respect to $R$
by \cref{linear_continuum}.
$Y\subseteq L$ by \cref{convex_in}.
$T = \basisTopology{\orderBasis{R}{L}}{L}$ and $\orderBasis{R}{L}$ is a basis on $L$
by \cref{order_topology,order_basis_is_basis}.
$T$ is a topology on $L$ by \cref{basis_topology_is_topology}.
$T_Y$ is a topology on $Y$ by \cref{subspace_topology_is_topology,subspace_of,convex_in}.
$A$ is open in $Y$ with respect to $T_Y$ and $B$ is open in $Y$ with respect to $T_Y$ by \cref{separation}.
$a\in Y$ and $b\in Y$ and $a\in L$ and $b\in L$
by \cref{open_in,separation,subspace_topology_is_topology,subspace_of,convex_in,topology_on,subseteq,powerset_elim}.
Let $I = \intervalclosedrel{R}{L}{a}{b}$.
$I\subseteq Y$ by \cref{intervalclosed_rel,convex_in,subseteq}.
$I\subseteq L$ by \cref{convex_in,subseteq_transitive}.
Let $A_0 = A\inter I$.
Let $B_0 = B\inter I$.
Let $T_I = \subspaceTopology{T}{I}$.
Show that there exists $U\in T$ such that $A = Y\inter U$.
\begin{subproof}
Follows by \cref{subspace_topology,open_in}.
\end{subproof}
$A_0$ is open in $I$ with respect to $T_I$
by \cref{subspace_topology,subspace_topology_is_topology,subspace_of,open_in,inter_assoc,inter_comm,inter_absorb_supseteq_right,subseteq}.
Show that there exists $V\in T$ such that $B = Y\inter V$.
\begin{subproof}
Follows by \cref{subspace_topology,open_in}.
\end{subproof}
$B_0$ is open in $I$ with respect to $T_I$
by \cref{subspace_topology,subspace_topology_is_topology,subspace_of,open_in,inter_assoc,inter_comm,inter_absorb_supseteq_right,subseteq}.
$a\in I$ and $b\in I$ by \cref{intervalclosed_rel}.
$a\in A_0$ and $b\in B_0$ by \cref{inter_intro}.
$A_0\neq\emptyset$ and $B_0\neq\emptyset$ by \cref{emptyset}.
$A_0$ is disjoint from $B_0$ by \cref{inter,disjoint,separation}.
$A_0\subseteq I$ and $B_0\subseteq I$ by \cref{inter_elim_right,subseteq}.
$I\subseteq A_0\union B_0$
by \cref{subseteq,separation,union_iff,inter_intro,union_intro_left,union_intro_right}.
$A_0\union B_0 = I$ by \cref{union_subsets_is_subset,subseteq,subseteq_antisymmetric}.
$I$ is separated by $A_0$ and $B_0$ with respect to $T_I$ by \cref{separation}.
$A_0\subseteq L$ by \cref{inter_elim_right,subseteq,subseteq_transitive}.
$A_0$ is inhabited by \cref{nonempty_inhabited}.
$b$ is an upper bound of $A_0$ in $L$ with respect to $R$
by \cref{inter_elim_right,intervalclosed_rel,upper_bound_rel}.
Take $c$ such that $c$ is a least upper bound of $A_0$ in $L$ with respect to $R$ by
\cref{upper_bound_rel,least_upper_bound_property,linear_continuum}.
$c\in I$ by \cref{least_upper_bound_rel,upper_bound_rel,intervalclosed_rel}.
$c\in A_0$ or $c\in B_0$ by \cref{union_iff}.
\begin{byCase}
\caseOf{$c\in B_0$.}
Suppose not.
$c\notin A_0$ by \cref{disjoint}.
$c\neq a$.
$a\mathrel{R}c$ by \cref{intervalclosed_rel}.
Take $U_0\in T$ such that $B_0 = I\inter U_0$ by \cref{subspace_topology,open_in}.
$c\in U_0$ by \cref{inter_elim_right}.
Take $B_1\in\orderBasis{R}{L}$ such that $c\in B_1$ and $B_1\subseteq U_0$
by \cref{topology_generated_by_basis}.
$B_1\inter I \subseteq B_0$ by \cref{subseteq_inter_iff,subseteq}.
Show that there exists $d\in I$ such that $d\mathrel{R}c$ and
$\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$.
\begin{subproof}
$B_1\in\pow{L}$ and
$((\exists u, v\in L. u\mathrel{R}v \land B_1 = \intervalopenrel{R}{L}{u}{v}) \lor
(\exists v\in L. \exists u_0\in L. (\forall x\in L. u_0\mathrel{R}x \lor u_0 = x) \land B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}) \lor
(\exists u\in L. \exists v_0\in L. (\forall x\in L. x\mathrel{R}v_0 \lor x = v_0) \land B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}))$
by \cref{order_basis}.
\begin{byCase}
\caseOf{$\exists u, v\in L. u\mathrel{R}v \land B_1 = \intervalopenrel{R}{L}{u}{v}$.}
Take $u, v\in L$ such that $u\mathrel{R}v$ and $B_1 = \intervalopenrel{R}{L}{u}{v}$.
$u\mathrel{R}c$ and $c\mathrel{R}v$ by \cref{intervalopen_rel}.
Take $d\in L$ such that
$(d = u \lor d = a) \land (u\mathrel{R}d \lor u = d) \land (a\mathrel{R}d \lor a = d)$
by \cref{max_of_two_elements}.
$d\mathrel{R}c$ by \cref{max_of_two_elements,intervalopen_rel,transitive}.
$d\in I$ by \cref{max_of_two_elements,intervalclosed_rel,transitive}.
For all $x$ such that $x\in \intervalopenclosedrel{R}{I}{d}{c}$ we have $x\in B_0$
by \cref{intervalopenclosed_rel,max_of_two_elements,transitive,intervalopen_rel,inter_intro,subseteq}.
$\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$ by \cref{subseteq}.
There exists $d_0\in I$ such that $d_0\mathrel{R}c$ and
$\intervalopenclosedrel{R}{I}{d_0}{c} \subseteq B_0$.
\caseOf{$\exists v\in L. \exists u_0\in L. (\forall x\in L. u_0\mathrel{R}x \lor u_0 = x) \land B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.}
Take $u_0, v\in L$ such that
$(\forall x\in L. u_0\mathrel{R}x \lor u_0 = x)$ and $B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.
$c\mathrel{R}v$ by \cref{intervalclosedopen_rel}.
Let $d = a$.
$d\in I$ by \cref{intervalclosed_rel}.
$d\mathrel{R}c$ by \cref{intervalclosed_rel}.
For all $x$ such that $x\in \intervalopenclosedrel{R}{I}{d}{c}$ we have $x\in B_0$
by \cref{intervalopenclosed_rel,subseteq,transitive,intervalclosedopen_rel,inter_intro}.
$\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$ by \cref{subseteq}.
There exists $d_0\in I$ such that $d_0\mathrel{R}c$ and
$\intervalopenclosedrel{R}{I}{d_0}{c} \subseteq B_0$.
\caseOf{$\exists u\in L. \exists v_0\in L. (\forall x\in L. x\mathrel{R}v_0 \lor x = v_0) \land B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.}
Take $u, v_0\in L$ such that
$(\forall x\in L. x\mathrel{R}v_0 \lor x = v_0)$ and $B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.
$u\mathrel{R}c$ by \cref{intervalopenclosed_rel}.
Take $d\in L$ such that
$(d = u \lor d = a) \land (u\mathrel{R}d \lor u = d) \land (a\mathrel{R}d \lor a = d)$
by \cref{max_of_two_elements}.
$a\mathrel{R}d$ or $d = a$.
$d\mathrel{R}c$ by \cref{intervalopenclosed_rel}.
$c\mathrel{R}b$ or $c = b$ by \cref{intervalclosed_rel}.
$d\mathrel{R}b$ or $d = b$ by \hyperref[transitive]{transitivity}.
$d\in I$ by \cref{intervalclosed_rel}.
For all $x$ such that $x\in \intervalopenclosedrel{R}{I}{d}{c}$ we have $x\in B_0$
by \cref{intervalopenclosed_rel,max_of_two_elements,transitive,inter_intro,subseteq}.
$\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$ by \cref{subseteq}.
There exists $d_0\in I$ such that $d_0\mathrel{R}c$ and
$\intervalopenclosedrel{R}{I}{d_0}{c} \subseteq B_0$.
\end{byCase}
\end{subproof}
Take $d\in I$ such that $d\mathrel{R}c$ and $\intervalopenclosedrel{R}{I}{d}{c} \subseteq B_0$.
Show that for all $x\in A_0$ we have $x\mathrel{R}d$ or $x = d$.
\begin{subproof}
Fix $x$ such that $x\in A_0$.
$x\mathrel{R}c$ or $x = c$ by \cref{least_upper_bound_rel,upper_bound_rel}.
Show that it is wrong that $d\mathrel{R}x$.
\begin{subproof}
Suppose not.
$d\mathrel{R}x$.
\begin{byCase}
\caseOf{$x = c$.}
$c\in A_0$.
Contradiction by \cref{disjoint}.
\caseOf{$x\mathrel{R}c$.}
$x\in B_0$ by \cref{intervalopenclosed_rel,subseteq}.
Contradiction by \cref{disjoint}.
\end{byCase}
\end{subproof}
\begin{byCase}
\caseOf{$x = d$.}
$x\mathrel{R}d$ or $x = d$.
\caseOf{$x \neq d$.}
$x\mathrel{R}d$ or $d\mathrel{R}x$ by \cref{subseteq,connex}.
$x\mathrel{R}d$.
$x\mathrel{R}d$ or $x = d$.
\end{byCase}
\end{subproof}
$d$ is an upper bound of $A_0$ in $L$ with respect to $R$ by \cref{intervalclosed_rel,upper_bound_rel}.
$c\mathrel{R}d$ or $c = d$ by \cref{least_upper_bound_rel}.
Contradiction by \cref{asymmetric}.
\caseOf{$c\in A_0$.}
Suppose not.
$c\notin B_0$ by \cref{disjoint}.
$c\neq b$.
Take $U_1\in T$ such that $A_0 = I\inter U_1$ by \cref{subspace_topology,open_in}.
$c\in U_1$ by \cref{inter_elim_right}.
Take $B_1\in\orderBasis{R}{L}$ such that $c\in B_1$ and $B_1\subseteq U_1$
by \cref{topology_generated_by_basis}.
$B_1\inter I \subseteq A_0$ by \cref{subseteq_inter_iff,subseteq}.
Show that there exists $e\in I$ such that $c\mathrel{R}e$ and
$\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$.
\begin{subproof}
$B_1\in\pow{L}$ and
$((\exists u, v\in L. u\mathrel{R}v \land B_1 = \intervalopenrel{R}{L}{u}{v}) \lor
(\exists v\in L. \exists u_0\in L. (\forall x\in L. u_0\mathrel{R}x \lor u_0 = x) \land B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}) \lor
(\exists u\in L. \exists v_0\in L. (\forall x\in L. x\mathrel{R}v_0 \lor x = v_0) \land B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}))$
by \cref{order_basis}.
\begin{byCase}
\caseOf{$\exists u, v\in L. u\mathrel{R}v \land B_1 = \intervalopenrel{R}{L}{u}{v}$.}
Take $u, v\in L$ such that $u\mathrel{R}v$ and $B_1 = \intervalopenrel{R}{L}{u}{v}$.
$u\mathrel{R}c$ and $c\mathrel{R}v$ by \cref{intervalopen_rel}.
Take $e\in L$ such that
$(e = v \lor e = b) \land (e\mathrel{R}v \lor e = v) \land (e\mathrel{R}b \lor e = b)$
by \cref{min_of_two_elements}.
$c\mathrel{R}e$ by \cref{min_of_two_elements,intervalclosed_rel,transitive}.
$e\in I$ by \cref{min_of_two_elements,intervalclosed_rel,transitive}.
For all $x$ such that $x\in \intervalclosedopenrel{R}{I}{c}{e}$ we have $x\in A_0$
by \cref{intervalclosedopen_rel,transitive,intervalopen_rel,inter_intro,subseteq}.
$\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$ by \cref{subseteq}.
There exists $e_0\in I$ such that $c\mathrel{R}e_0$ and
$\intervalclosedopenrel{R}{I}{c}{e_0} \subseteq A_0$.
\caseOf{$\exists v\in L. \exists u_0\in L. (\forall x\in L. u_0\mathrel{R}x \lor u_0 = x) \land B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.}
Take $u_0, v\in L$ such that
$(\forall x\in L. u_0\mathrel{R}x \lor u_0 = x)$ and $B_1 = \intervalclosedopenrel{R}{L}{u_0}{v}$.
$c\mathrel{R}v$ by \cref{intervalclosedopen_rel}.
Take $e\in L$ such that
$(e = v \lor e = b) \land (e\mathrel{R}v \lor e = v) \land (e\mathrel{R}b \lor e = b)$
by \cref{min_of_two_elements}.
$e\mathrel{R}b$ or $e = b$.
$c\mathrel{R}b$ by \cref{intervalclosed_rel}.
$c\mathrel{R}e$.
$a\mathrel{R}c$ or $a = c$ by \cref{intervalclosed_rel}.
$a\mathrel{R}e$ or $e = a$ by \hyperref[transitive]{transitivity}.
$e\in I$ by \cref{intervalclosed_rel}.
For all $x$ such that $x\in \intervalclosedopenrel{R}{I}{c}{e}$ we have $x\in A_0$
by \cref{intervalclosedopen_rel,transitive,inter_intro,subseteq}.
$\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$ by \cref{subseteq}.
There exists $e_0\in I$ such that $c\mathrel{R}e_0$ and
$\intervalclosedopenrel{R}{I}{c}{e_0} \subseteq A_0$.
\caseOf{$\exists u\in L. \exists v_0\in L. (\forall x\in L. x\mathrel{R}v_0 \lor x = v_0) \land B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.}
Take $u, v_0\in L$ such that
$(\forall x\in L. x\mathrel{R}v_0 \lor x = v_0)$ and $B_1 = \intervalopenclosedrel{R}{L}{u}{v_0}$.
$u\mathrel{R}c$ by \cref{intervalopenclosed_rel}.
Take $e\in L$ such that
$(e = v_0 \lor e = b) \land (e\mathrel{R}v_0 \lor e = v_0) \land (e\mathrel{R}b \lor e = b)$
by \cref{min_of_two_elements}.
Show that $c\mathrel{R}e$.
\begin{subproof}
\begin{byCase}
\caseOf{$e = b$.}
$c\mathrel{R}b$ or $c = b$ by \cref{intervalclosed_rel}.
$c \neq b$ by \cref{disjoint}.
$c\mathrel{R}e$.
\caseOf{$e = v_0$.}
$c\mathrel{R}v_0$ or $c = v_0$.
Show that $c\mathrel{R}v_0$.
\begin{subproof}
Suppose not.
$c = v_0$.
$b\mathrel{R}v_0$ or $b = v_0$.
\begin{byCase}
\caseOf{$b = v_0$.} Contradiction by \cref{disjoint}.
\caseOf{$b\mathrel{R}v_0$.}
$c\mathrel{R}b$ or $c = b$ by \cref{intervalclosed_rel}.
\begin{byCase}
\caseOf{$c = b$.} Contradiction by \cref{disjoint}.
\caseOf{$c\mathrel{R}b$.}
$b\mathrel{R}c$.
Contradiction by \cref{asymmetric}.
\end{byCase}
\end{byCase}
\end{subproof}
$c\mathrel{R}e$.
\end{byCase}
\end{subproof}
$a\mathrel{R}c$ or $a = c$ by \cref{intervalclosed_rel}.
$a\mathrel{R}e$ or $e = a$ by \hyperref[transitive]{transitivity}.
$e\in I$ by \cref{intervalclosed_rel}.
For all $x$ such that $x\in \intervalclosedopenrel{R}{I}{c}{e}$ we have $x\in A_0$
by \cref{intervalclosedopen_rel,transitive,intervalopenclosed_rel,inter_intro,subseteq}.
$\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$ by \cref{subseteq}.
There exists $e_0\in I$ such that $c\mathrel{R}e_0$ and
$\intervalclosedopenrel{R}{I}{c}{e_0} \subseteq A_0$.
\end{byCase}
\end{subproof}
Take $e\in I$ such that $c\mathrel{R}e$ and $\intervalclosedopenrel{R}{I}{c}{e} \subseteq A_0$.
Take $z\in L$ such that $c\mathrel{R}z$ and $z\mathrel{R}e$ by \cref{subseteq,linear_continuum}.
$a\mathrel{R}c$ or $a = c$ by \cref{intervalclosed_rel}.
$a\mathrel{R}z$ or $z = a$ by \hyperref[transitive]{transitivity}.
$e\mathrel{R}b$ or $e = b$ by \cref{intervalclosed_rel}.
$z\mathrel{R}b$ or $z = b$ by \hyperref[transitive]{transitivity}.
$z\in I$ by \cref{intervalclosed_rel}.
$z\in A_0$ by \cref{intervalclosedopen_rel,subseteq}.
$z\mathrel{R}c$ or $z = c$ by \cref{least_upper_bound_rel,upper_bound_rel}.
Contradiction by \cref{asymmetric}.
\end{byCase}
\end{proof}
Assume $T$ is the order topology on $L$ with respect to $R$.
Assume $L$ is a linear continuum with respect to $R$.
Suppose $Y$ is convex in $L$ with respect to $R$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Then $Y$ is connected with respect to $T_Y$.
LaTeX source
\begin{lemma}
\label{convex_connected_linear_continuum}
Assume $T$ is the order topology on $L$ with respect to $R$.
Assume $L$ is a linear continuum with respect to $R$.
Suppose $Y$ is convex in $L$ with respect to $R$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Then $Y$ is connected with respect to $T_Y$.
\end{lemma}
Proof
Suppose not.
Take $A,B$ such that $Y$ is separated by $A$ and $B$ with respect to $T_Y$.
Take $a,b$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 226, Proposition 10.
$a\mathrel{R}b$ or $b\mathrel{R}a$ by Definition 1, Definition 3, Definition 40, Definition 98, Definition 148, Definition 226, Definition 231, Proposition 6, Proposition 46, Proposition 47.
Contradiction by Definition 226, Lemma 318, Proposition 13, Proposition 41 [Commutativity of union].
LaTeX source
\begin{proof}
Suppose not.
Take $A,B$ such that $Y$ is separated by $A$ and $B$ with respect to $T_Y$.
Take $a,b$ such that $a\in A$ and $b\in B$ by \cref{nonempty_inhabited,separation}.
$a\mathrel{R}b$ or $b\mathrel{R}a$
by \cref{separation,union_upper_left,union_upper_right,convex_in,subseteq_transitive,subseteq,disjoint,linear_continuum,simple_order_relation,connex}.
Contradiction by \cref{convex_separation_contradiction,separation,disjoint_symmetric,union_comm}.
\end{proof}
Assume $T$ is the order topology on $L$ with respect to $R$.
Assume $L$ is a linear continuum with respect to $R$.
Then $L$ is connected with respect to $T$ and for all $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ if $a\mathrel{R}b$ then $\intervalopenrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalopenrel{R}{L}{a}{b}}$ and $\intervalopenclosedrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalopenclosedrel{R}{L}{a}{b}}$ and $\intervalclosedopenrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalclosedopenrel{R}{L}{a}{b}}$ and $\intervalclosedrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalclosedrel{R}{L}{a}{b}}$ and for all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ we have $\openrayright{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\openrayright{R}{L}{a}}$ and $\openrayleft{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\openrayleft{R}{L}{a}}$ and $\closedrayright{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\closedrayright{R}{L}{a}}$ and $\closedrayleft{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\closedrayleft{R}{L}{a}}$.
LaTeX source
\begin{theorem}
\label{linear_continuum_connected}
Assume $T$ is the order topology on $L$ with respect to $R$.
Assume $L$ is a linear continuum with respect to $R$.
Then $L$ is connected with respect to $T$ and
for all $a,b\in L$ if $a\mathrel{R}b$ then
$\intervalopenrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalopenrel{R}{L}{a}{b}}$ and
$\intervalopenclosedrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalopenclosedrel{R}{L}{a}{b}}$ and
$\intervalclosedopenrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalclosedopenrel{R}{L}{a}{b}}$ and
$\intervalclosedrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalclosedrel{R}{L}{a}{b}}$ and
for all $a\in L$ we have
$\openrayright{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\openrayright{R}{L}{a}}$ and
$\openrayleft{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\openrayleft{R}{L}{a}}$ and
$\closedrayright{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\closedrayright{R}{L}{a}}$ and
$\closedrayleft{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\closedrayleft{R}{L}{a}}$.
\end{theorem}
Proof
$T$ is a topology on $L$ by Definition 134, Lemma 76, Lemma 113.
Let $T_L = \subspaceTopology{T}{L}$.
$L$ is connected with respect to $T_L$ by Definition 1, Definition 148, Lemma 319.
Claim: $T_L\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$.
Follows by Definition 1, Definition 101, Definition 146, Proposition 70, Proposition 156.
Claim: $T\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_L$.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ we have $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_L$.
Follows by Definition 1, Definition 101, Definition 146, Proposition 70, Proposition 156.
$T\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_L$ by Definition 1.
$L$ is connected with respect to $T$ by Definition 1, Proposition 3.
Claim: For all $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ if $a\mathrel{R}b$ then $\intervalopenrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalopenrel{R}{L}{a}{b}}$ and $\intervalopenclosedrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalopenclosedrel{R}{L}{a}{b}}$ and $\intervalclosedopenrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalclosedopenrel{R}{L}{a}{b}}$ and $\intervalclosedrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalclosedrel{R}{L}{a}{b}}$.
Follows by Definition 98, Definition 231, Lemma 310, Lemma 311, Lemma 312, Lemma 313, Lemma 319.
Claim: For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ we have $\openrayright{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\openrayright{R}{L}{a}}$ and $\openrayleft{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\openrayleft{R}{L}{a}}$ and $\closedrayright{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\closedrayright{R}{L}{a}}$ and $\closedrayleft{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\closedrayleft{R}{L}{a}}$.
Follows by Definition 98, Definition 231, Lemma 314, Lemma 315, Lemma 316, Lemma 317, Lemma 319.
LaTeX source
\begin{proof}
$T$ is a topology on $L$ by \cref{order_topology,order_basis_is_basis,basis_topology_is_topology}.
Let $T_L = \subspaceTopology{T}{L}$.
$L$ is connected with respect to $T_L$ by \cref{convex_in,subseteq,convex_connected_linear_continuum}.
Show that $T_L\subseteq T$.
\begin{subproof}
Follows by \cref{subspace_topology,topology_on,powerset_elim,inter_absorb_supseteq_left,subseteq}.
\end{subproof}
Show that $T\subseteq T_L$.
\begin{subproof}
Show that for all $U$ such that $U\in T$ we have $U\in T_L$.
\begin{subproof}
Follows by \cref{topology_on,subseteq,powerset_elim,inter_absorb_supseteq_left,subspace_topology}.
\end{subproof}
$T\subseteq T_L$ by \cref{subseteq}.
\end{subproof}
$L$ is connected with respect to $T$ by \cref{subseteq_antisymmetric,subseteq}.
Show that for all $a,b\in L$ if $a\mathrel{R}b$ then
$\intervalopenrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalopenrel{R}{L}{a}{b}}$ and
$\intervalopenclosedrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalopenclosedrel{R}{L}{a}{b}}$ and
$\intervalclosedopenrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalclosedopenrel{R}{L}{a}{b}}$ and
$\intervalclosedrel{R}{L}{a}{b}$ is connected with respect to $\subspaceTopology{T}{\intervalclosedrel{R}{L}{a}{b}}$.
\begin{subproof}
Follows by \cref{linear_continuum,simple_order_relation,intervalopenrel_convex,intervalopenclosedrel_convex,intervalclosedopenrel_convex,intervalclosedrel_convex,convex_connected_linear_continuum}.
\end{subproof}
Show that for all $a\in L$ we have
$\openrayright{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\openrayright{R}{L}{a}}$ and
$\openrayleft{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\openrayleft{R}{L}{a}}$ and
$\closedrayright{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\closedrayright{R}{L}{a}}$ and
$\closedrayleft{R}{L}{a}$ is connected with respect to $\subspaceTopology{T}{\closedrayleft{R}{L}{a}}$.
\begin{subproof}
Follows by \cref{linear_continuum,simple_order_relation,openrayright_convex,openrayleft_convex,closedrayright_convex,closedrayleft_convex,convex_connected_linear_continuum}.
\end{subproof}
\end{proof}
$\realOrderRel = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals \mid \fst{w} < \snd{w}\}$.
LaTeX source
\begin{definition}
\label{real_order_relation}
$\realOrderRel = \{w\in\reals\times\reals \mid \fst{w} < \snd{w}\}$.
\end{definition}
$\realOrderTopology = \basisTopology{\orderBasis{\realOrderRel}{\reals}}{\reals}$.
LaTeX source
\begin{definition}
\label{real_order_topology}
$\realOrderTopology = \basisTopology{\orderBasis{\realOrderRel}{\reals}}{\reals}$.
\end{definition}
$\betweenrel{R}{Y}{x}{y} = \intervalclosedrel{R}{Y}{x}{y} \union \intervalclosedrel{R}{Y}{y}{x}$.
LaTeX source
\begin{definition}
\label{between_rel}
$\betweenrel{R}{Y}{x}{y} = \intervalclosedrel{R}{Y}{x}{y} \union \intervalclosedrel{R}{Y}{y}{x}$.
\end{definition}
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $a < b$.
Then $a\mathrel{\realOrderRel} b$.
LaTeX source
\begin{lemma}
\label{real_order_relation_intro}
Suppose $a\in\reals$ and $b\in\reals$ and $a < b$.
Then $a\mathrel{\realOrderRel} b$.
\end{lemma}
Proof
Follows by Axiom 10, Axiom 11, Definition 232, Lemma 82, Lemma 83, Proposition 115.
LaTeX source
\begin{proof}
Follows by \cref{times_tuple_intro,fst_eq,snd_eq,real_lt_subst_left,real_lt_subst_right,real_order_relation}.
\end{proof}
Suppose $a\mathrel{\realOrderRel} b$.
Then $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $a < b$.
LaTeX source
\begin{lemma}
\label{real_order_relation_elim}
Suppose $a\mathrel{\realOrderRel} b$.
Then $a\in\reals$ and $b\in\reals$ and $a < b$.
\end{lemma}
Proof
Follows by Axiom 10, Axiom 11, Definition 232, Lemma 82, Lemma 83, Proposition 114.
LaTeX source
\begin{proof}
Follows by \cref{real_order_relation,times_tuple_elim,fst_eq,snd_eq,real_lt_subst_left,real_lt_subst_right}.
\end{proof}
$\realOrderRel$ is a simple order relation on $\reals$.
LaTeX source
\begin{lemma}
\label{real_order_relation_simple}
$\realOrderRel$ is a simple order relation on $\reals$.
\end{lemma}
Proof
Claim: $\realOrderRel$ is transitive.
Follows by Axiom 36, Definition 37 [Transitivity], Lemma 320, Lemma 321.
Claim: For all $a,b$ such that $a\mathrel{\realOrderRel} b$ we have it is wrong that $b\mathrel{\realOrderRel} a$.
$\realOrderRel$ is a simple order relation on $\reals$ by Axiom 34, Definition 1, Definition 36, Definition 40, Definition 98, Definition 232, Lemma 320.
LaTeX source
\begin{proof}
Show that $\realOrderRel$ is transitive.
\begin{subproof}
Follows by \cref{real_order_relation_elim,real_lt_trans,real_order_relation_intro,transitive}.
\end{subproof}
Show that for all $a,b$ such that $a\mathrel{\realOrderRel} b$ we have it is wrong that $b\mathrel{\realOrderRel} a$.
\begin{subproof}
Follows by \cref{real_order_relation_elim,real_lt_trans,real_lt_irreflexive}.
\end{subproof}
$\realOrderRel$ is a simple order relation on $\reals$
by \cref{real_order_relation,subseteq,asymmetric,real_lt_trichotomy,real_order_relation_intro,connex,simple_order_relation}.
\end{proof}
Suppose $A$ is inhabited.
Then $A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
LaTeX source
\begin{lemma}
\label{inhabited_nonempty}
Suppose $A$ is inhabited.
Then $A\neq\emptyset$.
\end{lemma}
Proof
Take $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2.
LaTeX source
\begin{proof}
Take $a$ such that $a\in A$.
$A\neq\emptyset$ by \cref{emptyset}.
\end{proof}
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$.
Suppose $u$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$.
Then $u$ is an upper bound of $A$.
LaTeX source
\begin{lemma}
\label{real_order_upper_bound_is_real_upper_bound}
Suppose $A\subseteq\reals$.
Suppose $u$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$.
Then $u$ is an upper bound of $A$.
\end{lemma}
Proof
$u\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 228.
Claim: For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} u$.
Fix $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$a\mathrel{\realOrderRel} u$ or $a = u$ by Definition 228.
$a < u$ or $a = u$ by Lemma 321.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} u$.
$u$ is an upper bound of $A$ by Definition 66.
LaTeX source
\begin{proof}
$u\in\reals$ by \cref{upper_bound_rel}.
Show that for all $a\in A$ we have $a \leq u$.
\begin{subproof}
Fix $a\in A$.
$a\mathrel{\realOrderRel} u$ or $a = u$ by \cref{upper_bound_rel}.
$a < u$ or $a = u$ by \cref{real_order_relation_elim}.
$a \leq u$.
\end{subproof}
$u$ is an upper bound of $A$ by \cref{real_upper_bound}.
\end{proof}
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$.
Suppose $c$ is a supremum of $A$.
Then $c$ is a least upper bound of $A$ in $\reals$ with respect to $\realOrderRel$.
LaTeX source
\begin{lemma}
\label{real_supremum_is_order_least_upper_bound}
Suppose $A\subseteq\reals$.
Suppose $c$ is a supremum of $A$.
Then $c$ is a least upper bound of $A$ in $\reals$ with respect to $\realOrderRel$.
\end{lemma}
Proof
$c$ is an upper bound of $A$ by Definition 71.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 66.
Claim: For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $a\mathrel{\realOrderRel} c$ or $a = c$.
Fix $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} c$ by Definition 66.
$a < c$ or $a = c$ by Lemma 81.
$a\mathrel{\realOrderRel} c$ or $a = c$ by Lemma 320.
$c$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$ by Definition 228.
Claim: For all $u$ such that $u$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$ we have $c\mathrel{\realOrderRel} u$ or $c = u$.
Fix $u$ such that $u$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$.
$u$ is an upper bound of $A$ by Lemma 324.
$u\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 66.
$c \class{latex-symbol-tip latex-symbol-id-leq}{\leq} u$ by Definition 71.
$c < u$ or $c = u$ by Lemma 81.
$c\mathrel{\realOrderRel} u$ or $c = u$ by Definition 66, Lemma 320.
$c$ is a least upper bound of $A$ in $\reals$ with respect to $\realOrderRel$ by Definition 229.
LaTeX source
\begin{proof}
$c$ is an upper bound of $A$ by \cref{real_supremum}.
$c\in\reals$ by \cref{real_upper_bound}.
Show that for all $a\in A$ we have $a\mathrel{\realOrderRel} c$ or $a = c$.
\begin{subproof}
Fix $a\in A$.
$a\in\reals$ by \cref{subseteq}.
$a \leq c$ by \cref{real_upper_bound}.
$a < c$ or $a = c$ by \cref{real_leq_split}.
$a\mathrel{\realOrderRel} c$ or $a = c$ by \cref{real_order_relation_intro}.
\end{subproof}
$c$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$ by \cref{upper_bound_rel}.
Show that for all $u$ such that $u$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$
we have $c\mathrel{\realOrderRel} u$ or $c = u$.
\begin{subproof}
Fix $u$ such that $u$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$.
$u$ is an upper bound of $A$ by \cref{real_order_upper_bound_is_real_upper_bound}.
$u\in\reals$ by \cref{real_upper_bound}.
$c \leq u$ by \cref{real_supremum}.
$c < u$ or $c = u$ by \cref{real_leq_split}.
$c\mathrel{\realOrderRel} u$ or $c = u$
by \cref{real_order_relation_intro,real_upper_bound}.
\end{subproof}
$c$ is a least upper bound of $A$ in $\reals$ with respect to $\realOrderRel$
by \cref{least_upper_bound_rel}.
\end{proof}
$\reals$ is a linear continuum with respect to $\realOrderRel$.
LaTeX source
\begin{lemma}
\label{reals_linear_continuum}
$\reals$ is a linear continuum with respect to $\realOrderRel$.
\end{lemma}
Proof
Claim: $\realOrderRel$ is a simple order relation on $\reals$.
Follows by Lemma 322.
Claim: $\reals$ has more than one element.
Follows by Axiom 17, Axiom 21, Axiom 39, Definition 127, Proposition 462.
Claim: For all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ and $A$ is inhabited and there exists $u$ such that $u$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$ there exists $c$ such that $c$ is a least upper bound of $A$ in $\reals$ with respect to $\realOrderRel$.
Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ and $A$ is inhabited and there exists $u$ such that $u$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$.
Take $u$ such that $u$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$.
$u$ is an upper bound of $A$ by Lemma 324.
$A$ is bounded above by Definition 67.
$A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Lemma 323.
Take $c$ such that $c$ is a supremum of $A$ by Axiom 40.
$c$ is a least upper bound of $A$ in $\reals$ with respect to $\realOrderRel$ by Lemma 325.
Claim: $\reals$ has the least upper bound property with respect to $\realOrderRel$.
Follows by Definition 230.
Claim: For all $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ if $a\mathrel{\realOrderRel} b$ then there exists $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $a\mathrel{\realOrderRel} z$ and $z\mathrel{\realOrderRel} b$.
Follows by Definition 76, Lemma 320, Lemma 321, Proposition 479.
$\reals$ is a linear continuum with respect to $\realOrderRel$ by Definition 231.
LaTeX source
\begin{proof}
Show that $\realOrderRel$ is a simple order relation on $\reals$.
\begin{subproof}
Follows by \cref{real_order_relation_simple}.
\end{subproof}
Show that $\reals$ has more than one element.
\begin{subproof}
Follows by \cref{real_add_ident,real_mul_ident,real_zero_lt_one,real_lt_irreflexive,more_than_one_element}.
\end{subproof}
Show that for all $A$ such that $A\subseteq\reals$ and $A$ is inhabited and
there exists $u$ such that $u$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$
there exists $c$ such that $c$ is a least upper bound of $A$ in $\reals$ with respect to $\realOrderRel$.
\begin{subproof}
Fix $A$ such that $A\subseteq\reals$ and $A$ is inhabited and
there exists $u$ such that $u$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$.
Take $u$ such that $u$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$.
$u$ is an upper bound of $A$ by \cref{real_order_upper_bound_is_real_upper_bound}.
$A$ is bounded above by \cref{real_bounded_above}.
$A\neq\emptyset$ by \cref{inhabited_nonempty}.
Take $c$ such that $c$ is a supremum of $A$ by \cref{real_completeness_axiom}.
$c$ is a least upper bound of $A$ in $\reals$ with respect to $\realOrderRel$
by \cref{real_supremum_is_order_least_upper_bound}.
\end{subproof}
Show that $\reals$ has the least upper bound property with respect to $\realOrderRel$.
\begin{subproof}
Follows by \cref{least_upper_bound_property}.
\end{subproof}
Show that for all $a,b\in\reals$ if $a\mathrel{\realOrderRel} b$ then
there exists $z\in\reals$ such that $a\mathrel{\realOrderRel} z$ and $z\mathrel{\realOrderRel} b$.
\begin{subproof}
Follows by \cref{real_order_relation_elim,real_rational_open_interval,intervalopen,real_order_relation_intro}.
\end{subproof}
$\reals$ is a linear continuum with respect to $\realOrderRel$ by \cref{linear_continuum}.
\end{proof}
$\reals$ is connected with respect to $\realOrderTopology$ and for all $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ if $a\mathrel{\realOrderRel} b$ then $\intervalopenrel{\realOrderRel}{\reals}{a}{b}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\intervalopenrel{\realOrderRel}{\reals}{a}{b}}$ and $\intervalopenclosedrel{\realOrderRel}{\reals}{a}{b}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\intervalopenclosedrel{\realOrderRel}{\reals}{a}{b}}$ and $\intervalclosedopenrel{\realOrderRel}{\reals}{a}{b}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\intervalclosedopenrel{\realOrderRel}{\reals}{a}{b}}$ and $\intervalclosedrel{\realOrderRel}{\reals}{a}{b}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\intervalclosedrel{\realOrderRel}{\reals}{a}{b}}$ and for all $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ we have $\openrayright{\realOrderRel}{\reals}{a}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\openrayright{\realOrderRel}{\reals}{a}}$ and $\openrayleft{\realOrderRel}{\reals}{a}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\openrayleft{\realOrderRel}{\reals}{a}}$ and $\closedrayright{\realOrderRel}{\reals}{a}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\closedrayright{\realOrderRel}{\reals}{a}}$ and $\closedrayleft{\realOrderRel}{\reals}{a}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\closedrayleft{\realOrderRel}{\reals}{a}}$.
LaTeX source
\begin{corollary}
\label{reals_connected}
$\reals$ is connected with respect to $\realOrderTopology$ and
for all $a,b\in\reals$ if $a\mathrel{\realOrderRel} b$ then
$\intervalopenrel{\realOrderRel}{\reals}{a}{b}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\intervalopenrel{\realOrderRel}{\reals}{a}{b}}$ and
$\intervalopenclosedrel{\realOrderRel}{\reals}{a}{b}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\intervalopenclosedrel{\realOrderRel}{\reals}{a}{b}}$ and
$\intervalclosedopenrel{\realOrderRel}{\reals}{a}{b}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\intervalclosedopenrel{\realOrderRel}{\reals}{a}{b}}$ and
$\intervalclosedrel{\realOrderRel}{\reals}{a}{b}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\intervalclosedrel{\realOrderRel}{\reals}{a}{b}}$ and
for all $a\in\reals$ we have
$\openrayright{\realOrderRel}{\reals}{a}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\openrayright{\realOrderRel}{\reals}{a}}$ and
$\openrayleft{\realOrderRel}{\reals}{a}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\openrayleft{\realOrderRel}{\reals}{a}}$ and
$\closedrayright{\realOrderRel}{\reals}{a}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\closedrayright{\realOrderRel}{\reals}{a}}$ and
$\closedrayleft{\realOrderRel}{\reals}{a}$ is connected with respect to $\subspaceTopology{\realOrderTopology}{\closedrayleft{\realOrderRel}{\reals}{a}}$.
\end{corollary}
Proof
Follows by Definition 134, Definition 231, Definition 233, Lemma 326, Theorem 44.
LaTeX source
\begin{proof}
Follows by \cref{reals_linear_continuum,linear_continuum,real_order_topology,order_topology,linear_continuum_connected}.
\end{proof}
Suppose $f$ is continuous from $X$ to $Y$ with respect to $T$ and $T_1$.
Assume $X$ is connected with respect to $T$.
Assume $R$ is a simple order relation on $Y$.
Assume $Y$ has more than one element.
Assume $T_1$ is the order topology on $Y$ with respect to $R$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $r\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.
Suppose $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\betweenrel{R}{Y}{f(a)}{f(b)}$.
Then there exists $c\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $f(c) = r$.
LaTeX source
\begin{theorem}
\label{intermediate_value_theorem}
Suppose $f$ is continuous from $X$ to $Y$ with respect to $T$ and $T_1$.
Assume $X$ is connected with respect to $T$.
Assume $R$ is a simple order relation on $Y$.
Assume $Y$ has more than one element.
Assume $T_1$ is the order topology on $Y$ with respect to $R$.
Suppose $a\in X$.
Suppose $b\in X$.
Suppose $r\in Y$.
Suppose $r\in\betweenrel{R}{Y}{f(a)}{f(b)}$.
Then there exists $c\in X$ such that $f(c) = r$.
\end{theorem}
Proof
$f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ and $f$ is a function by Definition 160, Proposition 359.
$T$ is a topology on $X$ and $T_1$ is a topology on $Y$ by Definition 160.
Let $Z = \img{f}{X}$.
Let $T_Z = \subspaceTopology{T_1}{Z}$.
$Z$ is connected with respect to $T_Z$ and $Z$ is a subspace of $Y$ with respect to $T_1$ and $T_Z$ is a topology on $Z$ by Definition 147, Lemma 131, Proposition 6, Proposition 237, Proposition 363, Theorem 42.
Suppose not.
There exists no $c\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $f(c) = r$.
Claim: $r\class{latex-symbol-tip latex-symbol-id-notin}{\notin} Z$.
Suppose not.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$.
Take $c\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $f(c) = r$ by Proposition 235, Proposition 349.
Contradiction.
$f(a)\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ and $f(b)\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ and $f(a)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $f(b)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 55, Proposition 234, Proposition 348, Proposition 361.
Let $A = Z\inter\openrayleft{R}{Y}{r}$.
Let $B = Z\inter\openrayright{R}{Y}{r}$.
Claim: $A$ is open in $Z$ with respect to $T_Z$.
Follows by Definition 103, Definition 146, Lemma 154.
Claim: $B$ is open in $Z$ with respect to $T_Z$.
Follows by Definition 103, Definition 146, Lemma 153.
Claim: $A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Follows by Axiom 2, Axiom 5, Definition 132, Definition 136, Definition 234, Proposition 61.
Claim: $B\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Follows by Axiom 2, Axiom 5, Definition 132, Definition 135, Definition 234, Proposition 61.
$A$ is disjoint from $B$ by Definition 3, Definition 5, Definition 36, Definition 98, Definition 135, Definition 136.
Claim: $A\union B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$.
Follows by Axiom 5, Definition 1, Definition 5.
Claim: $Z\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A\union B$.
Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A\union B$.
Follows by Axiom 5, Definition 1, Definition 40, Definition 98, Definition 135, Definition 136, Definition 147, Proposition 61.
$Z\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A\union B$ by Definition 1.
$A\union B = Z$ by Proposition 3.
$Z$ is separated by $A$ and $B$ with respect to $T_Z$ by Definition 226.
Contradiction by Definition 227.
LaTeX source
\begin{proof}
$f\in\funs{X}{Y}$ and $f$ is a function by \cref{continuous,funs_elim}.
$T$ is a topology on $X$ and $T_1$ is a topology on $Y$ by \cref{continuous}.
Let $Z = \img{f}{X}$.
Let $T_Z = \subspaceTopology{T_1}{Z}$.
$Z$ is connected with respect to $T_Z$ and
$Z$ is a subspace of $Y$ with respect to $T_1$ and
$T_Z$ is a topology on $Z$
by \cref{connected_image_continuous,funs_ran,img_subseteq_ran,subseteq_transitive,subspace_of,subspace_topology_is_topology}.
Suppose not.
There exists no $c\in X$ such that $f(c) = r$.
Show that $r\notin Z$.
\begin{subproof}
Suppose not.
$r\in Z$.
Take $c\in X$ such that $f(c) = r$ by \cref{img_iff,function_apply_iff}.
Contradiction.
\end{subproof}
$f(a)\in Z$ and $f(b)\in Z$ and $f(a)\in Y$ and $f(b)\in Y$
by \cref{funs,function_apply_elim,img_elem_intro,funs_type_apply}.
Let $A = Z\inter\openrayleft{R}{Y}{r}$.
Let $B = Z\inter\openrayright{R}{Y}{r}$.
Show that $A$ is open in $Z$ with respect to $T_Z$.
\begin{subproof}
Follows by \cref{openrayleft_open_in_order_topology,open_in,subspace_topology}.
\end{subproof}
Show that $B$ is open in $Z$ with respect to $T_Z$.
\begin{subproof}
Follows by \cref{openrayright_open_in_order_topology,open_in,subspace_topology}.
\end{subproof}
Show that $A\neq\emptyset$.
\begin{subproof}
Follows by \cref{between_rel,union_iff,intervalclosed_rel,openray_left,inter_intro,emptyset}.
\end{subproof}
Show that $B\neq\emptyset$.
\begin{subproof}
Follows by \cref{between_rel,union_iff,intervalclosed_rel,openray_right,inter_intro,emptyset}.
\end{subproof}
$A$ is disjoint from $B$ by \cref{inter,openray_left,openray_right,simple_order_relation,asymmetric,disjoint}.
Show that $A\union B\subseteq Z$.
\begin{subproof}
Follows by \cref{union_iff,inter,subseteq}.
\end{subproof}
Show that $Z\subseteq A\union B$.
\begin{subproof}
Show that for all $y$ such that $y\in Z$ we have $y\in A\union B$.
\begin{subproof}
Follows by \cref{subspace_of,subseteq,simple_order_relation,connex,openray_left,openray_right,inter_intro,union_iff}.
\end{subproof}
$Z\subseteq A\union B$ by \cref{subseteq}.
\end{subproof}
$A\union B = Z$ by \cref{subseteq_antisymmetric}.
$Z$ is separated by $A$ and $B$ with respect to $T_Z$ by \cref{separation}.
Contradiction by \cref{connected}.
\end{proof}
$f$ is a path in $X$ from $x$ to $y$ with respect to $T$ iff there exist $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $a\mathrel{\realOrderRel} b$ and $f$ is continuous from $\intervalclosedrel{\realOrderRel}{\reals}{a}{b}$ to $X$ with respect to $\subspaceTopology{\realOrderTopology}{\intervalclosedrel{\realOrderRel}{\reals}{a}{b}}$ and $T$ and $f(a) = x$ and $f(b) = y$.
LaTeX source
\begin{definition}
\label{path_in_space}
$f$ is a path in $X$ from $x$ to $y$ with respect to $T$ iff
there exist $a,b\in\reals$ such that
$a\mathrel{\realOrderRel} b$ and
$f$ is continuous from $\intervalclosedrel{\realOrderRel}{\reals}{a}{b}$ to $X$ with respect to
$\subspaceTopology{\realOrderTopology}{\intervalclosedrel{\realOrderRel}{\reals}{a}{b}}$ and $T$ and
$f(a) = x$ and $f(b) = y$.
\end{definition}
$X$ is path connected with respect to $T$ iff for all $x,y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $f$ such that $f$ is a path in $X$ from $x$ to $y$ with respect to $T$.
LaTeX source
\begin{definition}
\label{path_connected}
$X$ is path connected with respect to $T$ iff
for all $x,y\in X$ there exists $f$ such that
$f$ is a path in $X$ from $x$ to $y$ with respect to $T$.
\end{definition}
Assume $T$ is a topology on $X$.
Assume $X$ is path connected with respect to $T$.
Then $X$ is connected with respect to $T$.
LaTeX source
\begin{theorem}
\label{path_connected_implies_connected}
Assume $T$ is a topology on $X$.
Assume $X$ is path connected with respect to $T$.
Then $X$ is connected with respect to $T$.
\end{theorem}
Proof
Suppose not.
Take $A,B$ such that $X$ is separated by $A$ and $B$ with respect to $T$.
$A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ and $B\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Definition 226.
Take $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Proposition 10.
Take $f$ such that $f$ is a path in $X$ from $x$ to $y$ with respect to $T$ by Definition 1, Definition 101, Definition 103, Definition 226, Definition 236, Proposition 156.
Take $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $a\mathrel{\realOrderRel} b$ and $f$ is continuous from $\intervalclosedrel{\realOrderRel}{\reals}{a}{b}$ to $X$ with respect to $\subspaceTopology{\realOrderTopology}{\intervalclosedrel{\realOrderRel}{\reals}{a}{b}}$ and $T$ and $f(a) = x$ and $f(b) = y$ by Definition 235.
Let $I = \intervalclosedrel{\realOrderRel}{\reals}{a}{b}$.
Let $T_I = \subspaceTopology{\realOrderTopology}{I}$.
$I$ is connected with respect to $T_I$ by Definition 160, Corollary 10.
Let $Z = \img{f}{I}$.
Let $T_Z = \subspaceTopology{T}{Z}$.
Claim: $Z\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ or $Z\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B$.
Claim: $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$.
Follows by Definition 132, Definition 160, Proposition 234, Proposition 348, Proposition 359.
Contradiction by Definition 1, Definition 3, Definition 226.
LaTeX source
\begin{proof}
Suppose not.
Take $A,B$ such that $X$ is separated by $A$ and $B$ with respect to $T$.
$A\neq\emptyset$ and $B\neq\emptyset$ by \cref{separation}.
Take $x,y$ such that $x\in A$ and $y\in B$ by \cref{nonempty_inhabited}.
Take $f$ such that $f$ is a path in $X$ from $x$ to $y$ with respect to $T$
by \cref{separation,open_in,topology_on,powerset_elim,subseteq,path_connected}.
Take $a,b\in\reals$ such that
$a\mathrel{\realOrderRel} b$ and
$f$ is continuous from $\intervalclosedrel{\realOrderRel}{\reals}{a}{b}$ to $X$ with respect to
$\subspaceTopology{\realOrderTopology}{\intervalclosedrel{\realOrderRel}{\reals}{a}{b}}$ and $T$ and
$f(a) = x$ and $f(b) = y$
by \cref{path_in_space}.
Let $I = \intervalclosedrel{\realOrderRel}{\reals}{a}{b}$.
Let $T_I = \subspaceTopology{\realOrderTopology}{I}$.
$I$ is connected with respect to $T_I$ by \cref{continuous,reals_connected}.
Let $Z = \img{f}{I}$.
Let $T_Z = \subspaceTopology{T}{Z}$.
Show that $Z\subseteq A$ or $Z\subseteq B$.
\begin{subproof}
Follows by \cref{connected_image_continuous,continuous,funs_elim,funs_ran,img_subseteq_ran,subseteq_transitive,subspace_of,connected_subspace_in_separation}.
\end{subproof}
Show that $x\in Z$ and $y\in Z$.
\begin{subproof}
Follows by \cref{intervalclosed_rel,continuous,funs_elim,function_apply_elim,img_elem_intro}.
\end{subproof}
Contradiction by \cref{subseteq,separation,disjoint}.
\end{proof}