Topology (Munkres)

§17 Closed Sets and Limit Points

Definition 149
closed_in

$A$ is closed in $X$ with respect to $T$ iff $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ is open in $X$ with respect to $T$.

LaTeX source
\begin{definition}
\label{closed_in}
    $A$ is closed in $X$ with respect to $T$ iff
    $A\subseteq X$ and $X\setminus A$ is open in $X$ with respect to $T$.
\end{definition}
Lemma 138
closed_emptyset

Assume $T$ is a topology on $X$.
Then $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ is closed in $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{closed_emptyset}
    Assume $T$ is a topology on $X$.
    Then $\emptyset$ is closed in $X$ with respect to $T$.
\end{lemma}
Proof

Follows by Definition 101, Definition 103, Definition 149, Proposition 11, Proposition 88.

LaTeX source
\begin{proof}
    Follows by \cref{closed_in,emptyset_subseteq,setminus_emptyset,topology_on,open_in}.
\end{proof}
Lemma 139
closed_whole_space

Assume $T$ is a topology on $X$.
Then $X$ is closed in $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{closed_whole_space}
    Assume $T$ is a topology on $X$.
    Then $X$ is closed in $X$ with respect to $T$.
\end{lemma}
Proof

Follows by Definition 101, Definition 103, Definition 149, Proposition 2, Proposition 90.

LaTeX source
\begin{proof}
    Follows by \cref{closed_in,subseteq_refl,setminus_self,topology_on,open_in}.
\end{proof}
Lemma 140
closed_inters

Assume $T$ is a topology on $X$.
Suppose $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{X}$.
Suppose for all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $A$ is closed in $X$ with respect to $T$.
Then $\inters{C}$ is closed in $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{closed_inters}
    Assume $T$ is a topology on $X$.
    Suppose $C\subseteq\pow{X}$.
    Suppose for all $A$ such that $A\in C$ we have $A$ is closed in $X$ with respect to $T$.
    Then $\inters{C}$ is closed in $X$ with respect to $T$.
\end{lemma}
Proof

$\inters{C}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Definition 4, Proposition 4, Proposition 159.

Case. $C = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

We have $\inters{C} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 1 [Set extensionality], Axiom 2, Definition 4, Proposition 28.
$\inters{C}$ is closed in $X$ with respect to $T$ by Lemma 138.

Case. $C \class{latex-symbol-tip latex-symbol-id-neq}{\neq} \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

$C$ is inhabited by Proposition 10.
Let $D = \{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} C. U = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A\}$.

Claim: $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\inters{C} = \unions{D}$.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\inters{C}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{D}$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\inters{C}$.
Suppose not.
$x\class{latex-symbol-tip latex-symbol-id-notin}{\notin}\unions{D}$.

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

Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
Suppose not.
Thus $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{D}$ by Axiom 4, Definition 103, Definition 149, Proposition 85, Proposition 86.
Contradiction.

Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{C}$ by Proposition 31.
Contradiction by Proposition 87.

We have $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\inters{C}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{D}$ by Definition 1.

Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{D}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\inters{C}$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{D}$.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 4.
Take $A\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $U = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} A$ by Proposition 86, Proposition 87.
$x\class{latex-symbol-tip latex-symbol-id-notin}{\notin}\inters{C}$.
Thus $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\inters{C}$ by Proposition 85.

We have $\unions{D}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\inters{C}$ by Definition 1.
Thus $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\inters{C} = \unions{D}$ by Proposition 3.

Therefore $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\inters{C}$ is open in $X$ with respect to $T$ by Definition 1, Definition 101, Definition 103.
Hence $\inters{C}$ is closed in $X$ with respect to $T$ by Definition 149.

LaTeX source
\begin{byCase}
    \caseOf{$C = \emptyset$.}
        We have $\inters{C} = \emptyset$ by \cref{inters,unions_emptyset,emptyset,setext}.
        $\inters{C}$ is closed in $X$ with respect to $T$ by \cref{closed_emptyset}.
    \caseOf{$C \neq \emptyset$.}
        $C$ is inhabited by \cref{nonempty_inhabited}.
        Let $D = \{U\in T \mid \exists A\in C. U = X\setminus A\}$.
        Show that $X\setminus\inters{C} = \unions{D}$.
        \begin{subproof}
            Show that for all $x$ such that $x\in X\setminus\inters{C}$ we have $x\in\unions{D}$.
            \begin{subproof}
                Fix $x$ such that $x\in X\setminus\inters{C}$.
                Suppose not.
                $x\notin\unions{D}$.
                Show that for all $A$ such that $A\in C$ we have $x\in A$.
                \begin{subproof}
                    Fix $A$ such that $A\in C$.
                    Suppose not.
                    Thus $x\in\unions{D}$ by \cref{setminus_elim_left,setminus_intro,closed_in,open_in,unions_iff}.
                    Contradiction.
                \end{subproof}
                Therefore $x\in\inters{C}$ by \cref{inters_intro}.
                Contradiction by \cref{setminus_elim_right}.
            \end{subproof}
            We have $X\setminus\inters{C}\subseteq\unions{D}$ by \cref{subseteq}.
            Show that for all $x$ such that $x\in\unions{D}$ we have $x\in X\setminus\inters{C}$.
            \begin{subproof}
                Fix $x$ such that $x\in\unions{D}$.
                Take $U\in D$ such that $x\in U$ by \cref{unions_iff}.
                Take $A\in C$ such that $U = X\setminus A$.
                We have $x\in X$ and $x\notin A$ by \cref{setminus_elim_left,setminus_elim_right}.
                $x\notin\inters{C}$.
                Thus $x\in X\setminus\inters{C}$ by \cref{setminus_intro}.
            \end{subproof}
            We have $\unions{D}\subseteq X\setminus\inters{C}$ by \cref{subseteq}.
            Thus $X\setminus\inters{C} = \unions{D}$ by \cref{subseteq_antisymmetric}.
        \end{subproof}
        Therefore $X\setminus\inters{C}$ is open in $X$ with respect to $T$ by \cref{subseteq,topology_on,open_in}.
        Hence $\inters{C}$ is closed in $X$ with respect to $T$ by \cref{closed_in}.
    
\end{byCase}
LaTeX source
\begin{proof}
    $\inters{C}\subseteq X$ by \cref{unions_subseteq_of_powerset_is_subseteq,inters,elem_subseteq,subseteq}.
    \begin{byCase}
    \caseOf{$C = \emptyset$.}
        We have $\inters{C} = \emptyset$ by \cref{inters,unions_emptyset,emptyset,setext}.
        $\inters{C}$ is closed in $X$ with respect to $T$ by \cref{closed_emptyset}.
    \caseOf{$C \neq \emptyset$.}
        $C$ is inhabited by \cref{nonempty_inhabited}.
        Let $D = \{U\in T \mid \exists A\in C. U = X\setminus A\}$.
        Show that $X\setminus\inters{C} = \unions{D}$.
        \begin{subproof}
            Show that for all $x$ such that $x\in X\setminus\inters{C}$ we have $x\in\unions{D}$.
            \begin{subproof}
                Fix $x$ such that $x\in X\setminus\inters{C}$.
                Suppose not.
                $x\notin\unions{D}$.
                Show that for all $A$ such that $A\in C$ we have $x\in A$.
                \begin{subproof}
                    Fix $A$ such that $A\in C$.
                    Suppose not.
                    Thus $x\in\unions{D}$ by \cref{setminus_elim_left,setminus_intro,closed_in,open_in,unions_iff}.
                    Contradiction.
                \end{subproof}
                Therefore $x\in\inters{C}$ by \cref{inters_intro}.
                Contradiction by \cref{setminus_elim_right}.
            \end{subproof}
            We have $X\setminus\inters{C}\subseteq\unions{D}$ by \cref{subseteq}.
            Show that for all $x$ such that $x\in\unions{D}$ we have $x\in X\setminus\inters{C}$.
            \begin{subproof}
                Fix $x$ such that $x\in\unions{D}$.
                Take $U\in D$ such that $x\in U$ by \cref{unions_iff}.
                Take $A\in C$ such that $U = X\setminus A$.
                We have $x\in X$ and $x\notin A$ by \cref{setminus_elim_left,setminus_elim_right}.
                $x\notin\inters{C}$.
                Thus $x\in X\setminus\inters{C}$ by \cref{setminus_intro}.
            \end{subproof}
            We have $\unions{D}\subseteq X\setminus\inters{C}$ by \cref{subseteq}.
            Thus $X\setminus\inters{C} = \unions{D}$ by \cref{subseteq_antisymmetric}.
        \end{subproof}
        Therefore $X\setminus\inters{C}$ is open in $X$ with respect to $T$ by \cref{subseteq,topology_on,open_in}.
        Hence $\inters{C}$ is closed in $X$ with respect to $T$ by \cref{closed_in}.
    \end{byCase}
\end{proof}
Lemma 141
complement_eq_implies_eq

Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} B$.
Then $A = B$.

LaTeX source
\begin{lemma}
\label{complement_eq_implies_eq}
    Suppose $A\subseteq X$ and $B\subseteq X$.
    Suppose $X\setminus A = X\setminus B$.
    Then $A = B$.
\end{lemma}
Proof

Follows by Proposition 2, Proposition 109.

LaTeX source
\begin{proof}
    Follows by \cref{subseteq_refl,double_complement}.
\end{proof}
Lemma 142
closed_finite_unions

Assume $T$ is a topology on $X$.
Suppose $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{X}$.
Suppose $F$ is finite.
Suppose for all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $A$ is closed in $X$ with respect to $T$.
Then $\unions{F}$ is closed in $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{closed_finite_unions}
    Assume $T$ is a topology on $X$.
    Suppose $F\subseteq\pow{X}$.
    Suppose $F$ is finite.
    Suppose for all $A$ such that $A\in F$ we have $A$ is closed in $X$ with respect to $T$.
    Then $\unions{F}$ is closed in $X$ with respect to $T$.
\end{lemma}
Proof
Case. $F = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

We have $\unions{F}$ is closed in $X$ with respect to $T$ by Lemma 138, Proposition 28.

Case. $F \class{latex-symbol-tip latex-symbol-id-neq}{\neq} \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

Let $G = \{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} F. U = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A\}$.
$G$ is inhabited by Definition 103, Definition 149, Proposition 10.

Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{F}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{G}$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{F}$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin}\unions{F}$ by Proposition 86, Proposition 87.

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

Fix $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} G$.
Take $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $U = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$.
Suppose not.
We have $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} U$.
Hence $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$.

Claim: $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

Suppose not.
We have $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} A$.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Proposition 85.
Contradiction.

Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{F}$ by Axiom 4.
Contradiction.

Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{G}$ by Proposition 31.

We have $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{F}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\inters{G}$ by Definition 1.

Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{G}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{F}$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{G}$.
Take $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Definition 103, Definition 149, Proposition 32.

Claim: $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin}\unions{F}$.

Suppose not.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{F}$.
Take $A_1\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A_1$ by Axiom 4.
Therefore $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} A_1$ by Definition 103, Definition 149, Proposition 32, Proposition 87.
Contradiction.

Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{F}$ by Proposition 32, Proposition 85, Proposition 86.

We have $\inters{G}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{F}$ by Definition 1.
Therefore $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{F} = \inters{G}$ by Proposition 3.
$G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Definition 1.
Take $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that there exists a bijection from $\initialSegment{k}$ to $F$ by Definition 89.
Take $f$ such that $f$ is a bijection from $\initialSegment{k}$ to $F$.
Let $g = \{(n, X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} f(n)) \mid n\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}\}$.

Claim: $g$ is a function to $G$ and $\dom{g} = \initialSegment{k}$.

For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ there exist $x,y$ such that $w = (x,y)$.
For all $n,y,y'$ such that $(n,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ and $(n,y')\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ we have $y = y'$ by Axiom 6.
Hence $g$ is a function by Definition 12, Definition 51.
For all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ we have $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ by Proposition 200.
We have $\initialSegment{k}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{g}$ by Definition 1.
For all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ we have $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ by Axiom 6, Proposition 199.
$\dom{g}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\initialSegment{k}$ by Definition 1.
Therefore $\dom{g} = \initialSegment{k}$ by Proposition 3.
For all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ we have $f(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} f(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ and $(n, X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} f(n))\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Definition 58, Definition 103, Definition 149, Proposition 359, Proposition 389.
For all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ we have $g(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ by Proposition 349.
Thus $g$ is a function to $G$.

We have $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{G}$ by Proposition 358.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in}\surj{\initialSegment{k}}{G}$ by Definition 57, Definition 58, Proposition 349.
For all $n,m$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ and $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ and $g(n) = g(m)$ we have $n = m$ by Axiom 12, Definition 1, Definition 58, Lemma 141, Proposition 349, Proposition 359, Proposition 386, Proposition 389.
Hence $g$ is injective by Proposition 386.
Therefore $g$ is a bijection from $\initialSegment{k}$ to $G$ by Definition 58.
Hence $G$ is finite by Definition 89.
Therefore $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{F}$ is open in $X$ with respect to $T$ by Definition 1, Definition 103, Lemma 124.
$\unions{F}$ is closed in $X$ with respect to $T$ by Definition 149, Proposition 159.

LaTeX source
\begin{byCase}
    \caseOf{$F = \emptyset$.}
        We have $\unions{F}$ is closed in $X$ with respect to $T$ by \cref{unions_emptyset,closed_emptyset}.
    \caseOf{$F \neq \emptyset$.}
        Let $G = \{U\in T \mid \exists A\in F. U = X\setminus A\}$.
        $G$ is inhabited by \cref{nonempty_inhabited,closed_in,open_in}.
        Show that for all $x$ such that $x\in X\setminus\unions{F}$ we have $x\in\inters{G}$.
        \begin{subproof}
            Fix $x$ such that $x\in X\setminus\unions{F}$.
            $x\in X$ and $x\notin\unions{F}$ by \cref{setminus_elim_left,setminus_elim_right}.
            Show that for all $U$ such that $U\in G$ we have $x\in U$.
            \begin{subproof}
                Fix $U$ such that $U\in G$.
                Take $A\in F$ such that $U = X\setminus A$.
                Suppose not.
                We have $x\notin U$.
                Hence $x\notin X\setminus A$.
                Show that $x\in A$.
                \begin{subproof}
                    Suppose not.
                    We have $x\notin A$.
                    Hence $x\in X\setminus A$ by \cref{setminus_intro}.
                    Contradiction.
                \end{subproof}
                Therefore $x\in\unions{F}$ by \cref{unions_iff}.
                Contradiction.
            \end{subproof}
            Therefore $x\in\inters{G}$ by \cref{inters_intro}.
        \end{subproof}
        We have $X\setminus\unions{F}\subseteq\inters{G}$ by \cref{subseteq}.
        Show that for all $x$ such that $x\in\inters{G}$ we have $x\in X\setminus\unions{F}$.
        \begin{subproof}
            Fix $x$ such that $x\in\inters{G}$.
            Take $A$ such that $A\in F$.
            We have $x\in X\setminus A$ by \cref{closed_in,open_in,inters_destr}.
            Show that $x\notin\unions{F}$.
            \begin{subproof}
                Suppose not.
                We have $x\in\unions{F}$.
                Take $A_1\in F$ such that $x\in A_1$ by \cref{unions_iff}.
                Therefore $x\notin A_1$ by \cref{closed_in,open_in,inters_destr,setminus_elim_right}.
                Contradiction.
            \end{subproof}
            Hence $x\in X\setminus\unions{F}$ by \cref{inters_destr,setminus_elim_left,setminus_intro}.
        \end{subproof}
        We have $\inters{G}\subseteq X\setminus\unions{F}$ by \cref{subseteq}.
        Therefore $X\setminus\unions{F} = \inters{G}$ by \cref{subseteq_antisymmetric}.
        $G\subseteq T$ by \cref{subseteq}.
        Take $k\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{k}$ to $F$ by \cref{finite}.
        Take $f$ such that $f$ is a bijection from $\initialSegment{k}$ to $F$.
        Let $g = \{(n, X\setminus f(n)) \mid n\in\initialSegment{k}\}$.
        Show that $g$ is a function to $G$ and $\dom{g} = \initialSegment{k}$.
        \begin{subproof}
            For all $w$ such that $w\in g$ there exist $x,y$ such that $w = (x,y)$.
            For all $n,y,y'$ such that $(n,y)\in g$ and $(n,y')\in g$ we have $y = y'$ by \cref{pair_eq_iff}.
            Hence $g$ is a function by \cref{relation,rightunique}.
            For all $n$ such that $n\in\initialSegment{k}$ we have $n\in\dom{g}$ by \cref{dom_intro}.
            We have $\initialSegment{k}\subseteq\dom{g}$ by \cref{subseteq}.
            For all $n$ such that $n\in\dom{g}$ we have $n\in\initialSegment{k}$ by \cref{dom_iff,pair_eq_iff}.
            $\dom{g}\subseteq\initialSegment{k}$ by \cref{subseteq}.
            Therefore $\dom{g} = \initialSegment{k}$ by \cref{subseteq_antisymmetric}.
            For all $n$ such that $n\in\dom{g}$ we have $f(n)\in F$ and $X\setminus f(n)\in G$ and
                $(n, X\setminus f(n))\in g$ by \cref{bijections,bijections_to_funs,funs_elim,closed_in,open_in}.
            For all $n$ such that $n\in\dom{g}$ we have $g(n)\in G$ by \cref{function_apply_iff}.
            Thus $g$ is a function to $G$.
        \end{subproof}
        We have $g\in\funs{\initialSegment{k}}{G}$ by \cref{funs_intro}.
        $g\in\surj{\initialSegment{k}}{G}$ by \cref{bijections,surj,function_apply_iff}.
        For all $n,m$ such that $n\in\initialSegment{k}$ and $m\in\initialSegment{k}$ and $g(n) = g(m)$ we have $n = m$
            by \cref{function_apply_iff,bijections,bijections_to_funs,funs_elim,subseteq,pow_iff,complement_eq_implies_eq,injective_function}.
        Hence $g$ is injective by \cref{injective_function}.
        Therefore $g$ is a bijection from $\initialSegment{k}$ to $G$ by \cref{bijections}.
        Hence $G$ is finite by \cref{finite}.
        Therefore $X\setminus\unions{F}$ is open in $X$ with respect to $T$
            by \cref{subseteq,finite_intersections_open_in_topology,open_in}.
        $\unions{F}$ is closed in $X$ with respect to $T$
            by \cref{unions_subseteq_of_powerset_is_subseteq,closed_in}.
    
\end{byCase}
LaTeX source
\begin{proof}
    \begin{byCase}
    \caseOf{$F = \emptyset$.}
        We have $\unions{F}$ is closed in $X$ with respect to $T$ by \cref{unions_emptyset,closed_emptyset}.
    \caseOf{$F \neq \emptyset$.}
        Let $G = \{U\in T \mid \exists A\in F. U = X\setminus A\}$.
        $G$ is inhabited by \cref{nonempty_inhabited,closed_in,open_in}.
        Show that for all $x$ such that $x\in X\setminus\unions{F}$ we have $x\in\inters{G}$.
        \begin{subproof}
            Fix $x$ such that $x\in X\setminus\unions{F}$.
            $x\in X$ and $x\notin\unions{F}$ by \cref{setminus_elim_left,setminus_elim_right}.
            Show that for all $U$ such that $U\in G$ we have $x\in U$.
            \begin{subproof}
                Fix $U$ such that $U\in G$.
                Take $A\in F$ such that $U = X\setminus A$.
                Suppose not.
                We have $x\notin U$.
                Hence $x\notin X\setminus A$.
                Show that $x\in A$.
                \begin{subproof}
                    Suppose not.
                    We have $x\notin A$.
                    Hence $x\in X\setminus A$ by \cref{setminus_intro}.
                    Contradiction.
                \end{subproof}
                Therefore $x\in\unions{F}$ by \cref{unions_iff}.
                Contradiction.
            \end{subproof}
            Therefore $x\in\inters{G}$ by \cref{inters_intro}.
        \end{subproof}
        We have $X\setminus\unions{F}\subseteq\inters{G}$ by \cref{subseteq}.
        Show that for all $x$ such that $x\in\inters{G}$ we have $x\in X\setminus\unions{F}$.
        \begin{subproof}
            Fix $x$ such that $x\in\inters{G}$.
            Take $A$ such that $A\in F$.
            We have $x\in X\setminus A$ by \cref{closed_in,open_in,inters_destr}.
            Show that $x\notin\unions{F}$.
            \begin{subproof}
                Suppose not.
                We have $x\in\unions{F}$.
                Take $A_1\in F$ such that $x\in A_1$ by \cref{unions_iff}.
                Therefore $x\notin A_1$ by \cref{closed_in,open_in,inters_destr,setminus_elim_right}.
                Contradiction.
            \end{subproof}
            Hence $x\in X\setminus\unions{F}$ by \cref{inters_destr,setminus_elim_left,setminus_intro}.
        \end{subproof}
        We have $\inters{G}\subseteq X\setminus\unions{F}$ by \cref{subseteq}.
        Therefore $X\setminus\unions{F} = \inters{G}$ by \cref{subseteq_antisymmetric}.
        $G\subseteq T$ by \cref{subseteq}.
        Take $k\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{k}$ to $F$ by \cref{finite}.
        Take $f$ such that $f$ is a bijection from $\initialSegment{k}$ to $F$.
        Let $g = \{(n, X\setminus f(n)) \mid n\in\initialSegment{k}\}$.
        Show that $g$ is a function to $G$ and $\dom{g} = \initialSegment{k}$.
        \begin{subproof}
            For all $w$ such that $w\in g$ there exist $x,y$ such that $w = (x,y)$.
            For all $n,y,y'$ such that $(n,y)\in g$ and $(n,y')\in g$ we have $y = y'$ by \cref{pair_eq_iff}.
            Hence $g$ is a function by \cref{relation,rightunique}.
            For all $n$ such that $n\in\initialSegment{k}$ we have $n\in\dom{g}$ by \cref{dom_intro}.
            We have $\initialSegment{k}\subseteq\dom{g}$ by \cref{subseteq}.
            For all $n$ such that $n\in\dom{g}$ we have $n\in\initialSegment{k}$ by \cref{dom_iff,pair_eq_iff}.
            $\dom{g}\subseteq\initialSegment{k}$ by \cref{subseteq}.
            Therefore $\dom{g} = \initialSegment{k}$ by \cref{subseteq_antisymmetric}.
            For all $n$ such that $n\in\dom{g}$ we have $f(n)\in F$ and $X\setminus f(n)\in G$ and
                $(n, X\setminus f(n))\in g$ by \cref{bijections,bijections_to_funs,funs_elim,closed_in,open_in}.
            For all $n$ such that $n\in\dom{g}$ we have $g(n)\in G$ by \cref{function_apply_iff}.
            Thus $g$ is a function to $G$.
        \end{subproof}
        We have $g\in\funs{\initialSegment{k}}{G}$ by \cref{funs_intro}.
        $g\in\surj{\initialSegment{k}}{G}$ by \cref{bijections,surj,function_apply_iff}.
        For all $n,m$ such that $n\in\initialSegment{k}$ and $m\in\initialSegment{k}$ and $g(n) = g(m)$ we have $n = m$
            by \cref{function_apply_iff,bijections,bijections_to_funs,funs_elim,subseteq,pow_iff,complement_eq_implies_eq,injective_function}.
        Hence $g$ is injective by \cref{injective_function}.
        Therefore $g$ is a bijection from $\initialSegment{k}$ to $G$ by \cref{bijections}.
        Hence $G$ is finite by \cref{finite}.
        Therefore $X\setminus\unions{F}$ is open in $X$ with respect to $T$
            by \cref{subseteq,finite_intersections_open_in_topology,open_in}.
        $\unions{F}$ is closed in $X$ with respect to $T$
            by \cref{unions_subseteq_of_powerset_is_subseteq,closed_in}.
    \end{byCase}
\end{proof}
Theorem 8
closed_in_subspace_iff

Assume $Y$ is a subspace of $X$ with respect to $T$.
Then for all $A$ we have $A$ is closed in $Y$ with respect to $\subspaceTopology{T}{Y}$ iff there exists $C$ such that $C$ is closed in $X$ with respect to $T$ and $A = C\inter Y$.

LaTeX source
\begin{theorem}
\label{closed_in_subspace_iff}
    Assume $Y$ is a subspace of $X$ with respect to $T$.
    Then for all $A$ we have
    $A$ is closed in $Y$ with respect to $\subspaceTopology{T}{Y}$
    iff there exists $C$ such that $C$ is closed in $X$ with respect to $T$ and $A = C\inter Y$.
\end{theorem}
Proof

$T$ is a topology on $X$ and $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 147.
Let $T_Y = \subspaceTopology{T}{Y}$.
Fix $A$.

Claim: If $A$ is closed in $Y$ with respect to $T_Y$ then there exists $C$ such that $C$ is closed in $X$ with respect to $T$ and $A = C\inter Y$.

Assume $A$ is closed in $Y$ with respect to $T_Y$.
$Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_Y$ by Definition 103, Definition 149.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A = Y\inter U$ by Definition 146.
Let $C = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U$.
$U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 12, Definition 1, Definition 101, Definition 103.
Therefore $C$ is closed in $X$ with respect to $T$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 149, Proposition 65 [Commutativity of intersection], Proposition 69, Proposition 91, Proposition 97.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 149, Proposition 4.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} U$.
We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U$ by Definition 1, Proposition 85.

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

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U$.
Suppose not.
We have $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} A$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 86.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Proposition 85.
Thus $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter U$.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Proposition 63.
Contradiction by Proposition 87.

We have $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1.
Therefore $A = Y\inter (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U)$ by Proposition 3, Proposition 111.
Hence $A = C\inter Y$ by Proposition 65 [Commutativity of intersection].

Claim: If there exists $C$ such that $C$ is closed in $X$ with respect to $T$ and $A = C\inter Y$ then $A$ is closed in $Y$ with respect to $T_Y$.

Assume there exists $C$ such that $C$ is closed in $X$ with respect to $T$ and $A = C\inter Y$.
Take $C$ such that $C$ is closed in $X$ with respect to $T$ and $A = C\inter Y$.

Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} A$ by Proposition 86, Proposition 87.
Suppose not.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 61.
Contradiction.
$x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} C$.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ by Proposition 85.

We have $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ by Definition 1.

Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} C$ by Proposition 86, Proposition 87.
Suppose not.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Proposition 62.
Contradiction.
$x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} A$.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Proposition 85.

We have $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Definition 1.
Hence $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A = Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ by Proposition 3.
Therefore $A$ is closed in $Y$ with respect to $T_Y$ by Definition 103, Definition 146, Definition 149, Lemma 131, Proposition 3, Proposition 74, Proposition 111.

LaTeX source
\begin{proof}
    $T$ is a topology on $X$ and $Y\subseteq X$ by \cref{subspace_of}.
    Let $T_Y = \subspaceTopology{T}{Y}$.
    Fix $A$.
    Show that if $A$ is closed in $Y$ with respect to $T_Y$ then
        there exists $C$ such that $C$ is closed in $X$ with respect to $T$ and $A = C\inter Y$.
    \begin{subproof}
        Assume $A$ is closed in $Y$ with respect to $T_Y$.
        $Y\setminus A\in T_Y$ by \cref{closed_in,open_in}.
        Take $U\in T$ such that $Y\setminus A = Y\inter U$ by \cref{subspace_topology}.
        Let $C = X\setminus U$.
        $U\subseteq X$ by \cref{open_in,topology_on,subseteq,pow_iff}.
        Therefore $C$ is closed in $X$ with respect to $T$ by
            \cref{setminus_subseteq,setminus_setminus,inter_comm,topology_on,open_in,subseteq,pow_iff,inter_absorb_supseteq_right,closed_in}.
        For all $x$ such that $x\in A$ we have $x\in Y$ by \cref{closed_in,elem_subseteq}.
        For all $x$ such that $x\in A$ we have $x\notin U$.
        We have $A\subseteq Y\setminus U$ by \cref{setminus_intro,subseteq}.
        Show that for all $x$ such that $x\in Y\setminus U$ we have $x\in A$.
        \begin{subproof}
            Fix $x$ such that $x\in Y\setminus U$.
            Suppose not.
            We have $x\notin A$.
            $x\in Y$ by \cref{setminus_elim_left}.
            Hence $x\in Y\setminus A$ by \cref{setminus_intro}.
            Thus $x\in Y\inter U$.
            Therefore $x\in U$ by \cref{inter_elim_right}.
            Contradiction by \cref{setminus_elim_right}.
        \end{subproof}
        We have $Y\setminus U\subseteq A$ by \cref{subseteq}.
        Therefore $A = Y\inter (X\setminus U)$ by \cref{subseteq_antisymmetric,setminus_eq_inter_complement}.
        Hence $A = C\inter Y$ by \cref{inter_comm}.
    \end{subproof}
    Show that if there exists $C$ such that $C$ is closed in $X$ with respect to $T$ and $A = C\inter Y$ then
        $A$ is closed in $Y$ with respect to $T_Y$.
    \begin{subproof}
        Assume there exists $C$ such that $C$ is closed in $X$ with respect to $T$ and $A = C\inter Y$.
        Take $C$ such that $C$ is closed in $X$ with respect to $T$ and $A = C\inter Y$.
        Show that for all $x$ such that $x\in Y\setminus A$ we have $x\in Y\setminus C$.
        \begin{subproof}
            Fix $x$ such that $x\in Y\setminus A$.
            $x\in Y$ and $x\notin A$ by \cref{setminus_elim_left,setminus_elim_right}.
            Suppose not.
            We have $x\in C$.
            Hence $x\in A$ by \cref{inter_intro}.
            Contradiction.
            $x\notin C$.
            Therefore $x\in Y\setminus C$ by \cref{setminus_intro}.
        \end{subproof}
        We have $Y\setminus A\subseteq Y\setminus C$ by \cref{subseteq}.
        Show that for all $x$ such that $x\in Y\setminus C$ we have $x\in Y\setminus A$.
        \begin{subproof}
            Fix $x$ such that $x\in Y\setminus C$.
            $x\in Y$ and $x\notin C$ by \cref{setminus_elim_left,setminus_elim_right}.
            Suppose not.
            We have $x\in A$.
            Hence $x\in C$ by \cref{inter_elim_left}.
            Contradiction.
            $x\notin A$.
            Therefore $x\in Y\setminus A$ by \cref{setminus_intro}.
        \end{subproof}
        We have $Y\setminus C\subseteq Y\setminus A$ by \cref{subseteq}.
        Hence $Y\setminus A = Y\setminus C$ by \cref{subseteq_antisymmetric}.
        Therefore $A$ is closed in $Y$ with respect to $T_Y$ by \cref{subseteq_antisymmetric,setminus_eq_inter_complement,closed_in,open_in,subspace_topology,inter_lower_right,subspace_topology_is_topology}.
    \end{subproof}
\end{proof}
Theorem 9
closed_in_closed_subspace

Assume $T$ is a topology on $X$.
Suppose $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $Y$ is closed in $X$ with respect to $T$.
Suppose $A$ is closed in $Y$ with respect to $\subspaceTopology{T}{Y}$.
Then $A$ is closed in $X$ with respect to $T$.

LaTeX source
\begin{theorem}
\label{closed_in_closed_subspace}
    Assume $T$ is a topology on $X$.
    Suppose $Y\subseteq X$.
    Suppose $Y$ is closed in $X$ with respect to $T$.
    Suppose $A$ is closed in $Y$ with respect to $\subspaceTopology{T}{Y}$.
    Then $A$ is closed in $X$ with respect to $T$.
\end{theorem}
Proof

Take $C$ such that $C$ is closed in $X$ with respect to $T$ and $A = C\inter Y$ by Definition 147, Theorem 8.
Let $D = \{C, Y\}$.
We have $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{X}$ and for all $B$ such that $B\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ we have $B$ is closed in $X$ with respect to $T$ by Axiom 12, Definition 1, Definition 149, Proposition 19.
Therefore $A$ is closed in $X$ with respect to $T$ by Lemma 140, Proposition 64.

LaTeX source
\begin{proof}
    Take $C$ such that $C$ is closed in $X$ with respect to $T$ and $A = C\inter Y$
        by \cref{closed_in_subspace_iff,subspace_of}.
    Let $D = \{C, Y\}$.
    We have $D\subseteq\pow{X}$ and for all $B$ such that $B\in D$ we have $B$ is closed in $X$ with respect to $T$
        by \cref{upair_iff,closed_in,pow_iff,subseteq}.
    Therefore $A$ is closed in $X$ with respect to $T$ by \cref{closed_inters,inter_as_inters}.
\end{proof}
Definition 150
interior

$\interior{A}{X}{T} = \{x\class{latex-symbol-tip latex-symbol-id-in}{\in} X \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in} T. x\class{latex-symbol-tip latex-symbol-id-in}{\in} U \class{latex-symbol-tip latex-symbol-id-land}{\land} U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A\}$.

LaTeX source
\begin{definition}
\label{interior}
    $\interior{A}{X}{T} = \{x\in X \mid \exists U\in T. x\in U \land U\subseteq A\}$.
\end{definition}
Definition 151
closure

$\closure{A}{X}{T} = \{x\class{latex-symbol-tip latex-symbol-id-in}{\in} X \mid \text{for all $C$ such that $C$ is closed in $X$ with respect to $T$ and for all $y\in A$ we have $y\in C$ we have $x\in C$}\}$.

LaTeX source
\begin{definition}
\label{closure}
    $\closure{A}{X}{T} = \{x\in X \mid \text{for all $C$ such that $C$ is closed in $X$ with respect to $T$ and for all $y\in A$ we have $y\in C$ we have $x\in C$}\}$.
\end{definition}
Lemma 143
interior_open_in

Assume $T$ is a topology on $X$.
Then $\interior{A}{X}{T}$ is open in $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{interior_open_in}
    Assume $T$ is a topology on $X$.
    Then $\interior{A}{X}{T}$ is open in $X$ with respect to $T$.
\end{lemma}
Proof

Let $S = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in} T \mid U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A\}$.
$\interior{A}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{S}$ by Axiom 4, Definition 1, Definition 150.
$\unions{S}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\interior{A}{X}{T}$ by Axiom 4, Axiom 12, Definition 1, Definition 1, Definition 101, Definition 150, Proposition 4.
Therefore $\interior{A}{X}{T}$ is open in $X$ with respect to $T$ by Definition 1, Definition 101, Definition 103, Proposition 3.

LaTeX source
\begin{proof}
    Let $S = \{U\in T \mid U\subseteq A\}$.
    $\interior{A}{X}{T}\subseteq\unions{S}$ by \cref{interior,unions_iff,subseteq}.
    $\unions{S}\subseteq\interior{A}{X}{T}$
        by \cref{unions_iff,topology_on,subseteq,pow_iff,elem_subseteq,interior,subseteq}.
    Therefore $\interior{A}{X}{T}$ is open in $X$ with respect to $T$ by \cref{subseteq,topology_on,subseteq_antisymmetric,open_in}.
\end{proof}
Lemma 144
closure_closed_in

Assume $T$ is a topology on $X$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Then $\closure{A}{X}{T}$ is closed in $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{closure_closed_in}
    Assume $T$ is a topology on $X$.
    Suppose $A\subseteq X$.
    Then $\closure{A}{X}{T}$ is closed in $X$ with respect to $T$.
\end{lemma}
Proof

Let $F = \{C\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{X} \mid \text{$C$ is closed in $X$ with respect to $T$ and for all $x\in A$ we have $x\in C$}\}$.
$F$ is inhabited by Definition 1, Lemma 139, Proposition 158.

Claim: $\closure{A}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\inters{F}$.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$.
For all $C$ such that $C\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Proposition 30.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Axiom 12, Proposition 4, Proposition 30.
For all $C$ such that $C$ is closed in $X$ with respect to $T$ and for all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$ by Definition 151.

We have $\inters{F}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\closure{A}{X}{T}$ by Definition 1.
Therefore $\closure{A}{X}{T} = \inters{F}$ by Proposition 3.
$F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{X}$ by Definition 1.
For all $C$ such that $C\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $C$ is closed in $X$ with respect to $T$.
Therefore $\inters{F}$ is closed in $X$ with respect to $T$ by Lemma 140.
Hence $\closure{A}{X}{T}$ is closed in $X$ with respect to $T$.

LaTeX source
\begin{proof}
    Let $F = \{C\in\pow{X} \mid \text{$C$ is closed in $X$ with respect to $T$ and for all $x\in A$ we have $x\in C$}\}$.
    $F$ is inhabited by \cref{closed_whole_space,powerset_top,subseteq}.
    Show that $\closure{A}{X}{T}\subseteq\inters{F}$.
    \begin{subproof}
        Follows by \cref{closure,inters_iff_forall,subseteq}.
    \end{subproof}
    Show that for all $x$ such that $x\in\inters{F}$ we have $x\in\closure{A}{X}{T}$.
    \begin{subproof}
        Fix $x$ such that $x\in\inters{F}$.
        For all $C$ such that $C\in F$ we have $x\in C$ by \cref{inters_iff_forall}.
        We have $x\in X$ by \cref{inters_iff_forall,pow_iff,elem_subseteq}.
        For all $C$ such that $C$ is closed in $X$ with respect to $T$ and
            for all $y\in A$ we have $y\in C$ we have $x\in C$.
        Therefore $x\in\closure{A}{X}{T}$ by \cref{closure}.
    \end{subproof}
    We have $\inters{F}\subseteq\closure{A}{X}{T}$ by \cref{subseteq}.
    Therefore $\closure{A}{X}{T} = \inters{F}$ by \cref{subseteq_antisymmetric}.
    $F\subseteq\pow{X}$ by \cref{subseteq}.
    For all $C$ such that $C\in F$ we have $C$ is closed in $X$ with respect to $T$.
    Therefore $\inters{F}$ is closed in $X$ with respect to $T$ by \cref{closed_inters}.
    Hence $\closure{A}{X}{T}$ is closed in $X$ with respect to $T$.
\end{proof}
Lemma 145
interior_subseteq

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

LaTeX source
\begin{lemma}
\label{interior_subseteq}
    Assume $T$ is a topology on $X$.
    Then $\interior{A}{X}{T}\subseteq A$.
\end{lemma}
Proof

Follows by Definition 1, Definition 150, Proposition 4.

LaTeX source
\begin{proof}
    Follows by \cref{interior,elem_subseteq,subseteq}.
\end{proof}
Lemma 146
subseteq_closure

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

LaTeX source
\begin{lemma}
\label{subseteq_closure}
    Assume $T$ is a topology on $X$.
    Suppose $A\subseteq X$.
    Then $A\subseteq\closure{A}{X}{T}$.
\end{lemma}
Proof

Follows by Definition 1, Definition 151, Proposition 4.

LaTeX source
\begin{proof}
    Follows by \cref{elem_subseteq,closure,subseteq}.
\end{proof}
Lemma 147
closure_subseteq_closed

Assume $T$ is a topology on $X$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $C$ is closed in $X$ with respect to $T$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Then $\closure{A}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.

LaTeX source
\begin{lemma}
\label{closure_subseteq_closed}
    Assume $T$ is a topology on $X$.
    Suppose $A\subseteq X$.
    Suppose $C$ is closed in $X$ with respect to $T$.
    Suppose $A\subseteq C$.
    Then $\closure{A}{X}{T}\subseteq C$.
\end{lemma}
Proof

Follows by Definition 1, Definition 151.

LaTeX source
\begin{proof}
    Follows by \cref{closure,subseteq}.
\end{proof}
Lemma 148
open_eq_interior

Assume $T$ is a topology on $X$.
Suppose $A$ is open in $X$ with respect to $T$.
Then $A = \interior{A}{X}{T}$.

LaTeX source
\begin{lemma}
\label{open_eq_interior}
    Assume $T$ is a topology on $X$.
    Suppose $A$ is open in $X$ with respect to $T$.
    Then $A = \interior{A}{X}{T}$.
\end{lemma}
Proof
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\interior{A}{X}{T}$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$A\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 103.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Axiom 12, Definition 1, Definition 101, Definition 103, Proposition 4.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\interior{A}{X}{T}$ by Definition 150, Proposition 2.

We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\interior{A}{X}{T}$ by Definition 1.
$\interior{A}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Lemma 145.
Therefore $A = \interior{A}{X}{T}$ by Proposition 3.

LaTeX source
\begin{proof}
    Show that for all $x$ such that $x\in A$ we have $x\in\interior{A}{X}{T}$.
    \begin{subproof}
        Fix $x$ such that $x\in A$.
        $A\in T$ by \cref{open_in}.
        We have $x\in X$ by \cref{open_in,topology_on,subseteq,pow_iff,elem_subseteq}.
        Therefore $x\in\interior{A}{X}{T}$ by \cref{interior,subseteq_refl}.
    \end{subproof}
    We have $A\subseteq\interior{A}{X}{T}$ by \cref{subseteq}.
    $\interior{A}{X}{T}\subseteq A$ by \cref{interior_subseteq}.
    Therefore $A = \interior{A}{X}{T}$ by \cref{subseteq_antisymmetric}.
\end{proof}
Lemma 149
closed_eq_closure

Assume $T$ is a topology on $X$.
Suppose $A$ is closed in $X$ with respect to $T$.
Then $A = \closure{A}{X}{T}$.

LaTeX source
\begin{lemma}
\label{closed_eq_closure}
    Assume $T$ is a topology on $X$.
    Suppose $A$ is closed in $X$ with respect to $T$.
    Then $A = \closure{A}{X}{T}$.
\end{lemma}
Proof

Follows by Definition 149, Lemma 146, Lemma 147, Proposition 2, Proposition 3.

LaTeX source
\begin{proof}
    Follows by \cref{closed_in,subseteq_closure,subseteq_refl,closure_subseteq_closed,subseteq_antisymmetric}.
\end{proof}
Theorem 10
closure_in_subspace

Assume $Y$ is a subspace of $X$ with respect to $T$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Then $\closure{A}{Y}{T_Y} = \closure{A}{X}{T}\inter Y$.

LaTeX source
\begin{theorem}
\label{closure_in_subspace}
    Assume $Y$ is a subspace of $X$ with respect to $T$.
    Suppose $A\subseteq Y$.
    Let $T_Y = \subspaceTopology{T}{Y}$.
    Then $\closure{A}{Y}{T_Y} = \closure{A}{X}{T}\inter Y$.
\end{theorem}
Proof

$T$ is a topology on $X$ and $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Definition 147, Proposition 6.
Let $B = \closure{A}{Y}{T_Y}$.
Let $C = \closure{A}{X}{T}$.
We have $C\inter Y$ is closed in $Y$ with respect to $T_Y$ by Definition 147, Lemma 144, Theorem 8.
We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C\inter Y$ by Lemma 146, Proposition 72.
$T_Y$ is a topology on $Y$ by Lemma 131.

Claim: $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C\inter Y$.

Follows by Lemma 147.

$B$ is closed in $Y$ with respect to $T_Y$ by Lemma 144.
Take $D$ such that $D$ is closed in $X$ with respect to $T$ and $B = D\inter Y$ by Definition 147, Theorem 8.
We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} D$ by Lemma 146, Proposition 6, Proposition 73.
Hence $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} D$ by Lemma 147.

Claim: $C\inter Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B$.

Therefore $B = C\inter Y$ by Proposition 3.

LaTeX source
\begin{proof}
    $T$ is a topology on $X$ and $Y\subseteq X$ and $A\subseteq X$ by \cref{subspace_of,subseteq,subseteq_transitive}.
    Let $B = \closure{A}{Y}{T_Y}$.
    Let $C = \closure{A}{X}{T}$.
    We have $C\inter Y$ is closed in $Y$ with respect to $T_Y$
        by \cref{closure_closed_in,closed_in_subspace_iff,subspace_of}.
    We have $A\subseteq C\inter Y$ by \cref{subseteq_closure,subseteq_inter_iff}.
    $T_Y$ is a topology on $Y$ by \cref{subspace_topology_is_topology}.
    Show that $B\subseteq C\inter Y$.
    \begin{subproof}
        Follows by \cref{closure_subseteq_closed}.
    \end{subproof}
    $B$ is closed in $Y$ with respect to $T_Y$ by \cref{closure_closed_in}.
    Take $D$ such that $D$ is closed in $X$ with respect to $T$ and $B = D\inter Y$
        by \cref{closed_in_subspace_iff,subspace_of}.
    We have $A\subseteq D$ by \cref{inter_lower_left,subseteq_closure,subseteq_transitive}.
    Hence $C\subseteq D$ by \cref{closure_subseteq_closed}.
    Show that $C\inter Y\subseteq B$.
    \begin{subproof}
        Follows by \cref{inter,elem_subseteq,inter_intro,subseteq}.
    \end{subproof}
    Therefore $B = C\inter Y$ by \cref{subseteq_antisymmetric}.
\end{proof}
Definition 152
intersects

$A$ intersects $B$ iff $A\inter B \class{latex-symbol-tip latex-symbol-id-neq}{\neq} \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

LaTeX source
\begin{definition}
\label{intersects}
    $A$ intersects $B$ iff $A\inter B \neq \emptyset$.
\end{definition}
Theorem 11
closure_iff_intersects_open

Assume $T$ is a topology on $X$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$ iff for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $U$ intersects $A$.

LaTeX source
\begin{theorem}
\label{closure_iff_intersects_open}
    Assume $T$ is a topology on $X$.
    Suppose $A\subseteq X$.
    Suppose $x\in X$.
    Then $x\in\closure{A}{X}{T}$ iff for all $U$ such that
        $U$ is open in $X$ with respect to $T$ and $x\in U$ we have $U$ intersects $A$.
\end{theorem}
Proof
Claim: If $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$ then for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $U$ intersects $A$.

Assume $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$.
Fix $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Suppose not.
We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U$ by Definition 152, Proposition 65 [Commutativity of intersection], Proposition 98.
Therefore $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U$ is closed in $X$ with respect to $T$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 149, Proposition 65 [Commutativity of intersection], Proposition 69, Proposition 91, Proposition 97.
Thus $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} U$ by Lemma 147, Proposition 4, Proposition 87.
Contradiction.

Claim: If for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $U$ intersects $A$ then for all $C$ such that $C$ is closed in $X$ with respect to $T$ and for all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.

Assume for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $U$ intersects $A$.
Fix $C$ such that $C$ is closed in $X$ with respect to $T$ and for all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
Suppose not.
We have $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ by Definition 149, Proposition 85.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C)\inter A$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $y\class{latex-symbol-tip latex-symbol-id-notin}{\notin} C$ by Definition 5, Proposition 87.
Therefore $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ does not intersect $A$ by Definition 152, Proposition 10.
Contradiction.

Claim: If for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $U$ intersects $A$ then $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$.

Assume for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $U$ intersects $A$.
For all $C$ such that $C$ is closed in $X$ with respect to $T$ and for all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$ by Definition 151.

LaTeX source
\begin{proof}
    Show that if $x\in\closure{A}{X}{T}$ then for all $U$ such that
        $U$ is open in $X$ with respect to $T$ and $x\in U$ we have $U$ intersects $A$.
    \begin{subproof}
        Assume $x\in\closure{A}{X}{T}$.
            Fix $U$ such that $U$ is open in $X$ with respect to $T$ and $x\in U$.
        Suppose not.
        We have $A\subseteq X\setminus U$ by \cref{intersects,inter_comm,subseteq_setminus}.
        Therefore $X\setminus U$ is closed in $X$ with respect to $T$ by
            \cref{setminus_setminus,inter_comm,topology_on,open_in,subseteq,pow_iff,inter_absorb_supseteq_right,setminus_subseteq,closed_in}.
        Thus $x\notin U$ by \cref{closure_subseteq_closed,elem_subseteq,setminus_elim_right}.
        Contradiction.
    \end{subproof}
    Show that if for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\in U$ we have $U$ intersects $A$
        then for all $C$ such that $C$ is closed in $X$ with respect to $T$ and
            for all $y\in A$ we have $y\in C$ we have $x\in C$.
    \begin{subproof}
        Assume for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\in U$ we have $U$ intersects $A$.
        Fix $C$ such that $C$ is closed in $X$ with respect to $T$ and
            for all $y\in A$ we have $y\in C$.
        Suppose not.
        We have $X\setminus C$ is open in $X$ with respect to $T$ and $x\in X\setminus C$ by \cref{closed_in,setminus_intro}.
        For all $y$ such that $y\in (X\setminus C)\inter A$ we have $y\in C$ and $y\notin C$
            by \cref{inter,setminus_elim_right}.
        Therefore $X\setminus C$ does not intersect $A$ by \cref{intersects,nonempty_inhabited}.
        Contradiction.
    \end{subproof}
    Show that if for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\in U$ we have $U$ intersects $A$
        then $x\in\closure{A}{X}{T}$.
    \begin{subproof}
        Assume for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\in U$ we have $U$ intersects $A$.
        For all $C$ such that $C$ is closed in $X$ with respect to $T$ and
            for all $y\in A$ we have $y\in C$ we have $x\in C$.
        Therefore $x\in\closure{A}{X}{T}$ by \cref{closure}.
    \end{subproof}
\end{proof}
Theorem 12
closure_iff_intersects_basis

Assume $T$ is a topology on $X$.
Suppose $B$ is a basis for $T$ on $X$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$ iff for all $B_1$ such that $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ we have $B_1$ intersects $A$.

LaTeX source
\begin{theorem}
\label{closure_iff_intersects_basis}
    Assume $T$ is a topology on $X$.
    Suppose $B$ is a basis for $T$ on $X$.
    Suppose $A\subseteq X$.
    Suppose $x\in X$.
    Then $x\in\closure{A}{X}{T}$ iff for all $B_1$ such that $B_1\in B$ and $x\in B_1$ we have $B_1$ intersects $A$.
\end{theorem}
Proof
Claim: If $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$ then for all $B_1$ such that $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ we have $B_1$ intersects $A$.
Claim: If for all $B_1$ such that $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ we have $B_1$ intersects $A$ then $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$.

Assume for all $B_1$ such that $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ we have $B_1$ intersects $A$.

Claim: For all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $U$ intersects $A$.

Fix $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in}\basisTopology{B}{X}$ by Definition 103, Definition 115.
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$ by Definition 114.
$B_1$ intersects $A$.
Take $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1\inter A$ by Definition 152, Proposition 10.
We have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 5, Proposition 4.
Hence $U$ intersects $A$ by Axiom 2, Definition 152, Proposition 61.

Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$ by Theorem 11.

LaTeX source
\begin{proof}
    Show that if $x\in\closure{A}{X}{T}$ then for all $B_1$ such that $B_1\in B$ and $x\in B_1$ we have $B_1$ intersects $A$.
    \begin{subproof}
        Follows by \cref{basis_for_topology,basis_elem_open_in_generated,open_in,closure_iff_intersects_open}.
    \end{subproof}
    Show that if for all $B_1$ such that $B_1\in B$ and $x\in B_1$ we have $B_1$ intersects $A$ then
        $x\in\closure{A}{X}{T}$.
    \begin{subproof}
        Assume for all $B_1$ such that $B_1\in B$ and $x\in B_1$ we have $B_1$ intersects $A$.
        Show that for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\in U$ we have $U$ intersects $A$.
        \begin{subproof}
            Fix $U$ such that $U$ is open in $X$ with respect to $T$ and $x\in U$.
            $U\in\basisTopology{B}{X}$ by \cref{open_in,basis_for_topology}.
            Take $B_1\in B$ such that $x\in B_1$ and $B_1\subseteq U$ by \cref{topology_generated_by_basis}.
            $B_1$ intersects $A$.
            Take $y$ such that $y\in B_1\inter A$ by \cref{intersects,nonempty_inhabited}.
            We have $y\in U$ and $y\in A$ by \cref{inter,elem_subseteq}.
            Hence $U$ intersects $A$ by \cref{inter_intro,emptyset,intersects}.
        \end{subproof}
        Therefore $x\in\closure{A}{X}{T}$ by \cref{closure_iff_intersects_open}.
    \end{subproof}
\end{proof}
Definition 153
neighborhood

$U$ is a neighborhood of $x$ in $X$ with respect to $T$ iff $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.

LaTeX source
\begin{definition}
\label{neighborhood}
    $U$ is a neighborhood of $x$ in $X$ with respect to $T$ iff
        $U$ is open in $X$ with respect to $T$ and $x\in U$.
\end{definition}
Definition 154
limit_point

$x$ is a limit point of $A$ in $X$ with respect to $T$ iff for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U$ intersects $A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\}$.

LaTeX source
\begin{definition}
\label{limit_point}
    $x$ is a limit point of $A$ in $X$ with respect to $T$ iff
        for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$
        we have $U$ intersects $A\setminus\{x\}$.
\end{definition}
Definition 155
limit_points

$\limitPoints{A}{X}{T} = \{x\class{latex-symbol-tip latex-symbol-id-in}{\in} X \mid \text{$x$ is a limit point of $A$ in $X$ with respect to $T$}\}$.

LaTeX source
\begin{definition}
\label{limit_points}
    $\limitPoints{A}{X}{T} = \{x\in X \mid \text{$x$ is a limit point of $A$ in $X$ with respect to $T$}\}$.
\end{definition}
Theorem 13
closure_union_limit_points

Assume $T$ is a topology on $X$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Then $\closure{A}{X}{T} = A\union\limitPoints{A}{X}{T}$.

LaTeX source
\begin{theorem}
\label{closure_union_limit_points}
    Assume $T$ is a topology on $X$.
    Suppose $A\subseteq X$.
    Then $\closure{A}{X}{T} = A\union\limitPoints{A}{X}{T}$.
\end{theorem}
Proof
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A\union\limitPoints{A}{X}{T}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A\union\limitPoints{A}{X}{T}$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ or $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\limitPoints{A}{X}{T}$ by Axiom 5.

Case. $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$ by Lemma 146, Proposition 4.

Case. $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\limitPoints{A}{X}{T}$.

We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x$ is a limit point of $A$ in $X$ with respect to $T$ by Definition 155.

Claim: For all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $U$ intersects $A$.

Fix $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
$U$ is a neighborhood of $x$ in $X$ with respect to $T$ by Definition 153.
We have $U$ intersects $A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\}$ by Definition 154.
Take $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U\inter(A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\})$ by Definition 152, Proposition 10.
We have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\}$ by Definition 5.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 86.
Therefore $U$ intersects $A$ by Axiom 2, Definition 152, Proposition 61.

Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$ by Theorem 11.

LaTeX source
\begin{byCase}
        \caseOf{$x\in A$.}
            We have $x\in\closure{A}{X}{T}$ by \cref{subseteq_closure,elem_subseteq}.
        \caseOf{$x\in\limitPoints{A}{X}{T}$.}
            We have $x\in X$ and $x$ is a limit point of $A$ in $X$ with respect to $T$ by \cref{limit_points}.
            Show that for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\in U$ we have $U$ intersects $A$.
            \begin{subproof}
                Fix $U$ such that $U$ is open in $X$ with respect to $T$ and $x\in U$.
                $U$ is a neighborhood of $x$ in $X$ with respect to $T$ by \cref{neighborhood}.
                We have $U$ intersects $A\setminus\{x\}$ by \cref{limit_point}.
                Take $y$ such that $y\in U\inter(A\setminus\{x\})$ by \cref{intersects,nonempty_inhabited}.
                We have $y\in U$ and $y\in A\setminus\{x\}$ by \cref{inter}.
                $y\in A$ by \cref{setminus_elim_left}.
                Therefore $U$ intersects $A$ by \cref{inter_intro,emptyset,intersects}.
            \end{subproof}
            Therefore $x\in\closure{A}{X}{T}$ by \cref{closure_iff_intersects_open}.
        
\end{byCase}

We have $A\union\limitPoints{A}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\closure{A}{X}{T}$ by Definition 1.

Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A\union\limitPoints{A}{X}{T}$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{A}{X}{T}$.

Case. $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A\union\limitPoints{A}{X}{T}$ by Proposition 38.

Case. $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} A$.
Claim: For all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U$ intersects $A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\}$.

Fix $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$.
We have $U$ intersects $A$ by Definition 151, Definition 153, Theorem 11.
Take $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U\inter A$ by Definition 152, Proposition 10.
$y\class{latex-symbol-tip latex-symbol-id-neq}{\neq} x$.
Therefore $U$ intersects $A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\}$ by Axiom 2, Definition 5, Definition 152, Proposition 22, Proposition 61, Proposition 85.

Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\limitPoints{A}{X}{T}$ by Definition 151, Definition 154, Definition 155.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A\union\limitPoints{A}{X}{T}$ by Proposition 39.

LaTeX source
\begin{byCase}
        \caseOf{$x\in A$.}
            We have $x\in A\union\limitPoints{A}{X}{T}$ by \cref{union_intro_left}.
        \caseOf{$x\notin A$.}
            Show that for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have
                $U$ intersects $A\setminus\{x\}$.
            \begin{subproof}
            Fix $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$.
                We have $U$ intersects $A$ by \cref{neighborhood,closure,closure_iff_intersects_open}.
                Take $y$ such that $y\in U\inter A$ by \cref{intersects,nonempty_inhabited}.
                $y\neq x$.
                Therefore $U$ intersects $A\setminus\{x\}$ by \cref{inter,singleton_iff,setminus_intro,inter_intro,emptyset,intersects}.
            \end{subproof}
            Therefore $x\in\limitPoints{A}{X}{T}$ by \cref{closure,limit_point,limit_points}.
            Hence $x\in A\union\limitPoints{A}{X}{T}$ by \cref{union_intro_right}.
        
\end{byCase}

We have $\closure{A}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A\union\limitPoints{A}{X}{T}$ by Definition 1.
Therefore $\closure{A}{X}{T} = A\union\limitPoints{A}{X}{T}$ by Proposition 3.

LaTeX source
\begin{proof}
    Show that for all $x$ such that $x\in A\union\limitPoints{A}{X}{T}$ we have $x\in\closure{A}{X}{T}$.
    \begin{subproof}
        Fix $x$ such that $x\in A\union\limitPoints{A}{X}{T}$.
        We have $x\in A$ or $x\in\limitPoints{A}{X}{T}$ by \cref{union_iff}.
        \begin{byCase}
        \caseOf{$x\in A$.}
            We have $x\in\closure{A}{X}{T}$ by \cref{subseteq_closure,elem_subseteq}.
        \caseOf{$x\in\limitPoints{A}{X}{T}$.}
            We have $x\in X$ and $x$ is a limit point of $A$ in $X$ with respect to $T$ by \cref{limit_points}.
            Show that for all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\in U$ we have $U$ intersects $A$.
            \begin{subproof}
                Fix $U$ such that $U$ is open in $X$ with respect to $T$ and $x\in U$.
                $U$ is a neighborhood of $x$ in $X$ with respect to $T$ by \cref{neighborhood}.
                We have $U$ intersects $A\setminus\{x\}$ by \cref{limit_point}.
                Take $y$ such that $y\in U\inter(A\setminus\{x\})$ by \cref{intersects,nonempty_inhabited}.
                We have $y\in U$ and $y\in A\setminus\{x\}$ by \cref{inter}.
                $y\in A$ by \cref{setminus_elim_left}.
                Therefore $U$ intersects $A$ by \cref{inter_intro,emptyset,intersects}.
            \end{subproof}
            Therefore $x\in\closure{A}{X}{T}$ by \cref{closure_iff_intersects_open}.
        \end{byCase}
    \end{subproof}
    We have $A\union\limitPoints{A}{X}{T}\subseteq\closure{A}{X}{T}$ by \cref{subseteq}.
    Show that for all $x$ such that $x\in\closure{A}{X}{T}$ we have $x\in A\union\limitPoints{A}{X}{T}$.
    \begin{subproof}
        Fix $x$ such that $x\in\closure{A}{X}{T}$.
        \begin{byCase}
        \caseOf{$x\in A$.}
            We have $x\in A\union\limitPoints{A}{X}{T}$ by \cref{union_intro_left}.
        \caseOf{$x\notin A$.}
            Show that for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have
                $U$ intersects $A\setminus\{x\}$.
            \begin{subproof}
            Fix $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$.
                We have $U$ intersects $A$ by \cref{neighborhood,closure,closure_iff_intersects_open}.
                Take $y$ such that $y\in U\inter A$ by \cref{intersects,nonempty_inhabited}.
                $y\neq x$.
                Therefore $U$ intersects $A\setminus\{x\}$ by \cref{inter,singleton_iff,setminus_intro,inter_intro,emptyset,intersects}.
            \end{subproof}
            Therefore $x\in\limitPoints{A}{X}{T}$ by \cref{closure,limit_point,limit_points}.
            Hence $x\in A\union\limitPoints{A}{X}{T}$ by \cref{union_intro_right}.
        \end{byCase}
    \end{subproof}
    We have $\closure{A}{X}{T}\subseteq A\union\limitPoints{A}{X}{T}$ by \cref{subseteq}.
    Therefore $\closure{A}{X}{T} = A\union\limitPoints{A}{X}{T}$ by \cref{subseteq_antisymmetric}.
\end{proof}
Corollary 9
closed_iff_contains_limit_points

Assume $T$ is a topology on $X$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Then $A$ is closed in $X$ with respect to $T$ iff $\limitPoints{A}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.

LaTeX source
\begin{corollary}
\label{closed_iff_contains_limit_points}
    Assume $T$ is a topology on $X$.
    Suppose $A\subseteq X$.
    Then $A$ is closed in $X$ with respect to $T$ iff $\limitPoints{A}{X}{T}\subseteq A$.
\end{corollary}
Proof
Claim: If $A$ is closed in $X$ with respect to $T$ then $\limitPoints{A}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.
Claim: If $\limitPoints{A}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ then $A$ is closed in $X$ with respect to $T$.
LaTeX source
\begin{proof}
    Show that if $A$ is closed in $X$ with respect to $T$ then $\limitPoints{A}{X}{T}\subseteq A$.
    \begin{subproof}
        Follows by \cref{closed_eq_closure,closure_union_limit_points,union_comm,union_eq_self_implies_subseteq}.
    \end{subproof}
    Show that if $\limitPoints{A}{X}{T}\subseteq A$ then $A$ is closed in $X$ with respect to $T$.
    \begin{subproof}
        Follows by \cref{union_absorb_subseteq_right,closure_union_limit_points,closure_closed_in}.
    \end{subproof}
\end{proof}
Definition 156
hausdorff

$X$ is Hausdorff with respect to $T$ iff $T$ is a topology on $X$ and for all $x_1,x_2$ such that $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_1\class{latex-symbol-tip latex-symbol-id-neq}{\neq} x_2$ there exist $U_1,U_2$ such that $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ and $U_1$ is disjoint from $U_2$.

LaTeX source
\begin{definition}
\label{hausdorff}
    $X$ is Hausdorff with respect to $T$ iff
        $T$ is a topology on $X$ and
        for all $x_1,x_2$ such that $x_1\in X$ and $x_2\in X$ and $x_1\neq x_2$
        there exist $U_1,U_2$ such that
            $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
            $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ and
            $U_1$ is disjoint from $U_2$.
\end{definition}
Lemma 150
finite_bijection

Suppose $A$ is finite.
Suppose $f$ is a bijection from $A$ to $B$.
Then $B$ is finite.

LaTeX source
\begin{lemma}
\label{finite_bijection}
    Suppose $A$ is finite.
    Suppose $f$ is a bijection from $A$ to $B$.
    Then $B$ is finite.
\end{lemma}
Proof
Case. $A$ is empty.
Claim: For all $b$ we have $b\class{latex-symbol-tip latex-symbol-id-notin}{\notin} B$.

Fix $b$.
Suppose not.
Then $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
$f\class{latex-symbol-tip latex-symbol-id-in}{\in}\surj{A}{B}$ by Definition 58.
Take $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $f(a) = b$ by Definition 57.
Contradiction.

Hence $B$ is empty.
Thus $B$ is finite by Definition 89.

Case. $A$ is not empty.

Take $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that there exists a bijection from $\initialSegment{k}$ to $A$ by Definition 89.
Take $g$ such that $g$ is a bijection from $\initialSegment{k}$ to $A$.
$f\class{latex-symbol-tip latex-symbol-id-circ}{\circ} g$ is a bijection from $\initialSegment{k}$ to $B$ by Proposition 392.
Thus $B$ is finite by Definition 89.

LaTeX source
\begin{byCase}
    \caseOf{$A$ is empty.}
        Show that for all $b$ we have $b\notin B$.
        \begin{subproof}
            Fix $b$.
            Suppose not.
            Then $b\in B$.
            $f\in\surj{A}{B}$ by \cref{bijections}.
            Take $a\in A$ such that $f(a) = b$ by \cref{surj}.
            Contradiction.
        \end{subproof}
        Hence $B$ is empty.
        Thus $B$ is finite by \cref{finite}.
    \caseOf{$A$ is not empty.}
        Take $k\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{k}$ to $A$ by \cref{finite}.
        Take $g$ such that $g$ is a bijection from $\initialSegment{k}$ to $A$.
        $f\circ g$ is a bijection from $\initialSegment{k}$ to $B$ by \cref{bijection_circ}.
        Thus $B$ is finite by \cref{finite}.
    
\end{byCase}
LaTeX source
\begin{proof}
    \begin{byCase}
    \caseOf{$A$ is empty.}
        Show that for all $b$ we have $b\notin B$.
        \begin{subproof}
            Fix $b$.
            Suppose not.
            Then $b\in B$.
            $f\in\surj{A}{B}$ by \cref{bijections}.
            Take $a\in A$ such that $f(a) = b$ by \cref{surj}.
            Contradiction.
        \end{subproof}
        Hence $B$ is empty.
        Thus $B$ is finite by \cref{finite}.
    \caseOf{$A$ is not empty.}
        Take $k\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{k}$ to $A$ by \cref{finite}.
        Take $g$ such that $g$ is a bijection from $\initialSegment{k}$ to $A$.
        $f\circ g$ is a bijection from $\initialSegment{k}$ to $B$ by \cref{bijection_circ}.
        Thus $B$ is finite by \cref{finite}.
    \end{byCase}
\end{proof}
Lemma 151
singleton_family_bijection

Let $S = \{\{x\} \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} A\}$.
Then there exists a bijection from $A$ to $S$.

LaTeX source
\begin{lemma}
\label{singleton_family_bijection}
    Let $S = \{\{x\} \mid x\in A\}$.
    Then there exists a bijection from $A$ to $S$.
\end{lemma}
Proof

Let $f = \{(x,\{x\}) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} A\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ there exist $x,y$ such that $w = (x,y)$.
For all $x,y,z$ such that $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ and $(x,z)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ we have $y = z$ by Axiom 6.
Hence $f$ is a function by Definition 12, Definition 51.
$f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{A}{S}$ by Axiom 6, Definition 1, Proposition 3, Proposition 199, Proposition 349, Proposition 358.
We have $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\surj{A}{S}$ by Axiom 6, Definition 1, Proposition 3, Proposition 208, Corollary 8.
Therefore there exists a bijection from $A$ to $S$ by Axiom 6, Definition 50, Definition 58, Proposition 20, Proposition 21.

LaTeX source
\begin{proof}
    Let $f = \{(x,\{x\}) \mid x\in A\}$.
    For all $w$ such that $w\in f$ there exist $x,y$ such that $w = (x,y)$.
    For all $x,y,z$ such that $(x,y)\in f$ and $(x,z)\in f$ we have $y = z$ by \cref{pair_eq_iff}.
    Hence $f$ is a function by \cref{relation,rightunique}.
    $f\in\funs{A}{S}$ by
        \cref{dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric,function_apply_iff,funs_intro}.
    We have $f\in\surj{A}{S}$ by \cref{ran_iff,pair_eq_iff,subseteq,subseteq_antisymmetric,funs_surj_iff}.
    Therefore there exists a bijection from $A$ to $S$ by \cref{pair_eq_iff,singleton_elim,singleton_intro,injective,bijections}.
\end{proof}
Theorem 14
finite_point_set_closed_hausdorff

Assume $X$ is Hausdorff with respect to $T$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $A$ is finite.
Then $A$ is closed in $X$ with respect to $T$.

LaTeX source
\begin{theorem}
\label{finite_point_set_closed_hausdorff}
    Assume $X$ is Hausdorff with respect to $T$.
    Suppose $A\subseteq X$.
    Suppose $A$ is finite.
    Then $A$ is closed in $X$ with respect to $T$.
\end{theorem}
Proof

$T$ is a topology on $X$ by Definition 156.

Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $\{x\}$ is closed in $X$ with respect to $T$.

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

Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\limitPoints{\{x\}}{X}{T}$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\{x\}$.

Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\limitPoints{\{x\}}{X}{T}$.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y$ is a limit point of $\{x\}$ in $X$ with respect to $T$ by Definition 155.
Suppose not.
Take $U_1,U_2$ such that $U_1$ is a neighborhood of $y$ in $X$ with respect to $T$ and $U_2$ is a neighborhood of $x$ in $X$ with respect to $T$ and $U_1$ is disjoint from $U_2$ by Definition 156, Proposition 22.
For all $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1\inter (\{x\}\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{y\})$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U_2$ by Definition 5, Definition 153, Proposition 21, Proposition 86.
Hence $U_1$ does not intersect $\{x\}\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{y\}$ by Axiom 2, Definition 3, Definition 152, Definition 152, Proposition 10, Proposition 61.
Therefore $y$ is not a limit point of $\{x\}$ in $X$ with respect to $T$ by Definition 154.
Contradiction.

Therefore $\{x\}$ is closed in $X$ with respect to $T$ by Definition 1, Proposition 25, Corollary 9.

Let $F = \{\{x\} \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} A\}$.
We have $F$ is finite and $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{X}$ by Definition 1, Lemma 150, Lemma 151, Proposition 4, Proposition 25, Proposition 155.

Claim: For all $B$ such that $B\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $B$ is closed in $X$ with respect to $T$.

Fix $B$ such that $B\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
Take $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $\{x\} = B$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
Therefore $B$ is closed in $X$ with respect to $T$.

Claim: For all $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{F}$.

Fix $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
We have $\{z\}\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in}\{z\}$ by Proposition 20.
Therefore $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{F}$ by Axiom 4.

We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{F}$ by Definition 1.

Claim: For all $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{F}$ we have $z\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

Fix $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{F}$.
Take $B\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Axiom 4.
Take $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $\{x\} = B$.
We have $z = x$ by Proposition 21.
Therefore $z\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

We have $\unions{F}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1.
Therefore $A = \unions{F}$ by Proposition 3.
Hence $\unions{F}$ is closed in $X$ with respect to $T$ by Lemma 142.
Therefore $A$ is closed in $X$ with respect to $T$.

LaTeX source
\begin{proof}
    $T$ is a topology on $X$ by \cref{hausdorff}.
    Show that for all $x$ such that $x\in X$ we have $\{x\}$ is closed in $X$ with respect to $T$.
    \begin{subproof}
        Fix $x$ such that $x\in X$.
        Show that for all $y$ such that $y\in\limitPoints{\{x\}}{X}{T}$ we have $y\in\{x\}$.
        \begin{subproof}
            Fix $y$ such that $y\in\limitPoints{\{x\}}{X}{T}$.
            $y\in X$ and $y$ is a limit point of $\{x\}$ in $X$ with respect to $T$ by \cref{limit_points}.
            Suppose not.
            Take $U_1,U_2$ such that
                $U_1$ is a neighborhood of $y$ in $X$ with respect to $T$ and
                $U_2$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                $U_1$ is disjoint from $U_2$ by \cref{singleton_iff,hausdorff}.
            For all $z$ such that $z\in U_1\inter (\{x\}\setminus\{y\})$ we have $x\in U_1$ and $x\in U_2$
                by \cref{inter,setminus_elim_left,singleton_elim,neighborhood}.
            Hence $U_1$ does not intersect $\{x\}\setminus\{y\}$ by \cref{intersects,nonempty_inhabited,inter_intro,emptyset,intersects,disjoint}.
            Therefore $y$ is not a limit point of $\{x\}$ in $X$ with respect to $T$ by \cref{limit_point}.
            Contradiction.
        \end{subproof}
        Therefore $\{x\}$ is closed in $X$ with respect to $T$ by \cref{subseteq,singleton_subset_intro,closed_iff_contains_limit_points}.
    \end{subproof}
    Let $F = \{\{x\} \mid x\in A\}$.
    We have $F$ is finite and $F\subseteq\pow{X}$ by
        \cref{singleton_family_bijection,finite_bijection,elem_subseteq,singleton_subset_intro,powerset_intro,subseteq}.
    Show that for all $B$ such that $B\in F$ we have $B$ is closed in $X$ with respect to $T$.
    \begin{subproof}
        Fix $B$ such that $B\in F$.
        Take $x$ such that $x\in A$ and $\{x\} = B$.
        $x\in X$ by \cref{subseteq}.
        Therefore $B$ is closed in $X$ with respect to $T$.
    \end{subproof}
    Show that for all $z$ such that $z\in A$ we have $z\in\unions{F}$.
    \begin{subproof}
        Fix $z$ such that $z\in A$.
        We have $\{z\}\in F$.
        $z\in\{z\}$ by \cref{singleton_intro}.
        Therefore $z\in\unions{F}$ by \cref{unions_iff}.
    \end{subproof}
    We have $A\subseteq\unions{F}$ by \cref{subseteq}.
    Show that for all $z$ such that $z\in\unions{F}$ we have $z\in A$.
    \begin{subproof}
        Fix $z$ such that $z\in\unions{F}$.
        Take $B\in F$ such that $z\in B$ by \cref{unions_iff}.
        Take $x$ such that $x\in A$ and $\{x\} = B$.
        We have $z = x$ by \cref{singleton_elim}.
        Therefore $z\in A$.
    \end{subproof}
    We have $\unions{F}\subseteq A$ by \cref{subseteq}.
    Therefore $A = \unions{F}$ by \cref{subseteq_antisymmetric}.
    Hence $\unions{F}$ is closed in $X$ with respect to $T$ by \cref{closed_finite_unions}.
    Therefore $A$ is closed in $X$ with respect to $T$.
\end{proof}
Definition 157
t1_axiom

$X$ satisfies the T-one axiom with respect to $T$ iff $T$ is a topology on $X$ and for all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $A$ is finite we have $A$ is closed in $X$ with respect to $T$.

LaTeX source
\begin{definition}
\label{t1_axiom}
    $X$ satisfies the T-one axiom with respect to $T$ iff
        $T$ is a topology on $X$ and
        for all $A$ such that $A\subseteq X$ and $A$ is finite
        we have $A$ is closed in $X$ with respect to $T$.
\end{definition}
Lemma 152
inter_empty_setminus_singleton_subset_singleton

Suppose $U\inter (A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\}) = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Then $U\inter A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\{x\}$.

LaTeX source
\begin{lemma}
\label{inter_empty_setminus_singleton_subset_singleton}
    Suppose $U\inter (A\setminus\{x\}) = \emptyset$.
    Then $U\inter A\subseteq\{x\}$.
\end{lemma}
Proof

Follows by Axiom 2, Definition 1, Definition 5, Proposition 22, Proposition 61, Proposition 85.

LaTeX source
\begin{proof}
    Follows by \cref{subseteq,setminus_intro,inter,inter_intro,emptyset,singleton_iff}.
\end{proof}
Theorem 15
limit_point_infinite_neighborhood

Assume $X$ satisfies the T-one axiom with respect to $T$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $x$ is a limit point of $A$ in $X$ with respect to $T$ iff for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U\inter A$ is infinite.

LaTeX source
\begin{theorem}
\label{limit_point_infinite_neighborhood}
    Assume $X$ satisfies the T-one axiom with respect to $T$.
    Suppose $A\subseteq X$.
    Suppose $x\in X$.
    Then $x$ is a limit point of $A$ in $X$ with respect to $T$ iff
        for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U\inter A$ is infinite.
\end{theorem}
Proof
Claim: If $x$ is a limit point of $A$ in $X$ with respect to $T$ then for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U\inter A$ is infinite.

Assume $x$ is a limit point of $A$ in $X$ with respect to $T$.
Fix $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$.
Suppose not.
$U\inter A$ is finite.
Let $B = U\inter (A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\})$.
We have $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U\inter A$ by Definition 1, Definition 5, Proposition 72, Proposition 86.
We have $B$ is finite by Lemma 44.
$B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $T$ is a topology on $X$ and $B$ is closed in $X$ with respect to $T$ by Definition 1, Definition 5, Definition 157, Proposition 6.
Therefore $U\inter (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} B)$ is open in $X$ with respect to $T$ by Definition 101, Definition 103, Definition 149, Definition 153, Definition 157.
$x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} B$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U\inter (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} B)$ by Definition 153, Proposition 61, Proposition 85.
Therefore $U\inter (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} B)$ is a neighborhood of $x$ in $X$ with respect to $T$ by Definition 153.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} (U\inter (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} B)) \inter (A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\})$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $y\class{latex-symbol-tip latex-symbol-id-notin}{\notin} B$ by Definition 5, Proposition 61, Proposition 87.
Hence $U\inter (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} B)$ does not intersect $A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\}$ by Definition 152, Proposition 10.
Contradiction by Definition 154.

Claim: If for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U\inter A$ is infinite then for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U$ intersects $A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\}$.

Assume for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U\inter A$ is infinite.
Fix $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$.
Suppose not.
Hence $U\inter (A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\}) = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Therefore $U\inter A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\{x\}$ by Lemma 152.
Therefore $U\inter A$ is finite by Lemma 40, Lemma 44, Proposition 16, Proposition 20, Proposition 25.
Contradiction.

Claim: If for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U\inter A$ is infinite then $x$ is a limit point of $A$ in $X$ with respect to $T$.

Assume for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U\inter A$ is infinite.
We have for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U$ intersects $A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{x\}$.
Therefore $x$ is a limit point of $A$ in $X$ with respect to $T$ by Definition 154.

LaTeX source
\begin{proof}
    Show that if $x$ is a limit point of $A$ in $X$ with respect to $T$ then
        for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U\inter A$ is infinite.
    \begin{subproof}
        Assume $x$ is a limit point of $A$ in $X$ with respect to $T$.
        Fix $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$.
        Suppose not.
        $U\inter A$ is finite.
        Let $B = U\inter (A\setminus\{x\})$.
        We have $B\subseteq U\inter A$ by \cref{inter,setminus_elim_left,subseteq,subseteq_inter_iff}.
        We have $B$ is finite by \cref{subseteq_finite_is_finite}.
        $B\subseteq X$ and $T$ is a topology on $X$ and $B$ is closed in $X$ with respect to $T$ by
            \cref{inter,subseteq,subseteq_transitive,t1_axiom}.
        Therefore $U\inter (X\setminus B)$ is open in $X$ with respect to $T$ by
            \cref{neighborhood,open_in,closed_in,topology_on,t1_axiom}.
        $x\notin B$.
        We have $x\in U\inter (X\setminus B)$ by \cref{neighborhood,setminus_intro,inter_intro}.
        Therefore $U\inter (X\setminus B)$ is a neighborhood of $x$ in $X$ with respect to $T$ by \cref{neighborhood}.
        For all $y$ such that $y\in (U\inter (X\setminus B)) \inter (A\setminus\{x\})$ we have
            $y\in B$ and $y\notin B$ by \cref{inter,inter_intro,setminus_elim_right}.
        Hence $U\inter (X\setminus B)$ does not intersect $A\setminus\{x\}$ by \cref{intersects,nonempty_inhabited}.
        Contradiction by \cref{limit_point}.
    \end{subproof}
    Show that if for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U\inter A$ is infinite then
        for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have
            $U$ intersects $A\setminus\{x\}$.
    \begin{subproof}
        Assume for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U\inter A$ is infinite.
        Fix $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$.
        Suppose not.
        Hence $U\inter (A\setminus\{x\}) = \emptyset$.
        Therefore $U\inter A\subseteq\{x\}$ by \cref{inter_empty_setminus_singleton_subset_singleton}.
        Therefore $U\inter A$ is finite by \cref{singleton_subset_intro,pair_is_finite,upair_intro_left,singleton_intro,subseteq_finite_is_finite}.
        Contradiction.
    \end{subproof}
    Show that if for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U\inter A$ is infinite then
        $x$ is a limit point of $A$ in $X$ with respect to $T$.
    \begin{subproof}
        Assume for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have $U\inter A$ is infinite.
        We have for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have
            $U$ intersects $A\setminus\{x\}$.
        Therefore $x$ is a limit point of $A$ in $X$ with respect to $T$ by \cref{limit_point}.
    \end{subproof}
\end{proof}
Definition 158
sequence_in

$s$ is a sequence in $X$ iff $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\naturalsPlus}{X}$.

LaTeX source
\begin{definition}
\label{sequence_in}
    $s$ is a sequence in $X$ iff $s\in\funs{\naturalsPlus}{X}$.
\end{definition}
Definition 159
converges_to

$s$ converges to $x$ in $X$ with respect to $T$ iff $s$ is a sequence in $X$ and for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.

LaTeX source
\begin{definition}
\label{converges_to}
    $s$ converges to $x$ in $X$ with respect to $T$ iff
        $s$ is a sequence in $X$ and
        for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$
        there exists $N\in\naturalsPlus$ such that for all $n$ such that $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
\end{definition}
Theorem 16
sequence_limit_unique

Assume $X$ is Hausdorff with respect to $T$.
Suppose $s$ is a sequence in $X$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $s$ converges to $x$ in $X$ with respect to $T$.
Suppose $s$ converges to $y$ in $X$ with respect to $T$.
Then $x = y$.

LaTeX source
\begin{theorem}
\label{sequence_limit_unique}
    Assume $X$ is Hausdorff with respect to $T$.
    Suppose $s$ is a sequence in $X$.
    Suppose $x\in X$.
    Suppose $y\in X$.
    Suppose $s$ converges to $x$ in $X$ with respect to $T$.
    Suppose $s$ converges to $y$ in $X$ with respect to $T$.
    Then $x = y$.
\end{theorem}
Proof

Suppose not.
Take $U_1,U_2$ such that $U_1$ is a neighborhood of $x$ in $X$ with respect to $T$ and $U_2$ is a neighborhood of $y$ in $X$ with respect to $T$ and $U_1$ is disjoint from $U_2$ by Definition 156.
Take $N_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N_1\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1$ by Definition 159.
Take $N_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N_2\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U_2$ by Definition 159.
Take $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\{N_1,N_2\}$ such that for all $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\{N_1,N_2\}$ we have $a\class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ by Axiom 2, Definition 1, Lemma 40, Lemma 50, Proposition 19.
We have $N_1\class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ and $N_2\class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ by Proposition 19.
Therefore $s(m)\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1$ and $s(m)\class{latex-symbol-tip latex-symbol-id-in}{\in} U_2$.
Hence $U_1$ intersects $U_2$ by Axiom 2, Definition 152, Proposition 61.
Contradiction by Definition 3.

LaTeX source
\begin{proof}
    Suppose not.
    Take $U_1,U_2$ such that
        $U_1$ is a neighborhood of $x$ in $X$ with respect to $T$ and
        $U_2$ is a neighborhood of $y$ in $X$ with respect to $T$ and
        $U_1$ is disjoint from $U_2$ by \cref{hausdorff}.
    Take $N_1\in\naturalsPlus$ such that for all $n$ such that $n\in\naturalsPlus$ if $N_1\leq n$ then $s(n)\in U_1$ by \cref{converges_to}.
    Take $N_2\in\naturalsPlus$ such that for all $n$ such that $n\in\naturalsPlus$ if $N_2\leq n$ then $s(n)\in U_2$ by \cref{converges_to}.
    Take $m\in\{N_1,N_2\}$ such that for all $a\in\{N_1,N_2\}$ we have $a\leq m$ by
        \cref{upair_iff,subseteq,pair_is_finite,emptyset,finite_naturals_maximum}.
    We have $N_1\leq m$ and $N_2\leq m$ by \cref{upair_iff}.
    Therefore $s(m)\in U_1$ and $s(m)\in U_2$.
    Hence $U_1$ intersects $U_2$ by \cref{inter_intro,emptyset,intersects}.
    Contradiction by \cref{disjoint}.
\end{proof}
Lemma 153
openrayright_open_in_order_topology

Assume $R$ is a simple order relation on $X$.
Assume $X$ has more than one element.
Assume $T$ is the order topology on $X$ with respect to $R$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\openrayright{R}{X}{a}$ is open in $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{openrayright_open_in_order_topology}
    Assume $R$ is a simple order relation on $X$.
    Assume $X$ has more than one element.
    Assume $T$ is the order topology on $X$ with respect to $R$.
    Suppose $a\in X$.
    Then $\openrayright{R}{X}{a}$ is open in $X$ with respect to $T$.
\end{lemma}
Proof

$\openrayright{R}{X}{a}\class{latex-symbol-tip latex-symbol-id-in}{\in} \openRays{R}{X}$ and $\openrayright{R}{X}{a}\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 1, Definition 124, Definition 125, Definition 126, Definition 135, Definition 139, Lemma 40, Lemma 44, Lemma 77, Lemma 99, Lemma 117, Lemma 125, Proposition 16, Proposition 20, Proposition 25, Proposition 36, Proposition 155.
Hence $\openrayright{R}{X}{a}$ is open in $X$ with respect to $T$ by Definition 103, Definition 134, Lemma 76, Lemma 113.

LaTeX source
\begin{proof}
    $\openrayright{R}{X}{a}\in \openRays{R}{X}$ and $\openrayright{R}{X}{a}\in T$ by
        \cref{open_rays_subbasis_on,subbasis_on,openray_right,subseteq,powerset_intro,open_rays,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,open_rays_subbasis}.
    Hence $\openrayright{R}{X}{a}$ is open in $X$ with respect to $T$ by
        \cref{order_basis_is_basis,basis_topology_is_topology,order_topology,open_in}.
\end{proof}
Lemma 154
openrayleft_open_in_order_topology

Assume $R$ is a simple order relation on $X$.
Assume $X$ has more than one element.
Assume $T$ is the order topology on $X$ with respect to $R$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\openrayleft{R}{X}{a}$ is open in $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{openrayleft_open_in_order_topology}
    Assume $R$ is a simple order relation on $X$.
    Assume $X$ has more than one element.
    Assume $T$ is the order topology on $X$ with respect to $R$.
    Suppose $a\in X$.
    Then $\openrayleft{R}{X}{a}$ is open in $X$ with respect to $T$.
\end{lemma}
Proof

$\openrayleft{R}{X}{a}\class{latex-symbol-tip latex-symbol-id-in}{\in} \openRays{R}{X}$ and $\openrayleft{R}{X}{a}\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 1, Definition 124, Definition 125, Definition 126, Definition 136, Definition 139, Lemma 40, Lemma 44, Lemma 77, Lemma 99, Lemma 117, Lemma 125, Proposition 16, Proposition 20, Proposition 25, Proposition 36, Proposition 155.
Hence $\openrayleft{R}{X}{a}$ is open in $X$ with respect to $T$ by Definition 103, Definition 134, Lemma 76, Lemma 113.

LaTeX source
\begin{proof}
    $\openrayleft{R}{X}{a}\in \openRays{R}{X}$ and $\openrayleft{R}{X}{a}\in T$ by
        \cref{open_rays_subbasis_on,subbasis_on,openray_left,subseteq,powerset_intro,open_rays,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,open_rays_subbasis}.
    Hence $\openrayleft{R}{X}{a}$ is open in $X$ with respect to $T$ by
        \cref{order_basis_is_basis,basis_topology_is_topology,order_topology,open_in}.
\end{proof}
Theorem 17
order_topology_hausdorff

Assume $R$ is a simple order relation on $X$.
Assume $X$ has more than one element.
Assume $T$ is the order topology on $X$ with respect to $R$.
Then $X$ is Hausdorff with respect to $T$.

LaTeX source
\begin{theorem}
\label{order_topology_hausdorff}
    Assume $R$ is a simple order relation on $X$.
    Assume $X$ has more than one element.
    Assume $T$ is the order topology on $X$ with respect to $R$.
    Then $X$ is Hausdorff with respect to $T$.
\end{theorem}
Proof
Claim: For all $x_1,x_2$ such that $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_1\class{latex-symbol-tip latex-symbol-id-neq}{\neq} x_2$ there exist $U_1,U_2$ such that $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ and $U_1$ is disjoint from $U_2$.

Fix $x_1$.
Fix $x_2$ such that $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_1\class{latex-symbol-tip latex-symbol-id-neq}{\neq} x_2$.
We have $x_1\mathrel{R}x_2$ or $x_2\mathrel{R}x_1$ by Definition 40, Definition 98.

Case. $x_1\mathrel{R}x_2$.
Case. there exists $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $x_1\mathrel{R}z$ and $z\mathrel{R}x_2$.

Take $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $x_1\mathrel{R}z$ and $z\mathrel{R}x_2$.
Let $U_1 = \openrayleft{R}{X}{z}$.
Let $U_2 = \openrayright{R}{X}{z}$.
Therefore $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ by Definition 135, Definition 136, Definition 153, Lemma 153, Lemma 154.
$U_1$ is disjoint from $U_2$ by Definition 3, Definition 36, Definition 98, Definition 135, Definition 136.

Case. there exists no $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $x_1\mathrel{R}z$ and $z\mathrel{R}x_2$.

Let $U_1 = \openrayleft{R}{X}{x_2}$.
Let $U_2 = \openrayright{R}{X}{x_1}$.
Hence $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ by Definition 135, Definition 136, Definition 153, Lemma 153, Lemma 154.
$U_1$ is disjoint from $U_2$ by Definition 3, Definition 135, Definition 136.

LaTeX source
\begin{byCase}
            \caseOf{there exists $z\in X$ such that $x_1\mathrel{R}z$ and $z\mathrel{R}x_2$.}
                Take $z\in X$ such that $x_1\mathrel{R}z$ and $z\mathrel{R}x_2$.
                Let $U_1 = \openrayleft{R}{X}{z}$.
                Let $U_2 = \openrayright{R}{X}{z}$.
                Therefore $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                    $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$
                    by \cref{openrayleft_open_in_order_topology,openrayright_open_in_order_topology,openray_left,openray_right,neighborhood}.
                $U_1$ is disjoint from $U_2$ by
                    \cref{disjoint,openray_left,openray_right,simple_order_relation,asymmetric}.
            \caseOf{there exists no $z\in X$ such that $x_1\mathrel{R}z$ and $z\mathrel{R}x_2$.}
                Let $U_1 = \openrayleft{R}{X}{x_2}$.
                Let $U_2 = \openrayright{R}{X}{x_1}$.
                Hence $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                    $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$
                    by \cref{openrayleft_open_in_order_topology,openrayright_open_in_order_topology,openray_left,openray_right,neighborhood}.
                $U_1$ is disjoint from $U_2$ by \cref{disjoint,openray_right,openray_left}.
            
\end{byCase}
Case. $x_2\mathrel{R}x_1$.
Case. there exists $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $x_2\mathrel{R}z$ and $z\mathrel{R}x_1$.

Take $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $x_2\mathrel{R}z$ and $z\mathrel{R}x_1$.
Let $U_2 = \openrayleft{R}{X}{z}$.
Let $U_1 = \openrayright{R}{X}{z}$.
Therefore $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ by Definition 135, Definition 136, Definition 153, Lemma 153, Lemma 154.
$U_1$ is disjoint from $U_2$ by Definition 3, Definition 36, Definition 98, Definition 135, Definition 136.

Case. there exists no $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $x_2\mathrel{R}z$ and $z\mathrel{R}x_1$.

Let $U_2 = \openrayleft{R}{X}{x_1}$.
Let $U_1 = \openrayright{R}{X}{x_2}$.
Hence $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ by Definition 135, Definition 136, Definition 153, Lemma 153, Lemma 154.
$U_1$ is disjoint from $U_2$ by Definition 3, Definition 135, Definition 136.

LaTeX source
\begin{byCase}
            \caseOf{there exists $z\in X$ such that $x_2\mathrel{R}z$ and $z\mathrel{R}x_1$.}
                Take $z\in X$ such that $x_2\mathrel{R}z$ and $z\mathrel{R}x_1$.
                Let $U_2 = \openrayleft{R}{X}{z}$.
                Let $U_1 = \openrayright{R}{X}{z}$.
                Therefore $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                    $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$
                    by \cref{openrayright_open_in_order_topology,openrayleft_open_in_order_topology,openray_left,openray_right,neighborhood}.
                $U_1$ is disjoint from $U_2$ by
                    \cref{disjoint,openray_right,openray_left,simple_order_relation,asymmetric}.
            \caseOf{there exists no $z\in X$ such that $x_2\mathrel{R}z$ and $z\mathrel{R}x_1$.}
                Let $U_2 = \openrayleft{R}{X}{x_1}$.
                Let $U_1 = \openrayright{R}{X}{x_2}$.
                Hence $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                    $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$
                    by \cref{openrayright_open_in_order_topology,openrayleft_open_in_order_topology,openray_left,openray_right,neighborhood}.
                $U_1$ is disjoint from $U_2$ by \cref{disjoint,openray_right,openray_left}.
            
\end{byCase}
LaTeX source
\begin{byCase}
        \caseOf{$x_1\mathrel{R}x_2$.}
            \begin{byCase}
            \caseOf{there exists $z\in X$ such that $x_1\mathrel{R}z$ and $z\mathrel{R}x_2$.}
                Take $z\in X$ such that $x_1\mathrel{R}z$ and $z\mathrel{R}x_2$.
                Let $U_1 = \openrayleft{R}{X}{z}$.
                Let $U_2 = \openrayright{R}{X}{z}$.
                Therefore $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                    $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$
                    by \cref{openrayleft_open_in_order_topology,openrayright_open_in_order_topology,openray_left,openray_right,neighborhood}.
                $U_1$ is disjoint from $U_2$ by
                    \cref{disjoint,openray_left,openray_right,simple_order_relation,asymmetric}.
            \caseOf{there exists no $z\in X$ such that $x_1\mathrel{R}z$ and $z\mathrel{R}x_2$.}
                Let $U_1 = \openrayleft{R}{X}{x_2}$.
                Let $U_2 = \openrayright{R}{X}{x_1}$.
                Hence $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                    $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$
                    by \cref{openrayleft_open_in_order_topology,openrayright_open_in_order_topology,openray_left,openray_right,neighborhood}.
                $U_1$ is disjoint from $U_2$ by \cref{disjoint,openray_right,openray_left}.
            \end{byCase}
        \caseOf{$x_2\mathrel{R}x_1$.}
            \begin{byCase}
            \caseOf{there exists $z\in X$ such that $x_2\mathrel{R}z$ and $z\mathrel{R}x_1$.}
                Take $z\in X$ such that $x_2\mathrel{R}z$ and $z\mathrel{R}x_1$.
                Let $U_2 = \openrayleft{R}{X}{z}$.
                Let $U_1 = \openrayright{R}{X}{z}$.
                Therefore $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                    $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$
                    by \cref{openrayright_open_in_order_topology,openrayleft_open_in_order_topology,openray_left,openray_right,neighborhood}.
                $U_1$ is disjoint from $U_2$ by
                    \cref{disjoint,openray_right,openray_left,simple_order_relation,asymmetric}.
            \caseOf{there exists no $z\in X$ such that $x_2\mathrel{R}z$ and $z\mathrel{R}x_1$.}
                Let $U_2 = \openrayleft{R}{X}{x_1}$.
                Let $U_1 = \openrayright{R}{X}{x_2}$.
                Hence $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                    $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$
                    by \cref{openrayright_open_in_order_topology,openrayleft_open_in_order_topology,openray_left,openray_right,neighborhood}.
                $U_1$ is disjoint from $U_2$ by \cref{disjoint,openray_right,openray_left}.
            \end{byCase}
        
\end{byCase}

Hence $X$ is Hausdorff with respect to $T$ by Definition 134, Definition 156, Lemma 76, Lemma 113.

LaTeX source
\begin{proof}
    Show that for all $x_1,x_2$ such that $x_1\in X$ and $x_2\in X$ and $x_1\neq x_2$ there exist $U_1,U_2$ such that
        $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
        $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ and
        $U_1$ is disjoint from $U_2$.
    \begin{subproof}
        Fix $x_1$.
        Fix $x_2$ such that $x_1\in X$ and $x_2\in X$ and $x_1\neq x_2$.
        We have $x_1\mathrel{R}x_2$ or $x_2\mathrel{R}x_1$ by \cref{simple_order_relation,connex}.
        \begin{byCase}
        \caseOf{$x_1\mathrel{R}x_2$.}
            \begin{byCase}
            \caseOf{there exists $z\in X$ such that $x_1\mathrel{R}z$ and $z\mathrel{R}x_2$.}
                Take $z\in X$ such that $x_1\mathrel{R}z$ and $z\mathrel{R}x_2$.
                Let $U_1 = \openrayleft{R}{X}{z}$.
                Let $U_2 = \openrayright{R}{X}{z}$.
                Therefore $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                    $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$
                    by \cref{openrayleft_open_in_order_topology,openrayright_open_in_order_topology,openray_left,openray_right,neighborhood}.
                $U_1$ is disjoint from $U_2$ by
                    \cref{disjoint,openray_left,openray_right,simple_order_relation,asymmetric}.
            \caseOf{there exists no $z\in X$ such that $x_1\mathrel{R}z$ and $z\mathrel{R}x_2$.}
                Let $U_1 = \openrayleft{R}{X}{x_2}$.
                Let $U_2 = \openrayright{R}{X}{x_1}$.
                Hence $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                    $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$
                    by \cref{openrayleft_open_in_order_topology,openrayright_open_in_order_topology,openray_left,openray_right,neighborhood}.
                $U_1$ is disjoint from $U_2$ by \cref{disjoint,openray_right,openray_left}.
            \end{byCase}
        \caseOf{$x_2\mathrel{R}x_1$.}
            \begin{byCase}
            \caseOf{there exists $z\in X$ such that $x_2\mathrel{R}z$ and $z\mathrel{R}x_1$.}
                Take $z\in X$ such that $x_2\mathrel{R}z$ and $z\mathrel{R}x_1$.
                Let $U_2 = \openrayleft{R}{X}{z}$.
                Let $U_1 = \openrayright{R}{X}{z}$.
                Therefore $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                    $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$
                    by \cref{openrayright_open_in_order_topology,openrayleft_open_in_order_topology,openray_left,openray_right,neighborhood}.
                $U_1$ is disjoint from $U_2$ by
                    \cref{disjoint,openray_right,openray_left,simple_order_relation,asymmetric}.
            \caseOf{there exists no $z\in X$ such that $x_2\mathrel{R}z$ and $z\mathrel{R}x_1$.}
                Let $U_2 = \openrayleft{R}{X}{x_1}$.
                Let $U_1 = \openrayright{R}{X}{x_2}$.
                Hence $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                    $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$
                    by \cref{openrayright_open_in_order_topology,openrayleft_open_in_order_topology,openray_left,openray_right,neighborhood}.
                $U_1$ is disjoint from $U_2$ by \cref{disjoint,openray_right,openray_left}.
            \end{byCase}
        \end{byCase}
    \end{subproof}
    Hence $X$ is Hausdorff with respect to $T$ by \cref{order_basis_is_basis,basis_topology_is_topology,order_topology,hausdorff}.
\end{proof}
Theorem 18
product_hausdorff

Assume $X$ is Hausdorff with respect to $T$.
Assume $Y$ is Hausdorff with respect to $T_1$.
Let $T_2 = \productTopology{T}{T_1}{X}{Y}$.
Then $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ is Hausdorff with respect to $T_2$.

LaTeX source
\begin{theorem}
\label{product_hausdorff}
    Assume $X$ is Hausdorff with respect to $T$.
    Assume $Y$ is Hausdorff with respect to $T_1$.
    Let $T_2 = \productTopology{T}{T_1}{X}{Y}$.
    Then $X\times Y$ is Hausdorff with respect to $T_2$.
\end{theorem}
Proof

$T$ is a topology on $X$ and $T_1$ is a topology on $Y$ by Definition 156.
$\productBasis{T}{T_1}{X}{Y}$ is a basis on $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Lemma 126.
We have $T_2$ is a topology on $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Definition 141, Lemma 76, Lemma 126.

Claim: For all $p_1,p_2$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $p_1\class{latex-symbol-tip latex-symbol-id-neq}{\neq} p_2$ there exist $U_1,U_2$ such that $U_1$ is a neighborhood of $p_1$ in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$ and $U_2$ is a neighborhood of $p_2$ in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$ and $U_1$ is disjoint from $U_2$.

Fix $p_1$.
Fix $p_2$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $p_1\class{latex-symbol-tip latex-symbol-id-neq}{\neq} p_2$.
Take $x_1,y_1$ such that $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $p_1 = (x_1,y_1)$ by Proposition 121.
Take $x_2,y_2$ such that $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $p_2 = (x_2,y_2)$ by Proposition 121.
$x_1\class{latex-symbol-tip latex-symbol-id-neq}{\neq} x_2$ or $y_1\class{latex-symbol-tip latex-symbol-id-neq}{\neq} y_2$ by Axiom 6.

Case. $x_1\class{latex-symbol-tip latex-symbol-id-neq}{\neq} x_2$.

Take $U_1,U_2$ such that $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ and $U_1$ is disjoint from $U_2$ by Definition 156.
$Y$ is open in $Y$ with respect to $T_1$ by Definition 101, Definition 103.
Let $W_1 = U_1\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$.
Let $W_2 = U_2\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$.
Therefore $W_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\productBasis{T}{T_1}{X}{Y}$ and $W_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\productBasis{T}{T_1}{X}{Y}$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 140, Definition 153, Proposition 6, Proposition 143, Proposition 144, Proposition 155.
$W_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T_2$ and $W_2\class{latex-symbol-tip latex-symbol-id-in}{\in} T_2$ by Definition 141, Lemma 77.
Hence $W_1$ is a neighborhood of $p_1$ in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$ and $W_2$ is a neighborhood of $p_2$ in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$ by Definition 103, Definition 153, Proposition 115.
$W_1$ is disjoint from $W_2$ by Definition 3, Proposition 114, Proposition 121.

Case. $y_1\class{latex-symbol-tip latex-symbol-id-neq}{\neq} y_2$.

Take $V_1,V_2$ such that $V_1$ is a neighborhood of $y_1$ in $Y$ with respect to $T_1$ and $V_2$ is a neighborhood of $y_2$ in $Y$ with respect to $T_1$ and $V_1$ is disjoint from $V_2$ by Definition 156.
$X$ is open in $X$ with respect to $T$ by Definition 101, Definition 103.
Let $W_1 = X\class{latex-symbol-tip latex-symbol-id-times}{\times} V_1$.
Let $W_2 = X\class{latex-symbol-tip latex-symbol-id-times}{\times} V_2$.
Therefore $W_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\productBasis{T}{T_1}{X}{Y}$ and $W_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\productBasis{T}{T_1}{X}{Y}$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 140, Definition 153, Proposition 6, Proposition 143, Proposition 144, Proposition 155.
$W_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T_2$ and $W_2\class{latex-symbol-tip latex-symbol-id-in}{\in} T_2$ by Definition 141, Lemma 77.
Hence $W_1$ is a neighborhood of $p_1$ in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$ and $W_2$ is a neighborhood of $p_2$ in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$ by Definition 103, Definition 153, Proposition 115.
$W_1$ is disjoint from $W_2$ by Definition 3, Proposition 114, Proposition 121.

LaTeX source
\begin{byCase}
        \caseOf{$x_1\neq x_2$.}
            Take $U_1,U_2$ such that
                $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ and
                $U_1$ is disjoint from $U_2$ by \cref{hausdorff}.
            $Y$ is open in $Y$ with respect to $T_1$ by \cref{topology_on,open_in}.
            Let $W_1 = U_1\times Y$.
            Let $W_2 = U_2\times Y$.
            Therefore $W_1\in\productBasis{T}{T_1}{X}{Y}$ and $W_2\in\productBasis{T}{T_1}{X}{Y}$
                by \cref{open_in,neighborhood,topology_on,subseteq,pow_iff,times_subseteq_left,times_subseteq_right,subseteq_transitive,powerset_intro,product_basis}.
            $W_1\in T_2$ and $W_2\in T_2$ by \cref{basis_elem_open_in_generated,product_topology}.
            Hence $W_1$ is a neighborhood of $p_1$ in $X\times Y$ with respect to $T_2$ and
                $W_2$ is a neighborhood of $p_2$ in $X\times Y$ with respect to $T_2$ by
                \cref{open_in,neighborhood,times_tuple_intro}.
            $W_1$ is disjoint from $W_2$ by \cref{disjoint,times_elem_is_tuple,times_tuple_elim}.
        \caseOf{$y_1\neq y_2$.}
            Take $V_1,V_2$ such that
                $V_1$ is a neighborhood of $y_1$ in $Y$ with respect to $T_1$ and
                $V_2$ is a neighborhood of $y_2$ in $Y$ with respect to $T_1$ and
                $V_1$ is disjoint from $V_2$ by \cref{hausdorff}.
            $X$ is open in $X$ with respect to $T$ by \cref{topology_on,open_in}.
            Let $W_1 = X\times V_1$.
            Let $W_2 = X\times V_2$.
            Therefore $W_1\in\productBasis{T}{T_1}{X}{Y}$ and $W_2\in\productBasis{T}{T_1}{X}{Y}$
                by \cref{open_in,neighborhood,topology_on,subseteq,pow_iff,times_subseteq_left,times_subseteq_right,subseteq_transitive,powerset_intro,product_basis}.
            $W_1\in T_2$ and $W_2\in T_2$ by \cref{basis_elem_open_in_generated,product_topology}.
            Hence $W_1$ is a neighborhood of $p_1$ in $X\times Y$ with respect to $T_2$ and
                $W_2$ is a neighborhood of $p_2$ in $X\times Y$ with respect to $T_2$ by
                \cref{open_in,neighborhood,times_tuple_intro}.
            $W_1$ is disjoint from $W_2$ by \cref{disjoint,times_elem_is_tuple,times_tuple_elim}.
        
\end{byCase}

Therefore $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ is Hausdorff with respect to $T_2$ by Definition 156.

LaTeX source
\begin{proof}
    $T$ is a topology on $X$ and $T_1$ is a topology on $Y$ by \cref{hausdorff}.
    $\productBasis{T}{T_1}{X}{Y}$ is a basis on $X\times Y$ by \cref{product_basis_is_basis}.
    We have $T_2$ is a topology on $X\times Y$ by \cref{product_basis_is_basis,basis_topology_is_topology,product_topology}.
    Show that for all $p_1,p_2$ such that $p_1\in X\times Y$ and $p_2\in X\times Y$ and $p_1\neq p_2$
        there exist $U_1,U_2$ such that
            $U_1$ is a neighborhood of $p_1$ in $X\times Y$ with respect to $T_2$ and
            $U_2$ is a neighborhood of $p_2$ in $X\times Y$ with respect to $T_2$ and
            $U_1$ is disjoint from $U_2$.
    \begin{subproof}
        Fix $p_1$.
        Fix $p_2$ such that $p_1\in X\times Y$ and $p_2\in X\times Y$ and $p_1\neq p_2$.
        Take $x_1,y_1$ such that $x_1\in X$ and $y_1\in Y$ and $p_1 = (x_1,y_1)$ by \cref{times_elem_is_tuple}.
        Take $x_2,y_2$ such that $x_2\in X$ and $y_2\in Y$ and $p_2 = (x_2,y_2)$ by \cref{times_elem_is_tuple}.
        $x_1\neq x_2$ or $y_1\neq y_2$ by \cref{pair_eq_iff}.
        \begin{byCase}
        \caseOf{$x_1\neq x_2$.}
            Take $U_1,U_2$ such that
                $U_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                $U_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ and
                $U_1$ is disjoint from $U_2$ by \cref{hausdorff}.
            $Y$ is open in $Y$ with respect to $T_1$ by \cref{topology_on,open_in}.
            Let $W_1 = U_1\times Y$.
            Let $W_2 = U_2\times Y$.
            Therefore $W_1\in\productBasis{T}{T_1}{X}{Y}$ and $W_2\in\productBasis{T}{T_1}{X}{Y}$
                by \cref{open_in,neighborhood,topology_on,subseteq,pow_iff,times_subseteq_left,times_subseteq_right,subseteq_transitive,powerset_intro,product_basis}.
            $W_1\in T_2$ and $W_2\in T_2$ by \cref{basis_elem_open_in_generated,product_topology}.
            Hence $W_1$ is a neighborhood of $p_1$ in $X\times Y$ with respect to $T_2$ and
                $W_2$ is a neighborhood of $p_2$ in $X\times Y$ with respect to $T_2$ by
                \cref{open_in,neighborhood,times_tuple_intro}.
            $W_1$ is disjoint from $W_2$ by \cref{disjoint,times_elem_is_tuple,times_tuple_elim}.
        \caseOf{$y_1\neq y_2$.}
            Take $V_1,V_2$ such that
                $V_1$ is a neighborhood of $y_1$ in $Y$ with respect to $T_1$ and
                $V_2$ is a neighborhood of $y_2$ in $Y$ with respect to $T_1$ and
                $V_1$ is disjoint from $V_2$ by \cref{hausdorff}.
            $X$ is open in $X$ with respect to $T$ by \cref{topology_on,open_in}.
            Let $W_1 = X\times V_1$.
            Let $W_2 = X\times V_2$.
            Therefore $W_1\in\productBasis{T}{T_1}{X}{Y}$ and $W_2\in\productBasis{T}{T_1}{X}{Y}$
                by \cref{open_in,neighborhood,topology_on,subseteq,pow_iff,times_subseteq_left,times_subseteq_right,subseteq_transitive,powerset_intro,product_basis}.
            $W_1\in T_2$ and $W_2\in T_2$ by \cref{basis_elem_open_in_generated,product_topology}.
            Hence $W_1$ is a neighborhood of $p_1$ in $X\times Y$ with respect to $T_2$ and
                $W_2$ is a neighborhood of $p_2$ in $X\times Y$ with respect to $T_2$ by
                \cref{open_in,neighborhood,times_tuple_intro}.
            $W_1$ is disjoint from $W_2$ by \cref{disjoint,times_elem_is_tuple,times_tuple_elim}.
        \end{byCase}
    \end{subproof}
    Therefore $X\times Y$ is Hausdorff with respect to $T_2$ by \cref{hausdorff}.
\end{proof}
Theorem 19
subspace_hausdorff

Assume $X$ is Hausdorff with respect to $T$.
Suppose $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $T_1 = \subspaceTopology{T}{Y}$.
Then $Y$ is Hausdorff with respect to $T_1$.

LaTeX source
\begin{theorem}
\label{subspace_hausdorff}
    Assume $X$ is Hausdorff with respect to $T$.
    Suppose $Y\subseteq X$.
    Suppose $T_1 = \subspaceTopology{T}{Y}$.
    Then $Y$ is Hausdorff with respect to $T_1$.
\end{theorem}
Proof

$T_1$ is a topology on $Y$ by Definition 156, Lemma 131.

Claim: For all $y_1,y_2$ such that $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $y_1\class{latex-symbol-tip latex-symbol-id-neq}{\neq} y_2$ there exist $V_1,V_2$ such that $V_1$ is a neighborhood of $y_1$ in $Y$ with respect to $T_1$ and $V_2$ is a neighborhood of $y_2$ in $Y$ with respect to $T_1$ and $V_1$ is disjoint from $V_2$.

Fix $y_1$.
Fix $y_2$ such that $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $y_1\class{latex-symbol-tip latex-symbol-id-neq}{\neq} y_2$.
Take $U_1,U_2$ such that $U_1$ is a neighborhood of $y_1$ in $X$ with respect to $T$ and $U_2$ is a neighborhood of $y_2$ in $X$ with respect to $T$ and $U_1$ is disjoint from $U_2$ by Definition 156, Proposition 4.
Let $V_1 = Y\inter U_1$.
Let $V_2 = Y\inter U_2$.
Therefore $V_1$ is a neighborhood of $y_1$ in $Y$ with respect to $T_1$ and $V_2$ is a neighborhood of $y_2$ in $Y$ with respect to $T_1$ by Definition 103, Definition 146, Definition 153, Proposition 61.
$V_1$ is disjoint from $V_2$ by Definition 3, Definition 5.

Therefore $Y$ is Hausdorff with respect to $T_1$ by Definition 156.

LaTeX source
\begin{proof}
    $T_1$ is a topology on $Y$ by \cref{hausdorff,subspace_topology_is_topology}.
    Show that for all $y_1,y_2$ such that $y_1\in Y$ and $y_2\in Y$ and $y_1\neq y_2$
        there exist $V_1,V_2$ such that
            $V_1$ is a neighborhood of $y_1$ in $Y$ with respect to $T_1$ and
            $V_2$ is a neighborhood of $y_2$ in $Y$ with respect to $T_1$ and
            $V_1$ is disjoint from $V_2$.
    \begin{subproof}
        Fix $y_1$.
        Fix $y_2$ such that $y_1\in Y$ and $y_2\in Y$ and $y_1\neq y_2$.
        Take $U_1,U_2$ such that
            $U_1$ is a neighborhood of $y_1$ in $X$ with respect to $T$ and
            $U_2$ is a neighborhood of $y_2$ in $X$ with respect to $T$ and
            $U_1$ is disjoint from $U_2$ by \cref{elem_subseteq,hausdorff}.
        Let $V_1 = Y\inter U_1$.
        Let $V_2 = Y\inter U_2$.
        Therefore $V_1$ is a neighborhood of $y_1$ in $Y$ with respect to $T_1$ and
            $V_2$ is a neighborhood of $y_2$ in $Y$ with respect to $T_1$ by
            \cref{neighborhood,open_in,subspace_topology,inter_intro}.
        $V_1$ is disjoint from $V_2$ by \cref{disjoint,inter}.
    \end{subproof}
    Therefore $Y$ is Hausdorff with respect to $T_1$ by \cref{hausdorff}.
\end{proof}