Topology (Munkres)

§16 The Subspace Topology

Definition 146
subspace_topology

$\subspaceTopology{T}{Y} = \{A \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in} T. A = Y\inter U\}$.

LaTeX source
\begin{definition}
\label{subspace_topology}
    $\subspaceTopology{T}{Y} = \{A \mid \exists U\in T. A = Y\inter U\}$.
\end{definition}
Definition 147
subspace_of

$Y$ is a subspace of $X$ with respect to $T$ iff $T$ is a topology on $X$ and $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.

LaTeX source
\begin{definition}
\label{subspace_of}
    $Y$ is a subspace of $X$ with respect to $T$ iff $T$ is a topology on $X$ and $Y\subseteq X$.
\end{definition}
Lemma 131
subspace_topology_is_topology

Assume $T$ is a topology on $X$.
Assume $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Then $\subspaceTopology{T}{Y}$ is a topology on $Y$.

LaTeX source
\begin{lemma}
\label{subspace_topology_is_topology}
    Assume $T$ is a topology on $X$.
    Assume $Y\subseteq X$.
    Then $\subspaceTopology{T}{Y}$ is a topology on $Y$.
\end{lemma}
Proof

Let $T_1 = \subspaceTopology{T}{Y}$.
$T_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{Y}$ by Definition 1, Definition 146, Proposition 73, Proposition 155.

Claim: $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ and $Y\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.
Claim: For all $M$ such that $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_1$ we have $\unions{M}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.

Fix $M$ such that $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_1$.
Let $N = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in} T \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} A\class{latex-symbol-tip latex-symbol-id-in}{\in} M. A = Y\inter U\}$.
$N\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Definition 1.
For all $x$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{M}$ iff $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter\unions{N}$ by Axiom 4, Definition 1, Definition 5, Definition 146, Proposition 61.
Thus $\unions{M} = Y\inter\unions{N}$ and $\unions{M}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ by Axiom 1 [Set extensionality], Definition 101, Definition 146.

Claim: For all $A,B$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ and $B\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ we have $A\inter B\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.

Fix $A$.
Fix $B$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ and $B\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.
Take $U,V\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $A = Y\inter U$ and $B = Y\inter V$ by Definition 146.
For all $x$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A\inter B$ iff $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter (U\inter V)$ by Definition 5, Proposition 61.
Thus $A\inter B = Y\inter (U\inter V)$ and $A\inter B\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ by Axiom 1 [Set extensionality], Definition 101, Definition 146.

$T_1$ is closed under arbitrary unions and closed under binary intersections.
Therefore $T_1$ is a topology on $Y$ by Definition 101.

LaTeX source
\begin{proof}
    Let $T_1 = \subspaceTopology{T}{Y}$.
    $T_1\subseteq\pow{Y}$ by \cref{subspace_topology,inter_lower_left,powerset_intro,subseteq}.
    Show that $\emptyset\in T_1$ and $Y\in T_1$.
    \begin{subproof}
        Follows by \cref{topology_on,inter_emptyset,inter_absorb_supseteq_right,subspace_topology}.
    \end{subproof}
    Show that for all $M$ such that $M\subseteq T_1$ we have $\unions{M}\in T_1$.
    \begin{subproof}
        Fix $M$ such that $M\subseteq T_1$.
        Let $N = \{U\in T \mid \exists A\in M. A = Y\inter U\}$.
        $N\subseteq T$ by \cref{subseteq}.
        For all $x$ we have $x\in\unions{M}$ iff $x\in Y\inter\unions{N}$
            by \cref{unions_iff,subseteq,subspace_topology,inter,inter_intro}.
        Thus $\unions{M} = Y\inter\unions{N}$ and $\unions{M}\in T_1$
            by \cref{setext,topology_on,subspace_topology}.
    \end{subproof}
    Show that for all $A,B$ such that $A\in T_1$ and $B\in T_1$ we have $A\inter B\in T_1$.
    \begin{subproof}
        Fix $A$.
        Fix $B$ such that $A\in T_1$ and $B\in T_1$.
        Take $U,V\in T$ such that $A = Y\inter U$ and $B = Y\inter V$ by \cref{subspace_topology}.
        For all $x$ we have $x\in A\inter B$ iff $x\in Y\inter (U\inter V)$ by \cref{inter,inter_intro}.
        Thus $A\inter B = Y\inter (U\inter V)$ and $A\inter B\in T_1$
            by \cref{setext,topology_on,subspace_topology}.
    \end{subproof}
    $T_1$ is closed under arbitrary unions and closed under binary intersections.
    Therefore $T_1$ is a topology on $Y$ by \cref{topology_on}.
\end{proof}
Lemma 132
subspace_basis

Assume $B$ is a basis for $T$ on $X$.
Assume $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Let $C = \{A\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{Y} \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B. A = B_1\inter Y\}$.
Then $C$ is a basis for $\subspaceTopology{T}{Y}$ on $Y$.

LaTeX source
\begin{lemma}
\label{subspace_basis}
    Assume $B$ is a basis for $T$ on $X$.
    Assume $Y\subseteq X$.
    Let $C = \{A\in\pow{Y} \mid \exists B_1\in B. A = B_1\inter Y\}$.
    Then $C$ is a basis for $\subspaceTopology{T}{Y}$ on $Y$.
\end{lemma}
Proof

Let $T_1 = \subspaceTopology{T}{Y}$.
$B$ is a basis on $X$ and $T = \basisTopology{B}{X}$ and $T_1$ is a topology on $Y$ by Definition 115, Lemma 76, Lemma 131.
For all $C_1$ such that $C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $C_1$ is open in $Y$ with respect to $T_1$ by Definition 1, Definition 103, Definition 115, Definition 146, Lemma 77, Proposition 65 [Commutativity of intersection].

Claim: For all $U,x$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_1$ and $C_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.

Fix $U$.
Fix $x$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Take $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $U = Y\inter U_1$ by Definition 146.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1$ by Definition 5.
Take $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $x\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, Definition 115.
Let $C_1 = B_1\inter Y$.
Thus $C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_1$ and $C_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Proposition 6, Proposition 61, Proposition 72, Proposition 73, Proposition 74.

$C$ is a basis for $T_1$ on $Y$ by Lemma 79.

LaTeX source
\begin{proof}
    Let $T_1 = \subspaceTopology{T}{Y}$.
    $B$ is a basis on $X$ and $T = \basisTopology{B}{X}$ and $T_1$ is a topology on $Y$
        by \cref{basis_for_topology,basis_topology_is_topology,subspace_topology_is_topology}.
    For all $C_1$ such that $C_1\in C$ we have $C_1$ is open in $Y$ with respect to $T_1$
        by \cref{subseteq,basis_elem_open_in_generated,basis_for_topology,inter_comm,subspace_topology,open_in}.
    Show that for all $U,x$ such that $U\in T_1$ and $x\in U$
        there exists $C_1\in C$ such that $x\in C_1$ and $C_1\subseteq U$.
    \begin{subproof}
        Fix $U$.
        Fix $x$ such that $U\in T_1$ and $x\in U$.
        Take $U_1\in T$ such that $U = Y\inter U_1$ by \cref{subspace_topology}.
        $x\in Y$ and $x\in U_1$ by \cref{inter}.
        Take $B_1\in B$ such that $x\in B_1$ and $B_1\subseteq U_1$
            by \cref{basis_for_topology,topology_generated_by_basis}.
        Let $C_1 = B_1\inter Y$.
        Thus $C_1\in C$.
        $x\in C_1$ and $C_1\subseteq U$
            by \cref{inter_intro,inter_lower_left,subseteq_transitive,inter_lower_right,subseteq_inter_iff}.
    \end{subproof}
    $C$ is a basis for $T_1$ on $Y$ by \cref{open_collection_basis}.
\end{proof}
Lemma 133
open_in_subspace_open_in_space

Assume $Y$ is a subspace of $X$ with respect to $T$.
Assume $U$ is open in $Y$ with respect to $\subspaceTopology{T}{Y}$.
Assume $Y$ is open in $X$ with respect to $T$.
Then $U$ is open in $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{open_in_subspace_open_in_space}
    Assume $Y$ is a subspace of $X$ with respect to $T$.
    Assume $U$ is open in $Y$ with respect to $\subspaceTopology{T}{Y}$.
    Assume $Y$ is open in $X$ with respect to $T$.
    Then $U$ is open in $X$ with respect to $T$.
\end{lemma}
Proof

Take $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $U = Y\inter V$ by Definition 103, Definition 146, Definition 147.
$U$ is open in $X$ with respect to $T$ by Definition 101, Definition 103.

LaTeX source
\begin{proof}
    Take $V\in T$ such that $U = Y\inter V$ by \cref{subspace_of,open_in,subspace_topology}.
    $U$ is open in $X$ with respect to $T$ by \cref{topology_on,open_in}.
\end{proof}
Theorem 6
subspace_product_topology

Assume $A$ is a subspace of $X$ with respect to $T$.
Assume $B$ is a subspace of $Y$ with respect to $T_1$.
Then $\productTopology{\subspaceTopology{T}{A}}{\subspaceTopology{T_1}{B}}{A}{B} = \subspaceTopology{\productTopology{T}{T_1}{X}{Y}}{A\class{latex-symbol-tip latex-symbol-id-times}{\times} B}$.

LaTeX source
\begin{theorem}
\label{subspace_product_topology}
    Assume $A$ is a subspace of $X$ with respect to $T$.
    Assume $B$ is a subspace of $Y$ with respect to $T_1$.
    Then $\productTopology{\subspaceTopology{T}{A}}{\subspaceTopology{T_1}{B}}{A}{B}
        = \subspaceTopology{\productTopology{T}{T_1}{X}{Y}}{A\times B}$.
\end{theorem}
Proof

Let $T_A = \subspaceTopology{T}{A}$.
Let $T_B = \subspaceTopology{T_1}{B}$.
Let $T_2 = \productTopology{T}{T_1}{X}{Y}$.
Let $T_3 = \subspaceTopology{T_2}{A\class{latex-symbol-tip latex-symbol-id-times}{\times} B}$.
Let $C = \productBasis{T_A}{T_B}{A}{B}$.
$T$ is a topology on $X$ and $T_1$ is a topology on $Y$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and $T_A$ is a topology on $A$ and $T_B$ is a topology on $B$ by Definition 147, Lemma 131.
$\productBasis{T}{T_1}{X}{Y}$ is a basis on $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $T_2$ is a topology on $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Definition 141, Lemma 76, Lemma 126.
$T_3$ is a topology on $A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ by Lemma 131, Proposition 6, Proposition 143, Proposition 144.

Claim: For all $C_1$ such that $C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $C_1$ is open in $A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ with respect to $T_3$.

Fix $C_1$ such that $C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
Take $U_A, V_B$ such that $U_A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_A$ and $V_B\class{latex-symbol-tip latex-symbol-id-in}{\in} T_B$ and $C_1 = U_A\class{latex-symbol-tip latex-symbol-id-times}{\times} V_B$ by Definition 140.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $U_A = A\inter U$ by Definition 146.
Take $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ such that $V_B = B\inter V$ by Definition 146.
$U\class{latex-symbol-tip latex-symbol-id-times}{\times} V\class{latex-symbol-tip latex-symbol-id-in}{\in} T_2$ by Definition 1, Definition 101, Definition 140, Definition 141, Lemma 77, Lemma 126, Proposition 6, Proposition 143, Proposition 144, Proposition 155, Proposition 156.
Thus $C_1 = (A\class{latex-symbol-tip latex-symbol-id-times}{\times} B)\inter(U\class{latex-symbol-tip latex-symbol-id-times}{\times} V)$ by Proposition 147.
$C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T_3$ by Definition 146.
$C_1$ is open in $A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ with respect to $T_3$ by Definition 103.

Claim: For all $U,p$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_3$ and $p\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} C_1$ and $C_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.

Fix $U$.
Fix $p$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_3$ and $p\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Take $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T_2$ such that $U = (A\class{latex-symbol-tip latex-symbol-id-times}{\times} B)\inter W$ by Definition 146.
Thus $p\class{latex-symbol-tip latex-symbol-id-in}{\in} A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ and $p\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ by Definition 5.
Take $W_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\productBasis{T}{T_1}{X}{Y}$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} W_1$ and $W_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$ by Definition 114, Definition 115, Definition 141, Lemma 126.
Take $U_1, V_1$ such that $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ and $V_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ and $W_1 = U_1\class{latex-symbol-tip latex-symbol-id-times}{\times} V_1$ by Definition 140.
Let $U_A = A\inter U_1$.
Let $V_B = B\inter V_1$.
$U_A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_A$ and $V_B\class{latex-symbol-tip latex-symbol-id-in}{\in} T_B$ by Definition 146.
Let $C_1 = U_A\class{latex-symbol-tip latex-symbol-id-times}{\times} V_B$.
Thus $C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Definition 1, Definition 101, Definition 140, Proposition 6, Proposition 143, Proposition 144, Proposition 155, Proposition 156.
Take $a,b$ such that $p = (a,b)$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Proposition 121.
Take $a_1,b_1$ such that $p = (a_1,b_1)$ and $a_1\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1$ and $b_1\class{latex-symbol-tip latex-symbol-id-in}{\in} V_1$ by Proposition 121.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} C_1$ and $C_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Axiom 6, Definition 7, Proposition 6, Proposition 61, Proposition 72, Proposition 73, Proposition 74, Proposition 147.

$C$ is a basis for $T_3$ on $A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ and $T_3 = \basisTopology{C}{A\class{latex-symbol-tip latex-symbol-id-times}{\times} B}$ by Definition 115, Lemma 79.
$\productTopology{T_A}{T_B}{A}{B} = T_3$ by Definition 141.

LaTeX source
\begin{proof}
    Let $T_A = \subspaceTopology{T}{A}$.
    Let $T_B = \subspaceTopology{T_1}{B}$.
    Let $T_2 = \productTopology{T}{T_1}{X}{Y}$.
    Let $T_3 = \subspaceTopology{T_2}{A\times B}$.
    Let $C = \productBasis{T_A}{T_B}{A}{B}$.
    $T$ is a topology on $X$ and $T_1$ is a topology on $Y$ and
        $A\subseteq X$ and $B\subseteq Y$ and
        $T_A$ is a topology on $A$ and $T_B$ is a topology on $B$
        by \cref{subspace_of,subspace_topology_is_topology}.
    $\productBasis{T}{T_1}{X}{Y}$ is a basis on $X\times Y$ and $T_2$ is a topology on $X\times Y$
        by \cref{product_basis_is_basis,basis_topology_is_topology,product_topology}.
    $T_3$ is a topology on $A\times B$
        by \cref{times_subseteq_left,times_subseteq_right,subseteq_transitive,subspace_topology_is_topology}.
    Show that for all $C_1$ such that $C_1\in C$ we have $C_1$ is open in $A\times B$ with respect to $T_3$.
    \begin{subproof}
        Fix $C_1$ such that $C_1\in C$.
        Take $U_A, V_B$ such that $U_A\in T_A$ and $V_B\in T_B$ and $C_1 = U_A\times V_B$ by \cref{product_basis}.
        Take $U\in T$ such that $U_A = A\inter U$ by \cref{subspace_topology}.
        Take $V\in T_1$ such that $V_B = B\inter V$ by \cref{subspace_topology}.
        $U\times V\in T_2$
            by \cref{topology_on,subseteq,powerset_elim,times_subseteq_left,times_subseteq_right,subseteq_transitive,powerset_intro,product_basis,basis_elem_open_in_generated,product_basis_is_basis,product_topology}.
        Thus $C_1 = (A\times B)\inter(U\times V)$ by \cref{inter_times}.
        $C_1\in T_3$ by \cref{subspace_topology}.
        $C_1$ is open in $A\times B$ with respect to $T_3$ by \cref{open_in}.
    \end{subproof}
    Show that for all $U,p$ such that $U\in T_3$ and $p\in U$
        there exists $C_1\in C$ such that $p\in C_1$ and $C_1\subseteq U$.
    \begin{subproof}
        Fix $U$.
        Fix $p$ such that $U\in T_3$ and $p\in U$.
        Take $W\in T_2$ such that $U = (A\times B)\inter W$ by \cref{subspace_topology}.
        Thus $p\in A\times B$ and $p\in W$ by \cref{inter}.
        Take $W_1\in\productBasis{T}{T_1}{X}{Y}$ such that $p\in W_1$ and $W_1\subseteq W$
            by \cref{product_basis_is_basis,basis_for_topology,product_topology,topology_generated_by_basis}.
        Take $U_1, V_1$ such that $U_1\in T$ and $V_1\in T_1$ and $W_1 = U_1\times V_1$ by \cref{product_basis}.
        Let $U_A = A\inter U_1$.
        Let $V_B = B\inter V_1$.
        $U_A\in T_A$ and $V_B\in T_B$ by \cref{subspace_topology}.
        Let $C_1 = U_A\times V_B$.
        Thus $C_1\in C$
            by \cref{topology_on,subseteq,powerset_elim,times_subseteq_left,times_subseteq_right,subseteq_transitive,powerset_intro,product_basis}.
        Take $a,b$ such that $p = (a,b)$ and $a\in A$ and $b\in B$ by \cref{times_elem_is_tuple}.
        Take $a_1,b_1$ such that $p = (a_1,b_1)$ and $a_1\in U_1$ and $b_1\in V_1$ by \cref{times_elem_is_tuple}.
        $p\in C_1$ and $C_1\subseteq U$
            by \cref{pair_eq_iff,inter_intro,times,inter_times,inter_lower_left,inter_lower_right,subseteq_transitive,subseteq_inter_iff}.
    \end{subproof}
    $C$ is a basis for $T_3$ on $A\times B$ and $T_3 = \basisTopology{C}{A\times B}$
        by \cref{open_collection_basis,basis_for_topology}.
    $\productTopology{T_A}{T_B}{A}{B} = T_3$ by \cref{product_topology}.
\end{proof}
Definition 148
convex_in

$Y$ is convex in $X$ with respect to $R$ iff $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and for all $a,b$ such that $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\mathrel{R}b$ for all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $a\mathrel{R}x$ and $x\mathrel{R}b$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.

LaTeX source
\begin{definition}
\label{convex_in}
    $Y$ is convex in $X$ with respect to $R$ iff
    $Y\subseteq X$ and
    for all $a,b$ such that $a\in Y$ and $b\in Y$ and $a\mathrel{R}b$
        for all $x$ such that $x\in X$ and $a\mathrel{R}x$ and $x\mathrel{R}b$ we have $x\in Y$.
\end{definition}
Lemma 134
convex_outside_left

Assume $Y$ is convex in $X$ with respect to $R$.
Assume $R$ is a simple order relation on $X$.
Suppose $c\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $c\class{latex-symbol-tip latex-symbol-id-notin}{\notin} Y$.
Suppose $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $c\mathrel{R}y_0$.
Then for all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $c\mathrel{R}y$.

LaTeX source
\begin{lemma}
\label{convex_outside_left}
    Assume $Y$ is convex in $X$ with respect to $R$.
    Assume $R$ is a simple order relation on $X$.
    Suppose $c\in X$ and $c\notin Y$.
    Suppose $y_0\in Y$ and $c\mathrel{R}y_0$.
    Then for all $y$ such that $y\in Y$ we have $c\mathrel{R}y$.
\end{lemma}
Proof

Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.
Suppose not.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-neq}{\neq} c$ by Definition 1, Definition 148.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Definition 37 [Transitivity], Definition 40, Definition 98, Definition 148.
Contradiction.

LaTeX source
\begin{proof}
    Fix $y$ such that $y\in Y$.
    Suppose not.
    $y\in X$ and $y\neq c$ by \cref{convex_in,subseteq}.
    $c\in Y$ by \cref{convex_in,subseteq,simple_order_relation,connex,transitive}.
    Contradiction.
\end{proof}
Lemma 135
convex_outside_right

Assume $Y$ is convex in $X$ with respect to $R$.
Assume $R$ is a simple order relation on $X$.
Suppose $c\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $c\class{latex-symbol-tip latex-symbol-id-notin}{\notin} Y$.
Suppose $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $y_0\mathrel{R}c$.
Then for all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $y\mathrel{R}c$.

LaTeX source
\begin{lemma}
\label{convex_outside_right}
    Assume $Y$ is convex in $X$ with respect to $R$.
    Assume $R$ is a simple order relation on $X$.
    Suppose $c\in X$ and $c\notin Y$.
    Suppose $y_0\in Y$ and $y_0\mathrel{R}c$.
    Then for all $y$ such that $y\in Y$ we have $y\mathrel{R}c$.
\end{lemma}
Proof

Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.
Suppose not.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-neq}{\neq} c$ by Definition 1, Definition 148.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Definition 37 [Transitivity], Definition 40, Definition 98, Definition 148.
Contradiction.

LaTeX source
\begin{proof}
    Fix $y$ such that $y\in Y$.
    Suppose not.
    $y\in X$ and $y\neq c$ by \cref{convex_in,subseteq}.
    $c\in Y$ by \cref{convex_in,subseteq,simple_order_relation,connex,transitive}.
    Contradiction.
\end{proof}
Lemma 136
openrayright_restrict

Suppose $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.
Then $\openrayright{R}{Y}{a} = Y\inter\openrayright{R}{X}{a}$.

LaTeX source
\begin{lemma}
\label{openrayright_restrict}
    Suppose $Y\subseteq X$.
    Suppose $a\in Y$.
    Then $\openrayright{R}{Y}{a} = Y\inter\openrayright{R}{X}{a}$.
\end{lemma}
Proof

Follows by Axiom 1 [Set extensionality], Definition 1, Definition 5, Definition 135.

LaTeX source
\begin{proof}
    Follows by \cref{openray_right,inter,subseteq,setext}.
\end{proof}
Lemma 137
openrayleft_restrict

Suppose $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.
Then $\openrayleft{R}{Y}{a} = Y\inter\openrayleft{R}{X}{a}$.

LaTeX source
\begin{lemma}
\label{openrayleft_restrict}
    Suppose $Y\subseteq X$.
    Suppose $a\in Y$.
    Then $\openrayleft{R}{Y}{a} = Y\inter\openrayleft{R}{X}{a}$.
\end{lemma}
Proof

Follows by Axiom 1 [Set extensionality], Definition 1, Definition 5, Definition 136.

LaTeX source
\begin{proof}
    Follows by \cref{openray_left,inter,subseteq,setext}.
\end{proof}
Theorem 7
convex_order_subspace_topology

Assume $T$ is the order topology on $X$ with respect to $R$.
Assume $Y$ is convex in $X$ with respect to $R$.
Assume $R$ is a simple order relation on $Y$.
Assume $Y$ has more than one element.
Then $\basisTopology{\orderBasis{R}{Y}}{Y} = \subspaceTopology{T}{Y}$.

LaTeX source
\begin{theorem}
\label{convex_order_subspace_topology}
    Assume $T$ is the order topology on $X$ with respect to $R$.
    Assume $Y$ is convex in $X$ with respect to $R$.
    Assume $R$ is a simple order relation on $Y$.
    Assume $Y$ has more than one element.
    Then $\basisTopology{\orderBasis{R}{Y}}{Y} = \subspaceTopology{T}{Y}$.
\end{theorem}
Proof

Let $T_Y = \basisTopology{\orderBasis{R}{Y}}{Y}$.
Let $T_S = \subspaceTopology{T}{Y}$.
Let $S_Y = \openRays{R}{Y}$.
Let $S_X = \openRays{R}{X}$.
$R$ is a simple order relation on $X$ and $X$ has more than one element and $T = \basisTopology{\orderBasis{R}{X}}{X}$ by Definition 134.
$Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 148.
$R$ is a simple order relation on $Y$ and $Y$ has more than one element.
$\orderBasis{R}{X}$ is a basis on $X$ and $\orderBasis{R}{X}$ is a basis for $T$ on $X$ by Definition 115, Definition 134, Lemma 113.
$T$ is a topology on $X$ and $T_S$ is a topology on $Y$ by Lemma 76, Lemma 131.
$\orderBasis{R}{Y}$ is a basis on $Y$ and $T_Y$ is a topology on $Y$ and $T_Y$ is the order topology on $Y$ with respect to $R$ by Definition 134, Lemma 76, Lemma 113.

Claim: $\subbasisTopology{S_Y}{Y} = T_Y$ and $\subbasisTopology{S_X}{X} = T$.

Follows by Lemma 125.

Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S_X$ we have $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S_Y$ we have $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S_Y$ we have $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_S$.

Fix $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S_Y$.
Take $a\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ such that $U = \openrayright{R}{Y}{a}$ or $U = \openrayleft{R}{Y}{a}$ by Definition 139.

Case. $U = \openrayright{R}{Y}{a}$.

Let $U_1 = \openrayright{R}{X}{a}$.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
Thus $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} S_X$ and $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 1, Definition 135, Definition 139, Proposition 155.
$U = Y\inter U_1$ by Lemma 136.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_S$ by Definition 146.

Case. $U = \openrayleft{R}{Y}{a}$.

Let $U_1 = \openrayleft{R}{X}{a}$.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
Hence $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} S_X$ and $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 1, Definition 136, Definition 139, Proposition 155.
$U = Y\inter U_1$ by Lemma 137.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_S$ by Definition 146.

LaTeX source
\begin{byCase}
        \caseOf{$U = \openrayright{R}{Y}{a}$.}
            Let $U_1 = \openrayright{R}{X}{a}$.
            $a\in X$ by \cref{subseteq}.
            Thus $U_1\in S_X$ and $U_1\in T$ by \cref{openray_right,subseteq,powerset_intro,open_rays}.
            $U = Y\inter U_1$ by \cref{openrayright_restrict}.
            $U\in T_S$ by \cref{subspace_topology}.
        \caseOf{$U = \openrayleft{R}{Y}{a}$.}
            Let $U_1 = \openrayleft{R}{X}{a}$.
            $a\in X$ by \cref{subseteq}.
            Hence $U_1\in S_X$ and $U_1\in T$ by \cref{openray_left,subseteq,powerset_intro,open_rays}.
            $U = Y\inter U_1$ by \cref{openrayleft_restrict}.
            $U\in T_S$ by \cref{subspace_topology}.
        
\end{byCase}

For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ there exists $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\finiteIntersections{S_Y}$ such that $U = \unions{M}$ by Definition 115, Definition 126, Lemma 78, Lemma 99, Lemma 117.
For all $B$ such that $B\class{latex-symbol-tip latex-symbol-id-in}{\in}\finiteIntersections{S_Y}$ we have $B\class{latex-symbol-tip latex-symbol-id-in}{\in} T_S$ by Definition 1, Definition 125, Lemma 124.

Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ we have $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_S$.

$T_Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_S$ by Definition 1.

Claim: For all $c\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $Y\inter\openrayright{R}{X}{c}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$.

Fix $c$ such that $c\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.

Case. $c\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.

$Y\inter\openrayright{R}{X}{c} = \openrayright{R}{Y}{c}$ by Definition 1, Definition 5, Definition 135, Proposition 3, Proposition 61.
$Y\inter\openrayright{R}{X}{c}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ by Definition 1, Definition 135, Definition 139, Proposition 155.

Case. $c\class{latex-symbol-tip latex-symbol-id-notin}{\notin} Y$.

Take $y_0, y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ such that $y_0\class{latex-symbol-tip latex-symbol-id-neq}{\neq} y_1$ by Definition 127.
$y_0\class{latex-symbol-tip latex-symbol-id-neq}{\neq} c$ and $(c\mathrel{R}y_0 \class{latex-symbol-tip latex-symbol-id-lor}{\lor} y_0\mathrel{R}c)$ by Definition 1, Definition 40, Definition 98.

Case. $c\mathrel{R}y_0$.

For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $c\mathrel{R}y$ by Lemma 134.
Thus $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \openrayright{R}{X}{c}$ by Definition 1, Definition 135, Proposition 4.
$Y\inter\openrayright{R}{X}{c}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ by Definition 101, Proposition 69.

Case. $y_0\mathrel{R}c$.

For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $y\mathrel{R}c$ by Lemma 135.

Claim: $Y\inter\openrayright{R}{X}{c} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

Suppose not.
Take $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter\openrayright{R}{X}{c}$ by Proposition 10.
$c\mathrel{R}x$ and $x\mathrel{R}c$ by Definition 5, Definition 135.
Contradiction by Definition 36, Definition 98.

Therefore $Y\inter\openrayright{R}{X}{c}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ by Definition 101.

LaTeX source
\begin{byCase}
            \caseOf{$c\mathrel{R}y_0$.}
                For all $y$ such that $y\in Y$ we have $c\mathrel{R}y$
                    by \cref{convex_outside_left}.
                Thus $Y\subseteq \openrayright{R}{X}{c}$ by \cref{subseteq,elem_subseteq,openray_right}.
                $Y\inter\openrayright{R}{X}{c}\in T_Y$ by \cref{inter_absorb_supseteq_right,topology_on}.
            \caseOf{$y_0\mathrel{R}c$.}
                For all $y$ such that $y\in Y$ we have $y\mathrel{R}c$
                    by \cref{convex_outside_right}.
                Show that $Y\inter\openrayright{R}{X}{c} = \emptyset$.
                \begin{subproof}
                    Suppose not.
                    Take $x$ such that $x\in Y\inter\openrayright{R}{X}{c}$ by \cref{nonempty_inhabited}.
                    $c\mathrel{R}x$ and $x\mathrel{R}c$ by \cref{inter,openray_right}.
                    Contradiction by \cref{simple_order_relation,asymmetric}.
                \end{subproof}
                Therefore $Y\inter\openrayright{R}{X}{c}\in T_Y$ by \cref{topology_on}.
            
\end{byCase}
LaTeX source
\begin{byCase}
        \caseOf{$c\in Y$.}
            $Y\inter\openrayright{R}{X}{c} = \openrayright{R}{Y}{c}$
                by \cref{inter,openray_right,subseteq,inter_intro,subseteq_antisymmetric}.
            $Y\inter\openrayright{R}{X}{c}\in T_Y$
                by \cref{openray_right,subseteq,powerset_intro,open_rays}.
            \caseOf{$c\notin Y$.}
                Take $y_0, y_1\in Y$ such that $y_0\neq y_1$ by \cref{more_than_one_element}.
                $y_0\neq c$ and $(c\mathrel{R}y_0 \lor y_0\mathrel{R}c)$
                    by \cref{subseteq,simple_order_relation,connex}.
            \begin{byCase}
            \caseOf{$c\mathrel{R}y_0$.}
                For all $y$ such that $y\in Y$ we have $c\mathrel{R}y$
                    by \cref{convex_outside_left}.
                Thus $Y\subseteq \openrayright{R}{X}{c}$ by \cref{subseteq,elem_subseteq,openray_right}.
                $Y\inter\openrayright{R}{X}{c}\in T_Y$ by \cref{inter_absorb_supseteq_right,topology_on}.
            \caseOf{$y_0\mathrel{R}c$.}
                For all $y$ such that $y\in Y$ we have $y\mathrel{R}c$
                    by \cref{convex_outside_right}.
                Show that $Y\inter\openrayright{R}{X}{c} = \emptyset$.
                \begin{subproof}
                    Suppose not.
                    Take $x$ such that $x\in Y\inter\openrayright{R}{X}{c}$ by \cref{nonempty_inhabited}.
                    $c\mathrel{R}x$ and $x\mathrel{R}c$ by \cref{inter,openray_right}.
                    Contradiction by \cref{simple_order_relation,asymmetric}.
                \end{subproof}
                Therefore $Y\inter\openrayright{R}{X}{c}\in T_Y$ by \cref{topology_on}.
            \end{byCase}
        
\end{byCase}
Claim: For all $c\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $Y\inter\openrayleft{R}{X}{c}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$.

Fix $c$ such that $c\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.

Case. $c\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.

$Y\inter\openrayleft{R}{X}{c} = \openrayleft{R}{Y}{c}$ by Definition 1, Definition 5, Definition 136, Proposition 3, Proposition 61.
$Y\inter\openrayleft{R}{X}{c}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ by Definition 1, Definition 136, Definition 139, Proposition 155.

Case. $c\class{latex-symbol-tip latex-symbol-id-notin}{\notin} Y$.

Take $y_0, y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ such that $y_0\class{latex-symbol-tip latex-symbol-id-neq}{\neq} y_1$ by Definition 127.
$y_0\class{latex-symbol-tip latex-symbol-id-neq}{\neq} c$ and $(c\mathrel{R}y_0 \class{latex-symbol-tip latex-symbol-id-lor}{\lor} y_0\mathrel{R}c)$ by Definition 1, Definition 40, Definition 98.

Case. $y_0\mathrel{R}c$.

For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $y\mathrel{R}c$ by Lemma 135.
Hence $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \openrayleft{R}{X}{c}$ by Definition 1, Definition 136, Proposition 4.
$Y\inter\openrayleft{R}{X}{c}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ by Definition 101, Proposition 69.

Case. $c\mathrel{R}y_0$.

For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $c\mathrel{R}y$ by Lemma 134.

Claim: $Y\inter\openrayleft{R}{X}{c} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

Suppose not.
Take $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter\openrayleft{R}{X}{c}$ by Proposition 10.
$x\mathrel{R}c$ and $c\mathrel{R}x$ by Definition 5, Definition 136.
Contradiction by Definition 36, Definition 98.

Therefore $Y\inter\openrayleft{R}{X}{c}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ by Definition 101.

LaTeX source
\begin{byCase}
            \caseOf{$y_0\mathrel{R}c$.}
                For all $y$ such that $y\in Y$ we have $y\mathrel{R}c$
                    by \cref{convex_outside_right}.
                Hence $Y\subseteq \openrayleft{R}{X}{c}$ by \cref{subseteq,elem_subseteq,openray_left}.
                $Y\inter\openrayleft{R}{X}{c}\in T_Y$ by \cref{inter_absorb_supseteq_right,topology_on}.
            \caseOf{$c\mathrel{R}y_0$.}
                For all $y$ such that $y\in Y$ we have $c\mathrel{R}y$
                    by \cref{convex_outside_left}.
                Show that $Y\inter\openrayleft{R}{X}{c} = \emptyset$.
                \begin{subproof}
                    Suppose not.
                    Take $x$ such that $x\in Y\inter\openrayleft{R}{X}{c}$ by \cref{nonempty_inhabited}.
                    $x\mathrel{R}c$ and $c\mathrel{R}x$ by \cref{inter,openray_left}.
                    Contradiction by \cref{simple_order_relation,asymmetric}.
                \end{subproof}
                Therefore $Y\inter\openrayleft{R}{X}{c}\in T_Y$ by \cref{topology_on}.
            
\end{byCase}
LaTeX source
\begin{byCase}
        \caseOf{$c\in Y$.}
            $Y\inter\openrayleft{R}{X}{c} = \openrayleft{R}{Y}{c}$
                by \cref{inter,openray_left,subseteq,inter_intro,subseteq_antisymmetric}.
            $Y\inter\openrayleft{R}{X}{c}\in T_Y$
                by \cref{openray_left,subseteq,powerset_intro,open_rays}.
        \caseOf{$c\notin Y$.}
            Take $y_0, y_1\in Y$ such that $y_0\neq y_1$ by \cref{more_than_one_element}.
            $y_0\neq c$ and $(c\mathrel{R}y_0 \lor y_0\mathrel{R}c)$
                by \cref{subseteq,simple_order_relation,connex}.
            \begin{byCase}
            \caseOf{$y_0\mathrel{R}c$.}
                For all $y$ such that $y\in Y$ we have $y\mathrel{R}c$
                    by \cref{convex_outside_right}.
                Hence $Y\subseteq \openrayleft{R}{X}{c}$ by \cref{subseteq,elem_subseteq,openray_left}.
                $Y\inter\openrayleft{R}{X}{c}\in T_Y$ by \cref{inter_absorb_supseteq_right,topology_on}.
            \caseOf{$c\mathrel{R}y_0$.}
                For all $y$ such that $y\in Y$ we have $c\mathrel{R}y$
                    by \cref{convex_outside_left}.
                Show that $Y\inter\openrayleft{R}{X}{c} = \emptyset$.
                \begin{subproof}
                    Suppose not.
                    Take $x$ such that $x\in Y\inter\openrayleft{R}{X}{c}$ by \cref{nonempty_inhabited}.
                    $x\mathrel{R}c$ and $c\mathrel{R}x$ by \cref{inter,openray_left}.
                    Contradiction by \cref{simple_order_relation,asymmetric}.
                \end{subproof}
                Therefore $Y\inter\openrayleft{R}{X}{c}\in T_Y$ by \cref{topology_on}.
            \end{byCase}
        
\end{byCase}
Claim: For all $B$ such that $B\class{latex-symbol-tip latex-symbol-id-in}{\in}\orderBasis{R}{X}$ we have $Y\inter B\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$.

Fix $B$ such that $B\class{latex-symbol-tip latex-symbol-id-in}{\in}\orderBasis{R}{X}$.
$((\class{latex-symbol-tip latex-symbol-id-exists}{\exists} a, b\class{latex-symbol-tip latex-symbol-id-in}{\in} X. a\mathrel{R}b \class{latex-symbol-tip latex-symbol-id-land}{\land} B = \intervalopenrel{R}{X}{a}{b}) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (\class{latex-symbol-tip latex-symbol-id-exists}{\exists} b\class{latex-symbol-tip latex-symbol-id-in}{\in} X. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} a_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X. (\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} X. a_0\mathrel{R}x \class{latex-symbol-tip latex-symbol-id-lor}{\lor} a_0 = x) \class{latex-symbol-tip latex-symbol-id-land}{\land} B = \intervalclosedopenrel{R}{X}{a_0}{b}) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (\class{latex-symbol-tip latex-symbol-id-exists}{\exists} a\class{latex-symbol-tip latex-symbol-id-in}{\in} X. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} b_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X. (\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} X. x\mathrel{R}b_0 \class{latex-symbol-tip latex-symbol-id-lor}{\lor} x = b_0) \class{latex-symbol-tip latex-symbol-id-land}{\land} B = \intervalopenclosedrel{R}{X}{a}{b_0}))$ by Definition 133.

Case. $\class{latex-symbol-tip latex-symbol-id-exists}{\exists} a, b\class{latex-symbol-tip latex-symbol-id-in}{\in} X. a\mathrel{R}b \class{latex-symbol-tip latex-symbol-id-land}{\land} B = \intervalopenrel{R}{X}{a}{b}$.

Take $a, b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $a\mathrel{R}b$ and $B = \intervalopenrel{R}{X}{a}{b}$.
$B = \openrayright{R}{X}{a} \inter \openrayleft{R}{X}{b}$ by Lemma 114.
$Y\inter\openrayright{R}{X}{a}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ and $Y\inter\openrayleft{R}{X}{b}\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ and $T_Y$ is closed under binary intersections by Definition 101.

Claim: $Y\inter B = (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter B$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter B$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 5.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} \openrayright{R}{X}{a} \inter \openrayleft{R}{X}{b}$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\openrayright{R}{X}{a}$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\openrayleft{R}{X}{b}$ by Definition 5.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter\openrayright{R}{X}{a}$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter\openrayleft{R}{X}{b}$ by Proposition 61.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$ by Proposition 61.

$Y\inter B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$ by Definition 1.

Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter B$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter\openrayright{R}{X}{a}$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter\openrayleft{R}{X}{b}$ by Definition 5.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\openrayright{R}{X}{a}$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\openrayleft{R}{X}{b}$ by Definition 5.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} \openrayright{R}{X}{a} \inter \openrayleft{R}{X}{b}$ by Proposition 61.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter B$ by Proposition 61.

$(Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y\inter B$ by Definition 1.
$Y\inter B = (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$ by Proposition 3.

Hence $Y\inter B\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ by Definition 101, Proposition 3.

Case. $\class{latex-symbol-tip latex-symbol-id-exists}{\exists} b\class{latex-symbol-tip latex-symbol-id-in}{\in} X. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} a_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X. (\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} X. a_0\mathrel{R}x \class{latex-symbol-tip latex-symbol-id-lor}{\lor} a_0 = x) \class{latex-symbol-tip latex-symbol-id-land}{\land} B = \intervalclosedopenrel{R}{X}{a_0}{b}$.

Take $a_0, b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $(\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} X. a_0\mathrel{R}x \class{latex-symbol-tip latex-symbol-id-lor}{\lor} a_0 = x)$ and $B = \intervalclosedopenrel{R}{X}{a_0}{b}$.
$B = \openrayleft{R}{X}{b}$ and $Y\inter B = Y\inter\openrayleft{R}{X}{b}$ by Definition 99, Lemma 115.
$Y\inter B\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$.

Case. $\class{latex-symbol-tip latex-symbol-id-exists}{\exists} a\class{latex-symbol-tip latex-symbol-id-in}{\in} X. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} b_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X. (\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} X. x\mathrel{R}b_0 \class{latex-symbol-tip latex-symbol-id-lor}{\lor} x = b_0) \class{latex-symbol-tip latex-symbol-id-land}{\land} B = \intervalopenclosedrel{R}{X}{a}{b_0}$.

Take $a, b_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $(\class{latex-symbol-tip latex-symbol-id-forall}{\forall} x\class{latex-symbol-tip latex-symbol-id-in}{\in} X. x\mathrel{R}b_0 \class{latex-symbol-tip latex-symbol-id-lor}{\lor} x = b_0)$ and $B = \intervalopenclosedrel{R}{X}{a}{b_0}$.
$B = \openrayright{R}{X}{a}$ and $Y\inter B = Y\inter\openrayright{R}{X}{a}$ by Definition 128, Lemma 116.
$Y\inter B\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$.

LaTeX source
\begin{byCase}
        \caseOf{$\exists a, b\in X. a\mathrel{R}b \land B = \intervalopenrel{R}{X}{a}{b}$.}
            Take $a, b\in X$ such that $a\mathrel{R}b$ and $B = \intervalopenrel{R}{X}{a}{b}$.
            $B = \openrayright{R}{X}{a} \inter \openrayleft{R}{X}{b}$ by \cref{intervalopenrel_as_intersection_openrays}.
            $Y\inter\openrayright{R}{X}{a}\in T_Y$ and $Y\inter\openrayleft{R}{X}{b}\in T_Y$
                and $T_Y$ is closed under binary intersections by \cref{topology_on}.
            Show that $Y\inter B = (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$.
            \begin{subproof}
                Show that for all $x$ such that $x\in Y\inter B$ we have
                    $x\in (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$.
                \begin{subproof}
                    Fix $x$ such that $x\in Y\inter B$.
                    $x\in Y$ and $x\in B$ by \cref{inter}.
                    $x\in \openrayright{R}{X}{a} \inter \openrayleft{R}{X}{b}$.
                    $x\in\openrayright{R}{X}{a}$ and $x\in\openrayleft{R}{X}{b}$ by \cref{inter}.
                    $x\in Y\inter\openrayright{R}{X}{a}$ and $x\in Y\inter\openrayleft{R}{X}{b}$ by \cref{inter_intro}.
                    $x\in (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$ by \cref{inter_intro}.
                \end{subproof}
                $Y\inter B\subseteq (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$ by \cref{subseteq}.
                Show that for all $x$ such that
                    $x\in (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$
                    we have $x\in Y\inter B$.
                \begin{subproof}
                    Fix $x$ such that $x\in (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$.
                    $x\in Y\inter\openrayright{R}{X}{a}$ and $x\in Y\inter\openrayleft{R}{X}{b}$ by \cref{inter}.
                    $x\in Y$ and $x\in\openrayright{R}{X}{a}$ and $x\in\openrayleft{R}{X}{b}$ by \cref{inter}.
                    $x\in \openrayright{R}{X}{a} \inter \openrayleft{R}{X}{b}$ by \cref{inter_intro}.
                    $x\in B$.
                    $x\in Y\inter B$ by \cref{inter_intro}.
                \end{subproof}
                $(Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})\subseteq Y\inter B$ by \cref{subseteq}.
                $Y\inter B = (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$ by \cref{subseteq_antisymmetric}.
            \end{subproof}
            Hence $Y\inter B\in T_Y$ by \cref{subseteq_antisymmetric,topology_on}.
        \caseOf{$\exists b\in X. \exists a_0\in X. (\forall x\in X. a_0\mathrel{R}x \lor a_0 = x) \land B = \intervalclosedopenrel{R}{X}{a_0}{b}$.}
            Take $a_0, b\in X$ such that
                $(\forall x\in X. a_0\mathrel{R}x \lor a_0 = x)$ and $B = \intervalclosedopenrel{R}{X}{a_0}{b}$.
            $B = \openrayleft{R}{X}{b}$ and $Y\inter B = Y\inter\openrayleft{R}{X}{b}$
                by \cref{smallest_element,intervalclosedopenrel_smallest_eq_openrayleft}.
            $Y\inter B\in T_Y$.
        \caseOf{$\exists a\in X. \exists b_0\in X. (\forall x\in X. x\mathrel{R}b_0 \lor x = b_0) \land B = \intervalopenclosedrel{R}{X}{a}{b_0}$.}
            Take $a, b_0\in X$ such that
                $(\forall x\in X. x\mathrel{R}b_0 \lor x = b_0)$ and $B = \intervalopenclosedrel{R}{X}{a}{b_0}$.
            $B = \openrayright{R}{X}{a}$ and $Y\inter B = Y\inter\openrayright{R}{X}{a}$
                by \cref{largest_element,intervalopenclosedrel_largest_eq_openrayright}.
            $Y\inter B\in T_Y$.
        
\end{byCase}
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_S$ we have $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$.

Fix $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_S$.
Take $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $U = Y\inter V$ by Definition 146.
There exists $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\orderBasis{R}{X}$ such that $V = \unions{M}$ by Lemma 78.
Let $N = \{A\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{Y} \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} B\class{latex-symbol-tip latex-symbol-id-in}{\in} M. A = Y\inter B\}$.

Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{N}$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 5.
Take $B\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Axiom 4.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter B$ by Proposition 61.
$Y\inter B\class{latex-symbol-tip latex-symbol-id-in}{\in} N$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{N}$ by Axiom 4.

$U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{N}$ by Definition 1.

Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{N}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.

$\unions{N}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1.
For all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} N$ we have $A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ by Definition 1.
Therefore $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ by Definition 1, Definition 101, Proposition 3.

$T_S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_Y$ by Definition 1.

$T_Y = T_S$ by Proposition 3.

LaTeX source
\begin{proof}
    Let $T_Y = \basisTopology{\orderBasis{R}{Y}}{Y}$.
    Let $T_S = \subspaceTopology{T}{Y}$.
    Let $S_Y = \openRays{R}{Y}$.
    Let $S_X = \openRays{R}{X}$.
    $R$ is a simple order relation on $X$ and $X$ has more than one element and
        $T = \basisTopology{\orderBasis{R}{X}}{X}$ by \cref{order_topology}.
    $Y\subseteq X$ by \cref{convex_in}.
    $R$ is a simple order relation on $Y$ and $Y$ has more than one element.
    $\orderBasis{R}{X}$ is a basis on $X$ and $\orderBasis{R}{X}$ is a basis for $T$ on $X$
        by \cref{order_basis_is_basis,basis_for_topology,order_topology}.
    $T$ is a topology on $X$ and $T_S$ is a topology on $Y$
        by \cref{basis_topology_is_topology,subspace_topology_is_topology}.
    $\orderBasis{R}{Y}$ is a basis on $Y$ and $T_Y$ is a topology on $Y$
        and $T_Y$ is the order topology on $Y$ with respect to $R$
        by \cref{order_basis_is_basis,basis_topology_is_topology,order_topology}.
    Show that $\subbasisTopology{S_Y}{Y} = T_Y$ and $\subbasisTopology{S_X}{X} = T$.
    \begin{subproof}
        Follows by \cref{open_rays_subbasis}.
    \end{subproof}

    Show that for all $U$ such that $U\in S_X$ we have $U\in T$.
    \begin{subproof}
        Follows by \cref{open_rays_subbasis_on,subbasis_on,open_rays,powerset_elim,subseteq_transitive,powerset_intro,singleton_subset_intro,pair_is_finite,upair_intro_left,subseteq_finite_is_finite,singleton_intro,inters_singleton,finite_intersections,subbasis_finite_intersections_basis,basis_elem_open_in_generated,topology_generated_by_subbasis}.
    \end{subproof}

    Show that for all $U$ such that $U\in S_Y$ we have $U\in T_Y$.
    \begin{subproof}
        Follows by \cref{open_rays_subbasis_on,subbasis_on,open_rays,powerset_elim,subseteq_transitive,powerset_intro,singleton_subset_intro,pair_is_finite,upair_intro_left,subseteq_finite_is_finite,singleton_intro,inters_singleton,finite_intersections,subbasis_finite_intersections_basis,basis_elem_open_in_generated,topology_generated_by_subbasis}.
    \end{subproof}

    Show that for all $U$ such that $U\in S_Y$ we have $U\in T_S$.
    \begin{subproof}
        Fix $U$ such that $U\in S_Y$.
        Take $a\in Y$ such that $U = \openrayright{R}{Y}{a}$ or $U = \openrayleft{R}{Y}{a}$ by \cref{open_rays}.
        \begin{byCase}
        \caseOf{$U = \openrayright{R}{Y}{a}$.}
            Let $U_1 = \openrayright{R}{X}{a}$.
            $a\in X$ by \cref{subseteq}.
            Thus $U_1\in S_X$ and $U_1\in T$ by \cref{openray_right,subseteq,powerset_intro,open_rays}.
            $U = Y\inter U_1$ by \cref{openrayright_restrict}.
            $U\in T_S$ by \cref{subspace_topology}.
        \caseOf{$U = \openrayleft{R}{Y}{a}$.}
            Let $U_1 = \openrayleft{R}{X}{a}$.
            $a\in X$ by \cref{subseteq}.
            Hence $U_1\in S_X$ and $U_1\in T$ by \cref{openray_left,subseteq,powerset_intro,open_rays}.
            $U = Y\inter U_1$ by \cref{openrayleft_restrict}.
            $U\in T_S$ by \cref{subspace_topology}.
        \end{byCase}
    \end{subproof}

    For all $U$ such that $U\in T_Y$ there exists $M\subseteq\finiteIntersections{S_Y}$ such that $U = \unions{M}$
        by \cref{open_rays_subbasis_on,subbasis_finite_intersections_basis,basis_for_topology,topology_generated_by_subbasis,basis_topology_unions}.
    For all $B$ such that $B\in\finiteIntersections{S_Y}$ we have $B\in T_S$
        by \cref{finite_intersections,subseteq,finite_intersections_open_in_topology}.
    Show that for all $U$ such that $U\in T_Y$ we have $U\in T_S$.
    \begin{subproof}
        Follows by \cref{subseteq,topology_on}.
    \end{subproof}
    $T_Y\subseteq T_S$ by \cref{subseteq}.

    Show that for all $c\in X$ we have $Y\inter\openrayright{R}{X}{c}\in T_Y$.
    \begin{subproof}
        Fix $c$ such that $c\in X$.
        \begin{byCase}
        \caseOf{$c\in Y$.}
            $Y\inter\openrayright{R}{X}{c} = \openrayright{R}{Y}{c}$
                by \cref{inter,openray_right,subseteq,inter_intro,subseteq_antisymmetric}.
            $Y\inter\openrayright{R}{X}{c}\in T_Y$
                by \cref{openray_right,subseteq,powerset_intro,open_rays}.
            \caseOf{$c\notin Y$.}
                Take $y_0, y_1\in Y$ such that $y_0\neq y_1$ by \cref{more_than_one_element}.
                $y_0\neq c$ and $(c\mathrel{R}y_0 \lor y_0\mathrel{R}c)$
                    by \cref{subseteq,simple_order_relation,connex}.
            \begin{byCase}
            \caseOf{$c\mathrel{R}y_0$.}
                For all $y$ such that $y\in Y$ we have $c\mathrel{R}y$
                    by \cref{convex_outside_left}.
                Thus $Y\subseteq \openrayright{R}{X}{c}$ by \cref{subseteq,elem_subseteq,openray_right}.
                $Y\inter\openrayright{R}{X}{c}\in T_Y$ by \cref{inter_absorb_supseteq_right,topology_on}.
            \caseOf{$y_0\mathrel{R}c$.}
                For all $y$ such that $y\in Y$ we have $y\mathrel{R}c$
                    by \cref{convex_outside_right}.
                Show that $Y\inter\openrayright{R}{X}{c} = \emptyset$.
                \begin{subproof}
                    Suppose not.
                    Take $x$ such that $x\in Y\inter\openrayright{R}{X}{c}$ by \cref{nonempty_inhabited}.
                    $c\mathrel{R}x$ and $x\mathrel{R}c$ by \cref{inter,openray_right}.
                    Contradiction by \cref{simple_order_relation,asymmetric}.
                \end{subproof}
                Therefore $Y\inter\openrayright{R}{X}{c}\in T_Y$ by \cref{topology_on}.
            \end{byCase}
        \end{byCase}
    \end{subproof}

    Show that for all $c\in X$ we have $Y\inter\openrayleft{R}{X}{c}\in T_Y$.
    \begin{subproof}
        Fix $c$ such that $c\in X$.
        \begin{byCase}
        \caseOf{$c\in Y$.}
            $Y\inter\openrayleft{R}{X}{c} = \openrayleft{R}{Y}{c}$
                by \cref{inter,openray_left,subseteq,inter_intro,subseteq_antisymmetric}.
            $Y\inter\openrayleft{R}{X}{c}\in T_Y$
                by \cref{openray_left,subseteq,powerset_intro,open_rays}.
        \caseOf{$c\notin Y$.}
            Take $y_0, y_1\in Y$ such that $y_0\neq y_1$ by \cref{more_than_one_element}.
            $y_0\neq c$ and $(c\mathrel{R}y_0 \lor y_0\mathrel{R}c)$
                by \cref{subseteq,simple_order_relation,connex}.
            \begin{byCase}
            \caseOf{$y_0\mathrel{R}c$.}
                For all $y$ such that $y\in Y$ we have $y\mathrel{R}c$
                    by \cref{convex_outside_right}.
                Hence $Y\subseteq \openrayleft{R}{X}{c}$ by \cref{subseteq,elem_subseteq,openray_left}.
                $Y\inter\openrayleft{R}{X}{c}\in T_Y$ by \cref{inter_absorb_supseteq_right,topology_on}.
            \caseOf{$c\mathrel{R}y_0$.}
                For all $y$ such that $y\in Y$ we have $c\mathrel{R}y$
                    by \cref{convex_outside_left}.
                Show that $Y\inter\openrayleft{R}{X}{c} = \emptyset$.
                \begin{subproof}
                    Suppose not.
                    Take $x$ such that $x\in Y\inter\openrayleft{R}{X}{c}$ by \cref{nonempty_inhabited}.
                    $x\mathrel{R}c$ and $c\mathrel{R}x$ by \cref{inter,openray_left}.
                    Contradiction by \cref{simple_order_relation,asymmetric}.
                \end{subproof}
                Therefore $Y\inter\openrayleft{R}{X}{c}\in T_Y$ by \cref{topology_on}.
            \end{byCase}
        \end{byCase}
    \end{subproof}

    Show that for all $B$ such that $B\in\orderBasis{R}{X}$ we have $Y\inter B\in T_Y$.
    \begin{subproof}
        Fix $B$ such that $B\in\orderBasis{R}{X}$.
        $((\exists a, b\in X. a\mathrel{R}b \land B = \intervalopenrel{R}{X}{a}{b}) \lor
            (\exists b\in X. \exists a_0\in X. (\forall x\in X. a_0\mathrel{R}x \lor a_0 = x) \land B = \intervalclosedopenrel{R}{X}{a_0}{b}) \lor
            (\exists a\in X. \exists b_0\in X. (\forall x\in X. x\mathrel{R}b_0 \lor x = b_0) \land B = \intervalopenclosedrel{R}{X}{a}{b_0}))$
            by \cref{order_basis}.
        \begin{byCase}
        \caseOf{$\exists a, b\in X. a\mathrel{R}b \land B = \intervalopenrel{R}{X}{a}{b}$.}
            Take $a, b\in X$ such that $a\mathrel{R}b$ and $B = \intervalopenrel{R}{X}{a}{b}$.
            $B = \openrayright{R}{X}{a} \inter \openrayleft{R}{X}{b}$ by \cref{intervalopenrel_as_intersection_openrays}.
            $Y\inter\openrayright{R}{X}{a}\in T_Y$ and $Y\inter\openrayleft{R}{X}{b}\in T_Y$
                and $T_Y$ is closed under binary intersections by \cref{topology_on}.
            Show that $Y\inter B = (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$.
            \begin{subproof}
                Show that for all $x$ such that $x\in Y\inter B$ we have
                    $x\in (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$.
                \begin{subproof}
                    Fix $x$ such that $x\in Y\inter B$.
                    $x\in Y$ and $x\in B$ by \cref{inter}.
                    $x\in \openrayright{R}{X}{a} \inter \openrayleft{R}{X}{b}$.
                    $x\in\openrayright{R}{X}{a}$ and $x\in\openrayleft{R}{X}{b}$ by \cref{inter}.
                    $x\in Y\inter\openrayright{R}{X}{a}$ and $x\in Y\inter\openrayleft{R}{X}{b}$ by \cref{inter_intro}.
                    $x\in (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$ by \cref{inter_intro}.
                \end{subproof}
                $Y\inter B\subseteq (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$ by \cref{subseteq}.
                Show that for all $x$ such that
                    $x\in (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$
                    we have $x\in Y\inter B$.
                \begin{subproof}
                    Fix $x$ such that $x\in (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$.
                    $x\in Y\inter\openrayright{R}{X}{a}$ and $x\in Y\inter\openrayleft{R}{X}{b}$ by \cref{inter}.
                    $x\in Y$ and $x\in\openrayright{R}{X}{a}$ and $x\in\openrayleft{R}{X}{b}$ by \cref{inter}.
                    $x\in \openrayright{R}{X}{a} \inter \openrayleft{R}{X}{b}$ by \cref{inter_intro}.
                    $x\in B$.
                    $x\in Y\inter B$ by \cref{inter_intro}.
                \end{subproof}
                $(Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})\subseteq Y\inter B$ by \cref{subseteq}.
                $Y\inter B = (Y\inter\openrayright{R}{X}{a}) \inter (Y\inter\openrayleft{R}{X}{b})$ by \cref{subseteq_antisymmetric}.
            \end{subproof}
            Hence $Y\inter B\in T_Y$ by \cref{subseteq_antisymmetric,topology_on}.
        \caseOf{$\exists b\in X. \exists a_0\in X. (\forall x\in X. a_0\mathrel{R}x \lor a_0 = x) \land B = \intervalclosedopenrel{R}{X}{a_0}{b}$.}
            Take $a_0, b\in X$ such that
                $(\forall x\in X. a_0\mathrel{R}x \lor a_0 = x)$ and $B = \intervalclosedopenrel{R}{X}{a_0}{b}$.
            $B = \openrayleft{R}{X}{b}$ and $Y\inter B = Y\inter\openrayleft{R}{X}{b}$
                by \cref{smallest_element,intervalclosedopenrel_smallest_eq_openrayleft}.
            $Y\inter B\in T_Y$.
        \caseOf{$\exists a\in X. \exists b_0\in X. (\forall x\in X. x\mathrel{R}b_0 \lor x = b_0) \land B = \intervalopenclosedrel{R}{X}{a}{b_0}$.}
            Take $a, b_0\in X$ such that
                $(\forall x\in X. x\mathrel{R}b_0 \lor x = b_0)$ and $B = \intervalopenclosedrel{R}{X}{a}{b_0}$.
            $B = \openrayright{R}{X}{a}$ and $Y\inter B = Y\inter\openrayright{R}{X}{a}$
                by \cref{largest_element,intervalopenclosedrel_largest_eq_openrayright}.
            $Y\inter B\in T_Y$.
        \end{byCase}
    \end{subproof}

    Show that for all $U$ such that $U\in T_S$ we have $U\in T_Y$.
    \begin{subproof}
            Fix $U$ such that $U\in T_S$.
            Take $V\in T$ such that $U = Y\inter V$ by \cref{subspace_topology}.
            There exists $M\subseteq\orderBasis{R}{X}$ such that $V = \unions{M}$ by \cref{basis_topology_unions}.
            Let $N = \{A\in\pow{Y} \mid \exists B\in M. A = Y\inter B\}$.
            Show that for all $x$ such that $x\in U$ we have $x\in\unions{N}$.
            \begin{subproof}
                Fix $x$ such that $x\in U$.
                $x\in Y$ and $x\in V$ by \cref{inter}.
                Take $B\in M$ such that $x\in B$ by \cref{unions_iff}.
                $x\in Y\inter B$ by \cref{inter_intro}.
                $Y\inter B\in N$.
                $x\in\unions{N}$ by \cref{unions_iff}.
            \end{subproof}
            $U\subseteq\unions{N}$ by \cref{subseteq}.
            Show that for all $x$ such that $x\in\unions{N}$ we have $x\in U$.
            \begin{subproof}
                Follows by \cref{unions_iff,inter,inter_intro}.
            \end{subproof}
            $\unions{N}\subseteq U$ by \cref{subseteq}.
            For all $A$ such that $A\in N$ we have $A\in T_Y$ by \cref{subseteq}.
            Therefore $U\in T_Y$ by \cref{subseteq,topology_on,subseteq_antisymmetric}.
    \end{subproof}
    $T_S\subseteq T_Y$ by \cref{subseteq}.

    $T_Y = T_S$ by \cref{subseteq_antisymmetric}.
\end{proof}