Topology (Munkres)

§29 Local Compactness

Definition 263
compact_subspace

$C$ is a compact subspace of $X$ with respect to $T$ iff $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $C$ is compact with respect to $\subspaceTopology{T}{C}$.

LaTeX source
\begin{definition}
\label{compact_subspace}
    $C$ is a compact subspace of $X$ with respect to $T$ iff
        $C\subseteq X$ and
        $C$ is compact with respect to $\subspaceTopology{T}{C}$.
\end{definition}
Definition 264
locally_compact_at_point

$X$ is locally compact at $x$ with respect to $T$ iff $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and there exists $C$ such that $C$ is a compact subspace of $X$ with respect to $T$ and there exists $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.

LaTeX source
\begin{definition}
\label{locally_compact_at_point}
    $X$ is locally compact at $x$ with respect to $T$ iff
        $x\in X$ and
        there exists $C$ such that
            $C$ is a compact subspace of $X$ with respect to $T$ and
            there exists $U$ such that
                $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                $U\subseteq C$.
\end{definition}
Definition 265
locally_compact

$X$ is locally compact with respect to $T$ iff for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $X$ is locally compact at $x$ with respect to $T$.

LaTeX source
\begin{definition}
\label{locally_compact}
    $X$ is locally compact with respect to $T$ iff
        for all $x\in X$ we have $X$ is locally compact at $x$ with respect to $T$.
\end{definition}
Lemma 409
compact_implies_locally_compact

Assume $T$ is a topology on $X$.
Suppose $X$ is compact with respect to $T$.
Then $X$ is locally compact with respect to $T$.

LaTeX source
\begin{lemma}
\label{compact_implies_locally_compact}
    Assume $T$ is a topology on $X$.
    Suppose $X$ is compact with respect to $T$.
    Then $X$ is locally compact with respect to $T$.
\end{lemma}
Proof

Let $T_X = \subspaceTopology{T}{X}$.

Claim: $T\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_X$.
Claim: $T_X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$.

Therefore $T_X = T$ by Definition 1, Proposition 3.
Hence $X$ is a compact subspace of $X$ with respect to $T$ by Definition 263, Proposition 2.

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

Hence $X$ is locally compact with respect to $T$ by Definition 265.

LaTeX source
\begin{proof}
    Let $T_X = \subspaceTopology{T}{X}$.
    Show that $T\subseteq T_X$.
    \begin{subproof}
        Follows by \cref{topology_on,powerset_elim,subseteq,inter_absorb_supseteq_left,subspace_topology}.
    \end{subproof}
    Show that $T_X\subseteq T$.
    \begin{subproof}
        Follows by \cref{subspace_topology,topology_on,powerset_elim,subseteq,inter_absorb_supseteq_left}.
    \end{subproof}
    Therefore $T_X = T$ by \cref{subseteq,subseteq_antisymmetric}.
    Hence $X$ is a compact subspace of $X$ with respect to $T$ by \cref{subseteq_refl,compact_subspace}.
    Show that for all $x\in X$ we have $X$ is locally compact at $x$ with respect to $T$.
    \begin{subproof}
        Follows by \cref{subseteq_refl,topology_on,open_in,neighborhood,locally_compact_at_point}.
    \end{subproof}
    Hence $X$ is locally compact with respect to $T$ by \cref{locally_compact}.
\end{proof}
Lemma 410
set_notin_self

For all $x$ we have $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} x$.

LaTeX source
\begin{lemma}
\label{set_notin_self}
    For all $x$ we have $x\notin x$.
\end{lemma}
Proof

Fix $x$.
Suppose not.
Take $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\{x\}$ such that for all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} a$ we have $y\class{latex-symbol-tip latex-symbol-id-notin}{\notin}\{x\}$ by Axiom 2, Proposition 20, Theorem 3 [Foundation].
Hence $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin}\{x\}$ by Proposition 21.
Contradiction by Proposition 20.

LaTeX source
\begin{proof}
    Fix $x$.
    Suppose not.
    Take $a\in\{x\}$ such that for all $y\in a$ we have $y\notin\{x\}$ by \cref{singleton_intro,emptyset,foundation}.
    Hence $x\notin\{x\}$ by \cref{singleton_elim}.
    Contradiction by \cref{singleton_intro}.
\end{proof}
Lemma 411
emptyset_compact

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

LaTeX source
\begin{lemma}
\label{emptyset_compact}
    Assume $T$ is a topology on $X$.
    Then $\emptyset$ is compact with respect to $T$.
\end{lemma}
Proof
Claim: For all $A$ such that $A$ is an open covering of $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ with respect to $T$ there exists $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $B$ is finite and $B$ is a covering of $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

Fix $A$ such that $A$ is an open covering of $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ with respect to $T$.
Let $B = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
We have $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $B$ is finite and $B$ is a covering of $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Definition 245, Lemma 35, Proposition 11, Proposition 28.

Hence $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ is compact with respect to $T$ by Definition 247.

LaTeX source
\begin{proof}
    Show that for all $A$ such that $A$ is an open covering of $\emptyset$ with respect to $T$
        there exists $B$ such that $B\subseteq A$ and $B$ is finite and $B$ is a covering of $\emptyset$.
    \begin{subproof}
        Fix $A$ such that $A$ is an open covering of $\emptyset$ with respect to $T$.
        Let $B = \emptyset$.
        We have $B\subseteq A$ and $B$ is finite and $B$ is a covering of $\emptyset$
            by \cref{emptyset_subseteq,emptyset_is_finite,unions_emptyset,covering}.
    \end{subproof}
    Hence $\emptyset$ is compact with respect to $T$ by \cref{compact}.
\end{proof}
Lemma 412
compact_subspace_inters

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

LaTeX source
\begin{lemma}
\label{compact_subspace_inters}
    Assume $T$ is a topology on $X$.
    Assume $X$ is Hausdorff with respect to $T$.
    Suppose $C\subseteq\pow{X}$.
    Suppose $C$ is inhabited.
    Suppose for all $K$ such that $K\in C$ we have $K$ is a compact subspace of $X$ with respect to $T$.
    Then $\inters{C}$ is a compact subspace of $X$ with respect to $T$.
\end{lemma}
Proof

Take $K_0$ such that $K_0\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
For all $K$ such that $K\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $K$ is closed in $X$ with respect to $T$ by Definition 263, Theorem 60.
Hence $\inters{C}$ is closed in $X$ with respect to $T$ by Lemma 140.
$\inters{C}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} K_0$ by Definition 1, Definition 4.
Let $T_{K0} = \subspaceTopology{T}{K_0}$.
$K_0$ is compact with respect to $T_{K0}$ and $K_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
$\inters{C}\inter K_0 = \inters{C}$ by Definition 1, Proposition 69, Theorem 8.
Hence $\inters{C}$ is compact with respect to $\subspaceTopology{T_{K0}}{\inters{C}}$ by Definition 147, Definition 263, Lemma 131, Theorem 8, Theorem 59.
Therefore $\inters{C}$ is compact with respect to $\subspaceTopology{T}{\inters{C}}$ by Definition 1, Lemma 307, Theorem 8, Theorem 59.
Finally $\inters{C}$ is a compact subspace of $X$ with respect to $T$ by Definition 263, Proposition 6.

LaTeX source
\begin{proof}
    Take $K_0$ such that $K_0\in C$.
    For all $K$ such that $K\in C$ we have $K$ is closed in $X$ with respect to $T$
        by \cref{compact_subspace,compact_subspace_closed}.
    Hence $\inters{C}$ is closed in $X$ with respect to $T$ by \cref{closed_inters}.
    $\inters{C}\subseteq K_0$ by \cref{inters,subseteq}.
    Let $T_{K0} = \subspaceTopology{T}{K_0}$.
    $K_0$ is compact with respect to $T_{K0}$ and $K_0\subseteq X$ by \cref{compact_subspace}.
    $\inters{C}\inter K_0 = \inters{C}$ by \cref{closed_in_subspace_iff,inter_absorb_supseteq_right,subseteq}.
    Hence $\inters{C}$ is compact with respect to $\subspaceTopology{T_{K0}}{\inters{C}}$
        by \cref{compact_subspace,subspace_of,subspace_topology_is_topology,closed_in_subspace_iff,closed_subspace_compact}.
    Therefore $\inters{C}$ is compact with respect to $\subspaceTopology{T}{\inters{C}}$
        by \cref{closed_in_subspace_iff,closed_subspace_compact,subspace_subspace_topology,subseteq}.
    Finally $\inters{C}$ is a compact subspace of $X$ with respect to $T$ by \cref{subseteq_transitive,compact_subspace}.
\end{proof}
Lemma 413
compact_subspace_union

Assume $T$ is a topology on $X$.
Suppose $A$ is a compact subspace of $X$ with respect to $T$.
Suppose $B$ is a compact subspace of $X$ with respect to $T$.
Let $C = A\union B$.
Then $C$ is a compact subspace of $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{compact_subspace_union}
    Assume $T$ is a topology on $X$.
    Suppose $A$ is a compact subspace of $X$ with respect to $T$.
    Suppose $B$ is a compact subspace of $X$ with respect to $T$.
    Let $C = A\union B$.
    Then $C$ is a compact subspace of $X$ with respect to $T$.
\end{lemma}
Proof

We have $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263, Proposition 44.
Let $T_C = \subspaceTopology{T}{C}$.

Claim: For all $U$ such that $U$ is an open covering of $C$ with respect to $T_C$ there exists $D$ such that $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ and $D$ is finite and $D$ is a covering of $C$.

Fix $U$ such that $U$ is an open covering of $C$ with respect to $T_C$.
Let $V = \{W\class{latex-symbol-tip latex-symbol-id-in}{\in} T \mid \text{there exists $U_0\in U$ such that $U_0 = C\inter W$}\}$.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{V}$ by Axiom 4, Definition 103, Definition 146, Definition 245, Definition 246, Proposition 4, Proposition 38, Proposition 74.
Hence $V$ is a covering of $A$ by Definition 1, Definition 245.
For all $V_0$ such that $V_0\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ we have $V_0$ is open in $X$ with respect to $T$ by Definition 103.
Let $T_A = \subspaceTopology{T}{A}$.
$A$ is a subspace of $X$ with respect to $T$ and $A$ is compact with respect to $T_A$ by Definition 147, Definition 263.
Take $V_A$ such that $V_A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ and $V_A$ is finite and $V_A$ is a covering of $A$ by Lemma 356.

For all $b$ such that $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{V}$ by Axiom 4, Definition 103, Definition 146, Definition 245, Definition 246, Proposition 4, Proposition 39, Proposition 74.
Hence $V$ is a covering of $B$ by Definition 1, Definition 245.
Let $T_B = \subspaceTopology{T}{B}$.
$B$ is a subspace of $X$ with respect to $T$ and $B$ is compact with respect to $T_B$ by Definition 147, Definition 263.
Take $V_B$ such that $V_B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ and $V_B$ is finite and $V_B$ is a covering of $B$ by Lemma 356.

Let $V_0 = V_A\union V_B$.
$V_0$ is finite by Lemma 45.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{V_0}$ by Axiom 4, Axiom 5, Definition 245, Proposition 4, Proposition 38, Proposition 39.
Therefore $V_0$ is a covering of $C$ by Definition 1, Definition 245.

Let $g = \{(v, C\inter v) \mid v\class{latex-symbol-tip latex-symbol-id-in}{\in} V_0\}$.
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 $x,y,z$ such that $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ and $(x,z)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ we have $y = z$ by Axiom 6.
Hence $g$ is a function by Definition 12, Definition 51.
Therefore $\dom{g} = V_0$ by Axiom 6, Definition 1, Proposition 3, Proposition 199.
For all $v$ such that $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ we have $g(v)\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{C}$ by Proposition 73, Proposition 155, Proposition 349.
Hence $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{V_0}{\pow{C}}$ by Proposition 73, Proposition 155, Proposition 349, Proposition 358.
Let $E = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} v\class{latex-symbol-tip latex-symbol-id-in}{\in} V_0. w = C\inter v\}$.
Hence $E$ is finite by Definition 1, Definition 55, Lemma 44, Lemma 192, Proposition 235, Proposition 356.
$E\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1, Proposition 4, Proposition 44.
Hence $E$ is a covering of $C$ by Axiom 4, Definition 1, Definition 245, Proposition 4, Proposition 61.
There exists $D$ such that $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ and $D$ is finite and $D$ is a covering of $C$.

Finally $C$ is a compact subspace of $X$ with respect to $T$ by Definition 247, Definition 263.

LaTeX source
\begin{proof}
    We have $C\subseteq X$ by \cref{compact_subspace,union_subsets_is_subset}.
    Let $T_C = \subspaceTopology{T}{C}$.
    Show that for all $U$ such that $U$ is an open covering of $C$ with respect to $T_C$
        there exists $D$ such that
            $D\subseteq U$ and
            $D$ is finite and
            $D$ is a covering of $C$.
    \begin{subproof}
        Fix $U$ such that $U$ is an open covering of $C$ with respect to $T_C$.
        Let $V = \{W\in T \mid \text{there exists $U_0\in U$ such that $U_0 = C\inter W$}\}$.
        For all $a$ such that $a\in A$ we have $a\in\unions{V}$
            by \cref{union_intro_left,covering,elem_subseteq,unions_iff,open_covering,open_in,subspace_topology,inter_lower_right}.
        Hence $V$ is a covering of $A$ by \cref{subseteq,covering}.
        For all $V_0$ such that $V_0\in V$ we have $V_0$ is open in $X$ with respect to $T$ by \cref{open_in}.
        Let $T_A = \subspaceTopology{T}{A}$.
        $A$ is a subspace of $X$ with respect to $T$ and $A$ is compact with respect to $T_A$
            by \cref{subspace_of,compact_subspace}.
        Take $V_A$ such that
            $V_A\subseteq V$ and
            $V_A$ is finite and
            $V_A$ is a covering of $A$
            by \cref{compact_subspace_open_covering}.

        For all $b$ such that $b\in B$ we have $b\in\unions{V}$
            by \cref{union_intro_right,covering,elem_subseteq,unions_iff,open_covering,open_in,subspace_topology,inter_lower_right}.
        Hence $V$ is a covering of $B$ by \cref{subseteq,covering}.
        Let $T_B = \subspaceTopology{T}{B}$.
        $B$ is a subspace of $X$ with respect to $T$ and $B$ is compact with respect to $T_B$
            by \cref{subspace_of,compact_subspace}.
        Take $V_B$ such that
            $V_B\subseteq V$ and
            $V_B$ is finite and
            $V_B$ is a covering of $B$
            by \cref{compact_subspace_open_covering}.

        Let $V_0 = V_A\union V_B$.
        $V_0$ is finite by \cref{union_of_finite_is_finite}.
        For all $x$ such that $x\in C$ we have $x\in\unions{V_0}$
            by \cref{union_iff,covering,elem_subseteq,unions_iff,union_intro_left,union_intro_right}.
        Therefore $V_0$ is a covering of $C$ by \cref{subseteq,covering}.

        Let $g = \{(v, C\inter v) \mid v\in V_0\}$.
        For all $w$ such that $w\in g$ there exist $x,y$ such that $w = (x,y)$.
        For all $x,y,z$ such that $(x,y)\in g$ and $(x,z)\in g$ we have $y = z$
            by \cref{pair_eq_iff}.
        Hence $g$ is a function by \cref{rightunique,relation}.
        Therefore $\dom{g} = V_0$ by \cref{dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
        For all $v$ such that $v\in\dom{g}$ we have $g(v)\in\pow{C}$
            by \cref{function_apply_iff,inter_lower_left,powerset_intro}.
        Hence $g\in\funs{V_0}{\pow{C}}$ by \cref{function_apply_iff,inter_lower_left,powerset_intro,funs_intro}.
        Let $E = \{w \mid \exists v\in V_0. w = C\inter v\}$.
        Hence $E$ is finite by \cref{funs_is_function,funs,finite_image_function,img_iff,subseteq,subseteq_finite_is_finite}.
        $E\subseteq U$ by \cref{union_subsets_is_subset,elem_subseteq,subseteq}.
        Hence $E$ is a covering of $C$ by \cref{covering,elem_subseteq,unions_iff,inter_intro,subseteq}.
        There exists $D$ such that
            $D\subseteq U$ and
            $D$ is finite and
            $D$ is a covering of $C$.
    \end{subproof}
    Finally $C$ is a compact subspace of $X$ with respect to $T$ by \cref{compact,compact_subspace}.
\end{proof}
Lemma 414
compact_subspace_minus_open

Assume $T$ is a topology on $X$.
Suppose $C$ is a compact subspace of $X$ with respect to $T$.
Suppose $U$ is open in $X$ with respect to $T$.
Let $D = C\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U$.
Then $D$ is a compact subspace of $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{compact_subspace_minus_open}
    Assume $T$ is a topology on $X$.
    Suppose $C$ is a compact subspace of $X$ with respect to $T$.
    Suppose $U$ is open in $X$ with respect to $T$.
    Let $D = C\setminus U$.
    Then $D$ is a compact subspace of $X$ with respect to $T$.
\end{lemma}
Proof

We have $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263, Proposition 6, Proposition 97.
Let $T_C = \subspaceTopology{T}{C}$.
Let $T_D = \subspaceTopology{T}{D}$.
$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 70, Proposition 91, Proposition 97.
Hence $D$ is closed in $C$ with respect to $T_C$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 147, Definition 263, Proposition 65 [Commutativity of intersection], Proposition 111, Theorem 8.
Hence $D$ is compact with respect to $T_D$ by Definition 263, Lemma 131, Lemma 307, Proposition 97, Theorem 59.
Therefore $D$ is a compact subspace of $X$ with respect to $T$ by Definition 263.

LaTeX source
\begin{proof}
    We have $D\subseteq X$ by \cref{compact_subspace,setminus_subseteq,subseteq_transitive}.
    Let $T_C = \subspaceTopology{T}{C}$.
    Let $T_D = \subspaceTopology{T}{D}$.
    $X\setminus U$ is closed in $X$ with respect to $T$
        by \cref{open_in,topology_on,subseteq,pow_iff,setminus_subseteq,setminus_setminus,inter_absorb_supseteq_left,closed_in}.
    Hence $D$ is closed in $C$ with respect to $T_C$
        by \cref{open_in,topology_on,subseteq,pow_iff,setminus_eq_inter_complement,inter_comm,closed_in_subspace_iff,subspace_of,compact_subspace}.
    Hence $D$ is compact with respect to $T_D$
        by \cref{compact_subspace,setminus_subseteq,subspace_topology_is_topology,closed_subspace_compact,subspace_subspace_topology}.
    Therefore $D$ is a compact subspace of $X$ with respect to $T$ by \cref{compact_subspace}.
\end{proof}
Definition 266
one_point_open_sets

$\onePointOpenSets{T}{X}{p} = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{X\union\{p\}} \mid \text{$U\subseteq X$ and $U\in T$}\}$.

LaTeX source
\begin{definition}
\label{one_point_open_sets}
    $\onePointOpenSets{T}{X}{p}
        = \{U\in\pow{X\union\{p\}} \mid \text{$U\subseteq X$ and $U\in T$}\}$.
\end{definition}
Definition 267
one_point_compact_complements

$\onePointCompactComplements{T}{X}{p} = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{X\union\{p\}} \mid \text{there exists $C$ such that $C$ is a compact subspace of $X$ with respect to $T$ and $U = (X\union\{p\})\setminus C$}\}$.

LaTeX source
\begin{definition}
\label{one_point_compact_complements}
    $\onePointCompactComplements{T}{X}{p}
        = \{U\in\pow{X\union\{p\}} \mid \text{there exists $C$ such that
            $C$ is a compact subspace of $X$ with respect to $T$ and
            $U = (X\union\{p\})\setminus C$}\}$.
\end{definition}
Definition 268
one_point_compactification_topology

$\onePointTopology{T}{X}{p} = \onePointOpenSets{T}{X}{p}\union \onePointCompactComplements{T}{X}{p}$.

LaTeX source
\begin{definition}
\label{one_point_compactification_topology}
    $\onePointTopology{T}{X}{p}
        = \onePointOpenSets{T}{X}{p}\union \onePointCompactComplements{T}{X}{p}$.
\end{definition}
Lemma 415
one_point_topology_subseteq_pow

Assume $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.
Let $Y = X\union\{p\}$.
Let $S = \onePointTopology{T}{X}{p}$.
Then $S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{Y}$.

LaTeX source
\begin{lemma}
\label{one_point_topology_subseteq_pow}
    Assume $p\notin X$.
    Let $Y = X\union\{p\}$.
    Let $S = \onePointTopology{T}{X}{p}$.
    Then $S\subseteq\pow{Y}$.
\end{lemma}
Proof

We have $S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{Y}$ by Axiom 5, Definition 1, Definition 266, Definition 267, Definition 268.

LaTeX source
\begin{proof}
    We have $S\subseteq\pow{Y}$
        by \cref{one_point_compactification_topology,union_iff,one_point_open_sets,one_point_compact_complements,subseteq}.
\end{proof}
Lemma 416
one_point_topology_intro_left

Assume $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.
Let $Y = X\union\{p\}$.
Let $S = \onePointTopology{T}{X}{p}$.
Suppose $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.
Then $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.

LaTeX source
\begin{lemma}
\label{one_point_topology_intro_left}
    Assume $p\notin X$.
    Let $Y = X\union\{p\}$.
    Let $S = \onePointTopology{T}{X}{p}$.
    Suppose $U\subseteq X$.
    Suppose $U\in T$.
    Then $U\in S$.
\end{lemma}
Proof

We have $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Axiom 12, Definition 266, Definition 268, Proposition 6, Proposition 38, Proposition 46.

LaTeX source
\begin{proof}
    We have $U\in S$ by \cref{one_point_compactification_topology,one_point_open_sets,union_upper_left,subseteq_transitive,pow_iff,union_intro_left}.
\end{proof}
Lemma 417
one_point_topology_intro_right

Assume $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.
Let $Y = X\union\{p\}$.
Let $S = \onePointTopology{T}{X}{p}$.
Suppose there exists $C$ such that $C$ is a compact subspace of $X$ with respect to $T$ and $U = Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$.
Then $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.

LaTeX source
\begin{lemma}
\label{one_point_topology_intro_right}
    Assume $p\notin X$.
    Let $Y = X\union\{p\}$.
    Let $S = \onePointTopology{T}{X}{p}$.
    Suppose there exists $C$ such that
        $C$ is a compact subspace of $X$ with respect to $T$ and
        $U = Y\setminus C$.
    Then $U\in S$.
\end{lemma}
Proof

Take $C$ such that $C$ is a compact subspace of $X$ with respect to $T$ and $U = Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$.
Hence $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Axiom 12, Definition 267, Definition 268, Proposition 39, Proposition 97.

LaTeX source
\begin{proof}
    Take $C$ such that
        $C$ is a compact subspace of $X$ with respect to $T$ and
        $U = Y\setminus C$.
    Hence $U\in S$ by \cref{one_point_compactification_topology,one_point_compact_complements,setminus_subseteq,pow_iff,union_intro_right}.
\end{proof}
Lemma 418
one_point_topology_without_p

Assume $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.
Let $Y = X\union\{p\}$.
Let $S = \onePointTopology{T}{X}{p}$.
Suppose $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.
Suppose $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} U$.
Then $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.

LaTeX source
\begin{lemma}
\label{one_point_topology_without_p}
    Assume $p\notin X$.
    Let $Y = X\union\{p\}$.
    Let $S = \onePointTopology{T}{X}{p}$.
    Suppose $U\in S$.
    Suppose $p\notin U$.
    Then $U\subseteq X$ and $U\in T$.
\end{lemma}
Proof
Claim: $U\class{latex-symbol-tip latex-symbol-id-in}{\in} \onePointOpenSets{T}{X}{p}$.

Suppose not.
Hence $U\class{latex-symbol-tip latex-symbol-id-in}{\in} \onePointCompactComplements{T}{X}{p}$ by Axiom 5, Definition 268.
Take $C$ such that $C$ is a compact subspace of $X$ with respect to $T$ and $U = Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ by Definition 267.
Thus $p\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1, Definition 263, Proposition 20, Proposition 39, Proposition 85.
Contradiction.

Claim: $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.

Follows by Definition 266.

LaTeX source
\begin{proof}
    Show that $U\in \onePointOpenSets{T}{X}{p}$.
    \begin{subproof}
        Suppose not.
        Hence $U\in \onePointCompactComplements{T}{X}{p}$ by \cref{one_point_compactification_topology,union_iff}.
        Take $C$ such that
            $C$ is a compact subspace of $X$ with respect to $T$ and
            $U = Y\setminus C$
            by \cref{one_point_compact_complements}.
        Thus $p\in U$ by \cref{compact_subspace,subseteq,singleton_intro,union_intro_right,setminus_intro}.
        Contradiction.
    \end{subproof}
    Show that $U\subseteq X$ and $U\in T$.
    \begin{subproof}
        Follows by \cref{one_point_open_sets}.
    \end{subproof}
\end{proof}
Lemma 419
one_point_topology_with_p

Assume $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.
Let $Y = X\union\{p\}$.
Let $S = \onePointTopology{T}{X}{p}$.
Suppose $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.
Suppose $p\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Then there exists $C$ such that $C$ is a compact subspace of $X$ with respect to $T$ and $U = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$.

LaTeX source
\begin{lemma}
\label{one_point_topology_with_p}
    Assume $p\notin X$.
    Let $Y = X\union\{p\}$.
    Let $S = \onePointTopology{T}{X}{p}$.
    Suppose $U\in S$.
    Suppose $p\in U$.
    Then there exists $C$ such that $C$ is a compact subspace of $X$ with respect to $T$
        and $U = (X\union\{p\})\setminus C$.
\end{lemma}
Proof
Claim: $U\class{latex-symbol-tip latex-symbol-id-in}{\in} \onePointCompactComplements{T}{X}{p}$.

Suppose not.
Hence $U\class{latex-symbol-tip latex-symbol-id-in}{\in} \onePointOpenSets{T}{X}{p}$ by Axiom 5, Definition 268.
Therefore $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1, Definition 266.
Contradiction.

Claim: There exists $C$ such that $C$ is a compact subspace of $X$ with respect to $T$ and $U = Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$.

Follows by Definition 267.

LaTeX source
\begin{proof}
    Show that $U\in \onePointCompactComplements{T}{X}{p}$.
    \begin{subproof}
        Suppose not.
        Hence $U\in \onePointOpenSets{T}{X}{p}$ by \cref{one_point_compactification_topology,union_iff}.
        Therefore $p\in X$ by \cref{one_point_open_sets,subseteq}.
        Contradiction.
    \end{subproof}
    Show that there exists $C$ such that $C$ is a compact subspace of $X$ with respect to $T$
        and $U = Y\setminus C$.
    \begin{subproof}
        Follows by \cref{one_point_compact_complements}.
    \end{subproof}
\end{proof}
Lemma 420
one_point_topology_is_topology

Assume $T$ is a topology on $X$.
Assume $X$ is Hausdorff with respect to $T$.
Assume $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.
Let $Y = X\union\{p\}$.
Let $S = \onePointTopology{T}{X}{p}$.
Then $S$ is a topology on $Y$.

LaTeX source
\begin{lemma}
\label{one_point_topology_is_topology}
    Assume $T$ is a topology on $X$.
    Assume $X$ is Hausdorff with respect to $T$.
    Assume $p\notin X$.
    Let $Y = X\union\{p\}$.
    Let $S = \onePointTopology{T}{X}{p}$.
    Then $S$ is a topology on $Y$.
\end{lemma}
Proof
Claim: $S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{Y}$.

Follows by Lemma 415.

Claim: $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.

Let $T_0 = \subspaceTopology{T}{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}}$.
We have $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ is a compact subspace of $X$ with respect to $T$ by Definition 263, Lemma 131, Lemma 411, Proposition 11.

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

Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S$.

Case. $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin}\unions{A}$.

We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Axiom 4, Definition 1, Lemma 418.
$\unions{A}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 101, Proposition 6, Proposition 159.
Hence $\unions{A}\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Definition 101, Lemma 416.

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

Take $U_0\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} U_0$ by Axiom 4.
Take $C_0$ such that $C_0$ is a compact subspace of $X$ with respect to $T$ and $U_0 = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_0$ by Definition 1, Lemma 419.
Let $A_1 = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in} A \mid p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} U\}$.
We have $A_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Definition 1, Lemma 418.
Let $U = \unions{A_1}$.
Therefore $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Axiom 12, Definition 1, Definition 101.
Let $A_2 = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in} A \mid p\class{latex-symbol-tip latex-symbol-id-in}{\in} U\}$.
Let $F = \{Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U \mid U\class{latex-symbol-tip latex-symbol-id-in}{\in} A_2\}$.
$U_0\class{latex-symbol-tip latex-symbol-id-in}{\in} A_2$.
Hence $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U_0\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$F$ is inhabited.

Claim: For all $C$ such that $C\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $C$ is a compact subspace of $X$ with respect to $T$.

Fix $C$ such that $C\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
Take $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A_2$ such that $C = Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U_1$.
Hence $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $p\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1$.
Take $K$ such that $K$ is a compact subspace of $X$ with respect to $T$ and $U_1 = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} K$ by Definition 1, Lemma 419.
We have $K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
$K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ by Proposition 6, Proposition 46.
Hence $C = K$ by Proposition 70, Proposition 91.
Therefore $C$ is a compact subspace of $X$ with respect to $T$.

Hence $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{X}$ by Axiom 12, Definition 1, Definition 263.
Let $C = \inters{F}$.
$C$ is a compact subspace of $X$ with respect to $T$ by Lemma 412.

Claim: $\unions{A_2}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A_2}$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$.
Hence $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} C$ by Proposition 87.
Suppose not.
For all $C_1$ such that $C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_1$ by Axiom 4, Axiom 12, Definition 1, Lemma 415, Proposition 70, Proposition 85, Proposition 86, Proposition 91.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Proposition 30.
Contradiction.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A_2}$.

Therefore $(X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \unions{A_2}$ by Definition 1.
Hence $\unions{A_2} = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ by Proposition 3.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A_1}\union\unions{A_2}$.
Therefore $\unions{A}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \unions{A_1}\union\unions{A_2}$ by Definition 1.
We have $\unions{A_1}\union\unions{A_2}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \unions{A}$ by Axiom 4, Axiom 5, Definition 1.
Hence $\unions{A} = \unions{A_1}\union\unions{A_2}$ by Proposition 3.
Let $D = C\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U$.
$D$ is a compact subspace of $X$ with respect to $T$ by Definition 103, Lemma 414.

Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A_1}\union\unions{A_2}$.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A_1}$ or $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A_2}$ by Axiom 5.

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

We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Hence $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} D$ by Proposition 87.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in} (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D$ by Definition 1, Proposition 38, Proposition 85.

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

We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$.
Hence $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} C$ by Proposition 87.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in} (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D$ by Definition 1, Proposition 85, Proposition 86, Proposition 97.

LaTeX source
\begin{byCase}
                \caseOf{$x\in\unions{A_1}$.}
                    We have $x\in U$.
                    Hence $x\notin D$ by \cref{setminus_elim_right}.
                    Therefore $x\in (X\union\{p\})\setminus D$
                        by \cref{subseteq,union_intro_left,setminus_intro}.
                \caseOf{$x\in\unions{A_2}$.}
                    We have $x\in (X\union\{p\})\setminus C$.
                    Hence $x\notin C$ by \cref{setminus_elim_right}.
                    Therefore $x\in (X\union\{p\})\setminus D$
                        by \cref{setminus_elim_left,setminus_subseteq,subseteq,setminus_intro}.
                
\end{byCase}

Hence $\unions{A}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D$ by Definition 1.

Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D$.
Hence $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} D$ by Proposition 87.

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

Take $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A_1$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1$ by Axiom 4.
We have $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$ by Axiom 4.

Case. $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} U$.
Claim: $x\class{latex-symbol-tip latex-symbol-id-in}{\in} (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$.

Suppose not.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\union\{p\}$ by Proposition 86.
It is wrong that $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} C$ by Proposition 85.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} U$.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Proposition 85.
Contradiction.

Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A_2}$.
Take $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1$ by Axiom 4.
We have $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$ by Axiom 4.

LaTeX source
\begin{byCase}
                \caseOf{$x\in U$.}
                    Take $U_1\in A_1$ such that $x\in U_1$ by \cref{unions_iff}.
                    We have $U_1\in A$.
                    Therefore $x\in\unions{A}$ by \cref{unions_iff}.
                \caseOf{$x\notin U$.}
                    Show that $x\in (X\union\{p\})\setminus C$.
                    \begin{subproof}
                        Suppose not.
                        We have $x\in X\union\{p\}$ by \cref{setminus_elim_left}.
                        It is wrong that $x\notin C$ by \cref{setminus_intro}.
                        Therefore $x\in C$.
                        We have $x\in C$ and $x\notin U$.
                        Hence $x\in D$ by \cref{setminus_intro}.
                        Contradiction.
                    \end{subproof}
                    Hence $x\in\unions{A_2}$.
                    Take $U_1\in A_2$ such that $x\in U_1$ by \cref{unions_iff}.
                    We have $U_1\in A$.
                    Hence $x\in\unions{A}$ by \cref{unions_iff}.
                
\end{byCase}

Therefore $(X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \unions{A}$ by Definition 1.
Hence $\unions{A} = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D$ by Proposition 3.

Claim: There exists $K$ such that $K$ is a compact subspace of $X$ with respect to $T$ and $\unions{A} = Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} K$.

Trivial.

Hence $\unions{A}\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Lemma 417.

LaTeX source
\begin{byCase}
        \caseOf{$p\notin\unions{A}$.}
            We have $A\subseteq T$ by \cref{unions_iff,subseteq,one_point_topology_without_p}.
            $\unions{A}\subseteq X$
                by \cref{topology_on,subseteq_transitive,unions_subseteq_of_powerset_is_subseteq}.
            Hence $\unions{A}\in S$ by \cref{topology_on,one_point_topology_intro_left}.
        \caseOf{$p\in\unions{A}$.}
            Take $U_0\in A$ such that $p\in U_0$ by \cref{unions_iff}.
            Take $C_0$ such that
                $C_0$ is a compact subspace of $X$ with respect to $T$ and
                $U_0 = (X\union\{p\})\setminus C_0$
                by \cref{subseteq,one_point_topology_with_p}.
            Let $A_1 = \{U\in A \mid p\notin U\}$.
            We have $A_1\subseteq T$ by \cref{subseteq,one_point_topology_without_p}.
            Let $U = \unions{A_1}$.
            Therefore $U\subseteq X$ and $U\in T$ by \cref{topology_on,subseteq,pow_iff}.
            Let $A_2 = \{U\in A \mid p\in U\}$.
            Let $F = \{Y\setminus U \mid U\in A_2\}$.
            $U_0\in A_2$.
            Hence $Y\setminus U_0\in F$.
            $F$ is inhabited.
            Show that for all $C$ such that $C\in F$ we have $C$ is a compact subspace of $X$ with respect to $T$.
            \begin{subproof}
                Fix $C$ such that $C\in F$.
                Take $U_1\in A_2$ such that $C = Y\setminus U_1$.
                Hence $U_1\in A$ and $p\in U_1$.
                Take $K$ such that
                    $K$ is a compact subspace of $X$ with respect to $T$ and
                    $U_1 = (X\union\{p\})\setminus K$
                    by \cref{subseteq,one_point_topology_with_p}.
                We have $K\subseteq X$ by \cref{compact_subspace}.
                $K\subseteq Y$ by \cref{union_upper_left,subseteq_transitive}.
                Hence $C = K$ by \cref{setminus_setminus,inter_absorb_supseteq_left}.
                Therefore $C$ is a compact subspace of $X$ with respect to $T$.
            \end{subproof}
            Hence $F\subseteq\pow{X}$ by \cref{subseteq,compact_subspace,pow_iff}.
            Let $C = \inters{F}$.
            $C$ is a compact subspace of $X$ with respect to $T$ by \cref{compact_subspace_inters}.
            Show that $\unions{A_2}\subseteq (X\union\{p\})\setminus C$.
            \begin{subproof}
                Follows by \cref{unions_iff,one_point_topology_subseteq_pow,subseteq,pow_iff,setminus_setminus,inter_absorb_supseteq_left,setminus_elim_right,inters_iff_forall,setminus_elim_left,setminus_intro}.
            \end{subproof}
            Show that for all $x$ such that $x\in (X\union\{p\})\setminus C$ we have
                $x\in\unions{A_2}$.
            \begin{subproof}
                Fix $x$ such that $x\in (X\union\{p\})\setminus C$.
                Hence $x\notin C$ by \cref{setminus_elim_right}.
                Suppose not.
                For all $C_1$ such that $C_1\in F$ we have $x\in C_1$
                    by \cref{subseteq,one_point_topology_subseteq_pow,pow_iff,setminus_elim_left,setminus_intro,setminus_setminus,inter_absorb_supseteq_left,unions_iff}.
                Therefore $x\in C$ by \cref{inters_iff_forall}.
                Contradiction.
                Hence $x\in\unions{A_2}$.
            \end{subproof}
            Therefore $(X\union\{p\})\setminus C\subseteq \unions{A_2}$ by \cref{subseteq}.
            Hence $\unions{A_2} = (X\union\{p\})\setminus C$ by \cref{subseteq_antisymmetric}.
            For all $x$ such that $x\in\unions{A}$ we have $x\in\unions{A_1}\union\unions{A_2}$.
            Therefore $\unions{A}\subseteq \unions{A_1}\union\unions{A_2}$ by \cref{subseteq}.
            We have $\unions{A_1}\union\unions{A_2}\subseteq \unions{A}$
                by \cref{union_iff,unions_iff,subseteq}.
            Hence $\unions{A} = \unions{A_1}\union\unions{A_2}$ by \cref{subseteq_antisymmetric}.
            Let $D = C\setminus U$.
            $D$ is a compact subspace of $X$ with respect to $T$
                by \cref{open_in,compact_subspace_minus_open}.
            Show that for all $x$ such that $x\in\unions{A}$ we have
                $x\in (X\union\{p\})\setminus D$.
            \begin{subproof}
                Fix $x$ such that $x\in\unions{A}$.
                Hence $x\in\unions{A_1}\union\unions{A_2}$.
                Therefore $x\in\unions{A_1}$ or $x\in\unions{A_2}$ by \cref{union_iff}.
                \begin{byCase}
                \caseOf{$x\in\unions{A_1}$.}
                    We have $x\in U$.
                    Hence $x\notin D$ by \cref{setminus_elim_right}.
                    Therefore $x\in (X\union\{p\})\setminus D$
                        by \cref{subseteq,union_intro_left,setminus_intro}.
                \caseOf{$x\in\unions{A_2}$.}
                    We have $x\in (X\union\{p\})\setminus C$.
                    Hence $x\notin C$ by \cref{setminus_elim_right}.
                    Therefore $x\in (X\union\{p\})\setminus D$
                        by \cref{setminus_elim_left,setminus_subseteq,subseteq,setminus_intro}.
                \end{byCase}
            \end{subproof}
            Hence $\unions{A}\subseteq (X\union\{p\})\setminus D$ by \cref{subseteq}.
            Show that for all $x$ such that $x\in (X\union\{p\})\setminus D$ we have
                $x\in\unions{A}$.
            \begin{subproof}
                Fix $x$ such that $x\in (X\union\{p\})\setminus D$.
                Hence $x\notin D$ by \cref{setminus_elim_right}.
                \begin{byCase}
                \caseOf{$x\in U$.}
                    Take $U_1\in A_1$ such that $x\in U_1$ by \cref{unions_iff}.
                    We have $U_1\in A$.
                    Therefore $x\in\unions{A}$ by \cref{unions_iff}.
                \caseOf{$x\notin U$.}
                    Show that $x\in (X\union\{p\})\setminus C$.
                    \begin{subproof}
                        Suppose not.
                        We have $x\in X\union\{p\}$ by \cref{setminus_elim_left}.
                        It is wrong that $x\notin C$ by \cref{setminus_intro}.
                        Therefore $x\in C$.
                        We have $x\in C$ and $x\notin U$.
                        Hence $x\in D$ by \cref{setminus_intro}.
                        Contradiction.
                    \end{subproof}
                    Hence $x\in\unions{A_2}$.
                    Take $U_1\in A_2$ such that $x\in U_1$ by \cref{unions_iff}.
                    We have $U_1\in A$.
                    Hence $x\in\unions{A}$ by \cref{unions_iff}.
                \end{byCase}
            \end{subproof}
            Therefore $(X\union\{p\})\setminus D\subseteq \unions{A}$ by \cref{subseteq}.
            Hence $\unions{A} = (X\union\{p\})\setminus D$ by \cref{subseteq_antisymmetric}.
            Show that there exists $K$ such that $K$ is a compact subspace of $X$ with respect to $T$
                and $\unions{A} = Y\setminus K$.
            \begin{subproof}
                Trivial.
            \end{subproof}
            Hence $\unions{A}\in S$ by \cref{one_point_topology_intro_right}.
        
\end{byCase}
Claim: For all $U,V$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ and $V\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $U\inter V\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.

Fix $U$.
Fix $V$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ and $V\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.

Case. $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} U$ and $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} V$.

We have $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ and $V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Lemma 418.
Therefore $U\inter V\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Definition 101, Lemma 416, Proposition 6, Proposition 73.

Case. $p\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $p\class{latex-symbol-tip latex-symbol-id-in}{\in} V$.

Take $C_1$ such that $C_1$ is a compact subspace of $X$ with respect to $T$ and $U = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_1$ by Lemma 419.
Take $C_2$ such that $C_2$ is a compact subspace of $X$ with respect to $T$ and $V = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_2$ by Lemma 419.
Let $C_3 = C_1\union C_2$.
Therefore $U\inter V\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Lemma 413, Lemma 417, Proposition 94.

Case. $p\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} V$.

Take $C_1$ such that $C_1$ is a compact subspace of $X$ with respect to $T$ and $U = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_1$ by Lemma 419.
We have $V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Lemma 418.
$C_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
$C_1$ is closed in $X$ with respect to $T$ by Definition 263, Theorem 60.
Therefore $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 103, Definition 149, Proposition 97.
Hence $V\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 101, Proposition 111.
$V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\union\{p\}$ and $C_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\union\{p\}$ by Proposition 6, Proposition 46.
Hence $V\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_1 = V\inter U$ by Proposition 111.
Therefore $U\inter V = V\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_1$ by Proposition 65 [Commutativity of intersection].
Hence $U\inter V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Proposition 6, Proposition 73.
Hence $U\inter V\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.
Therefore $U\inter V\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Lemma 416.

Case. $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} U$ and $p\class{latex-symbol-tip latex-symbol-id-in}{\in} V$.

Take $C_1$ such that $C_1$ is a compact subspace of $X$ with respect to $T$ and $V = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_1$ by Lemma 419.
We have $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Lemma 418.
$C_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
$C_1$ is closed in $X$ with respect to $T$ by Definition 263, Theorem 60.
Therefore $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 103, Definition 149, Proposition 97.
Hence $U\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 101, Proposition 111.
$U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\union\{p\}$ and $C_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\union\{p\}$ by Proposition 6, Proposition 46.
Hence $U\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_1 = U\inter V$ by Proposition 111.
Therefore $U\inter V = U\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_1$.
Hence $U\inter V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Proposition 6, Proposition 73.
Hence $U\inter V\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.
Therefore $U\inter V\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Lemma 416.

LaTeX source
\begin{byCase}
        \caseOf{$p\notin U$ and $p\notin V$.}
            We have $U\subseteq X$ and $U\in T$ and $V\subseteq X$ and $V\in T$
                by \cref{one_point_topology_without_p}.
            Therefore $U\inter V\in S$
                by \cref{inter_lower_left,subseteq_transitive,topology_on,one_point_topology_intro_left}.
        \caseOf{$p\in U$ and $p\in V$.}
            Take $C_1$ such that
                $C_1$ is a compact subspace of $X$ with respect to $T$ and
                $U = (X\union\{p\})\setminus C_1$
                by \cref{one_point_topology_with_p}.
            Take $C_2$ such that
                $C_2$ is a compact subspace of $X$ with respect to $T$ and
                $V = (X\union\{p\})\setminus C_2$
                by \cref{one_point_topology_with_p}.
            Let $C_3 = C_1\union C_2$.
            Therefore $U\inter V\in S$ by \cref{compact_subspace_union,setminus_union,one_point_topology_intro_right}.
        \caseOf{$p\in U$ and $p\notin V$.}
            Take $C_1$ such that
                $C_1$ is a compact subspace of $X$ with respect to $T$ and
                $U = (X\union\{p\})\setminus C_1$
                by \cref{one_point_topology_with_p}.
            We have $V\subseteq X$ and $V\in T$ by \cref{one_point_topology_without_p}.
            $C_1\subseteq X$ by \cref{compact_subspace}.
            $C_1$ is closed in $X$ with respect to $T$ by \cref{compact_subspace,compact_subspace_closed}.
            Therefore $X\setminus C_1\in T$ by \cref{closed_in,setminus_subseteq,open_in}.
            Hence $V\setminus C_1\in T$ by \cref{setminus_eq_inter_complement,topology_on}.
            $V\subseteq X\union\{p\}$ and $C_1\subseteq X\union\{p\}$
                by \cref{subseteq_transitive,union_upper_left}.
            Hence $V\setminus C_1 = V\inter U$ by \cref{setminus_eq_inter_complement}.
            Therefore $U\inter V = V\setminus C_1$ by \cref{inter_comm}.
            Hence $U\inter V\subseteq X$ by \cref{inter_lower_left,subseteq_transitive}.
            Hence $U\inter V\in T$.
            Therefore $U\inter V\in S$ by \cref{one_point_topology_intro_left}.
        \caseOf{$p\notin U$ and $p\in V$.}
            Take $C_1$ such that
                $C_1$ is a compact subspace of $X$ with respect to $T$ and
                $V = (X\union\{p\})\setminus C_1$
                by \cref{one_point_topology_with_p}.
            We have $U\subseteq X$ and $U\in T$ by \cref{one_point_topology_without_p}.
            $C_1\subseteq X$ by \cref{compact_subspace}.
            $C_1$ is closed in $X$ with respect to $T$ by \cref{compact_subspace,compact_subspace_closed}.
            Therefore $X\setminus C_1\in T$ by \cref{closed_in,setminus_subseteq,open_in}.
            Hence $U\setminus C_1\in T$ by \cref{setminus_eq_inter_complement,topology_on}.
            $U\subseteq X\union\{p\}$ and $C_1\subseteq X\union\{p\}$
                by \cref{subseteq_transitive,union_upper_left}.
            Hence $U\setminus C_1 = U\inter V$ by \cref{setminus_eq_inter_complement}.
            Therefore $U\inter V = U\setminus C_1$.
            Hence $U\inter V\subseteq X$ by \cref{inter_lower_left,subseteq_transitive}.
            Hence $U\inter V\in T$.
            Therefore $U\inter V\in S$ by \cref{one_point_topology_intro_left}.
        
\end{byCase}

Finally $S$ is a topology on $Y$ by Definition 101.

LaTeX source
\begin{proof}
    Show that $S\subseteq\pow{Y}$.
    \begin{subproof}
        Follows by \cref{one_point_topology_subseteq_pow}.
    \end{subproof}
    Show that $\emptyset\in S$.
    \begin{subproof}
        Follows by \cref{emptyset_subseteq,topology_on,one_point_topology_intro_left}.
    \end{subproof}
    Let $T_0 = \subspaceTopology{T}{\emptyset}$.
    We have $\emptyset$ is a compact subspace of $X$ with respect to $T$
        by \cref{emptyset_subseteq,subspace_topology_is_topology,emptyset_compact,compact_subspace}.
    Show that $Y\in S$.
    \begin{subproof}
        Follows by \cref{setminus_emptyset,one_point_topology_intro_right}.
    \end{subproof}
    Show that for all $A$ such that $A\subseteq S$ we have $\unions{A}\in S$.
    \begin{subproof}
        Fix $A$ such that $A\subseteq S$.
        \begin{byCase}
        \caseOf{$p\notin\unions{A}$.}
            We have $A\subseteq T$ by \cref{unions_iff,subseteq,one_point_topology_without_p}.
            $\unions{A}\subseteq X$
                by \cref{topology_on,subseteq_transitive,unions_subseteq_of_powerset_is_subseteq}.
            Hence $\unions{A}\in S$ by \cref{topology_on,one_point_topology_intro_left}.
        \caseOf{$p\in\unions{A}$.}
            Take $U_0\in A$ such that $p\in U_0$ by \cref{unions_iff}.
            Take $C_0$ such that
                $C_0$ is a compact subspace of $X$ with respect to $T$ and
                $U_0 = (X\union\{p\})\setminus C_0$
                by \cref{subseteq,one_point_topology_with_p}.
            Let $A_1 = \{U\in A \mid p\notin U\}$.
            We have $A_1\subseteq T$ by \cref{subseteq,one_point_topology_without_p}.
            Let $U = \unions{A_1}$.
            Therefore $U\subseteq X$ and $U\in T$ by \cref{topology_on,subseteq,pow_iff}.
            Let $A_2 = \{U\in A \mid p\in U\}$.
            Let $F = \{Y\setminus U \mid U\in A_2\}$.
            $U_0\in A_2$.
            Hence $Y\setminus U_0\in F$.
            $F$ is inhabited.
            Show that for all $C$ such that $C\in F$ we have $C$ is a compact subspace of $X$ with respect to $T$.
            \begin{subproof}
                Fix $C$ such that $C\in F$.
                Take $U_1\in A_2$ such that $C = Y\setminus U_1$.
                Hence $U_1\in A$ and $p\in U_1$.
                Take $K$ such that
                    $K$ is a compact subspace of $X$ with respect to $T$ and
                    $U_1 = (X\union\{p\})\setminus K$
                    by \cref{subseteq,one_point_topology_with_p}.
                We have $K\subseteq X$ by \cref{compact_subspace}.
                $K\subseteq Y$ by \cref{union_upper_left,subseteq_transitive}.
                Hence $C = K$ by \cref{setminus_setminus,inter_absorb_supseteq_left}.
                Therefore $C$ is a compact subspace of $X$ with respect to $T$.
            \end{subproof}
            Hence $F\subseteq\pow{X}$ by \cref{subseteq,compact_subspace,pow_iff}.
            Let $C = \inters{F}$.
            $C$ is a compact subspace of $X$ with respect to $T$ by \cref{compact_subspace_inters}.
            Show that $\unions{A_2}\subseteq (X\union\{p\})\setminus C$.
            \begin{subproof}
                Follows by \cref{unions_iff,one_point_topology_subseteq_pow,subseteq,pow_iff,setminus_setminus,inter_absorb_supseteq_left,setminus_elim_right,inters_iff_forall,setminus_elim_left,setminus_intro}.
            \end{subproof}
            Show that for all $x$ such that $x\in (X\union\{p\})\setminus C$ we have
                $x\in\unions{A_2}$.
            \begin{subproof}
                Fix $x$ such that $x\in (X\union\{p\})\setminus C$.
                Hence $x\notin C$ by \cref{setminus_elim_right}.
                Suppose not.
                For all $C_1$ such that $C_1\in F$ we have $x\in C_1$
                    by \cref{subseteq,one_point_topology_subseteq_pow,pow_iff,setminus_elim_left,setminus_intro,setminus_setminus,inter_absorb_supseteq_left,unions_iff}.
                Therefore $x\in C$ by \cref{inters_iff_forall}.
                Contradiction.
                Hence $x\in\unions{A_2}$.
            \end{subproof}
            Therefore $(X\union\{p\})\setminus C\subseteq \unions{A_2}$ by \cref{subseteq}.
            Hence $\unions{A_2} = (X\union\{p\})\setminus C$ by \cref{subseteq_antisymmetric}.
            For all $x$ such that $x\in\unions{A}$ we have $x\in\unions{A_1}\union\unions{A_2}$.
            Therefore $\unions{A}\subseteq \unions{A_1}\union\unions{A_2}$ by \cref{subseteq}.
            We have $\unions{A_1}\union\unions{A_2}\subseteq \unions{A}$
                by \cref{union_iff,unions_iff,subseteq}.
            Hence $\unions{A} = \unions{A_1}\union\unions{A_2}$ by \cref{subseteq_antisymmetric}.
            Let $D = C\setminus U$.
            $D$ is a compact subspace of $X$ with respect to $T$
                by \cref{open_in,compact_subspace_minus_open}.
            Show that for all $x$ such that $x\in\unions{A}$ we have
                $x\in (X\union\{p\})\setminus D$.
            \begin{subproof}
                Fix $x$ such that $x\in\unions{A}$.
                Hence $x\in\unions{A_1}\union\unions{A_2}$.
                Therefore $x\in\unions{A_1}$ or $x\in\unions{A_2}$ by \cref{union_iff}.
                \begin{byCase}
                \caseOf{$x\in\unions{A_1}$.}
                    We have $x\in U$.
                    Hence $x\notin D$ by \cref{setminus_elim_right}.
                    Therefore $x\in (X\union\{p\})\setminus D$
                        by \cref{subseteq,union_intro_left,setminus_intro}.
                \caseOf{$x\in\unions{A_2}$.}
                    We have $x\in (X\union\{p\})\setminus C$.
                    Hence $x\notin C$ by \cref{setminus_elim_right}.
                    Therefore $x\in (X\union\{p\})\setminus D$
                        by \cref{setminus_elim_left,setminus_subseteq,subseteq,setminus_intro}.
                \end{byCase}
            \end{subproof}
            Hence $\unions{A}\subseteq (X\union\{p\})\setminus D$ by \cref{subseteq}.
            Show that for all $x$ such that $x\in (X\union\{p\})\setminus D$ we have
                $x\in\unions{A}$.
            \begin{subproof}
                Fix $x$ such that $x\in (X\union\{p\})\setminus D$.
                Hence $x\notin D$ by \cref{setminus_elim_right}.
                \begin{byCase}
                \caseOf{$x\in U$.}
                    Take $U_1\in A_1$ such that $x\in U_1$ by \cref{unions_iff}.
                    We have $U_1\in A$.
                    Therefore $x\in\unions{A}$ by \cref{unions_iff}.
                \caseOf{$x\notin U$.}
                    Show that $x\in (X\union\{p\})\setminus C$.
                    \begin{subproof}
                        Suppose not.
                        We have $x\in X\union\{p\}$ by \cref{setminus_elim_left}.
                        It is wrong that $x\notin C$ by \cref{setminus_intro}.
                        Therefore $x\in C$.
                        We have $x\in C$ and $x\notin U$.
                        Hence $x\in D$ by \cref{setminus_intro}.
                        Contradiction.
                    \end{subproof}
                    Hence $x\in\unions{A_2}$.
                    Take $U_1\in A_2$ such that $x\in U_1$ by \cref{unions_iff}.
                    We have $U_1\in A$.
                    Hence $x\in\unions{A}$ by \cref{unions_iff}.
                \end{byCase}
            \end{subproof}
            Therefore $(X\union\{p\})\setminus D\subseteq \unions{A}$ by \cref{subseteq}.
            Hence $\unions{A} = (X\union\{p\})\setminus D$ by \cref{subseteq_antisymmetric}.
            Show that there exists $K$ such that $K$ is a compact subspace of $X$ with respect to $T$
                and $\unions{A} = Y\setminus K$.
            \begin{subproof}
                Trivial.
            \end{subproof}
            Hence $\unions{A}\in S$ by \cref{one_point_topology_intro_right}.
        \end{byCase}
    \end{subproof}
    Show that for all $U,V$ such that $U\in S$ and $V\in S$ we have $U\inter V\in S$.
    \begin{subproof}
        Fix $U$.
        Fix $V$ such that $U\in S$ and $V\in S$.
        \begin{byCase}
        \caseOf{$p\notin U$ and $p\notin V$.}
            We have $U\subseteq X$ and $U\in T$ and $V\subseteq X$ and $V\in T$
                by \cref{one_point_topology_without_p}.
            Therefore $U\inter V\in S$
                by \cref{inter_lower_left,subseteq_transitive,topology_on,one_point_topology_intro_left}.
        \caseOf{$p\in U$ and $p\in V$.}
            Take $C_1$ such that
                $C_1$ is a compact subspace of $X$ with respect to $T$ and
                $U = (X\union\{p\})\setminus C_1$
                by \cref{one_point_topology_with_p}.
            Take $C_2$ such that
                $C_2$ is a compact subspace of $X$ with respect to $T$ and
                $V = (X\union\{p\})\setminus C_2$
                by \cref{one_point_topology_with_p}.
            Let $C_3 = C_1\union C_2$.
            Therefore $U\inter V\in S$ by \cref{compact_subspace_union,setminus_union,one_point_topology_intro_right}.
        \caseOf{$p\in U$ and $p\notin V$.}
            Take $C_1$ such that
                $C_1$ is a compact subspace of $X$ with respect to $T$ and
                $U = (X\union\{p\})\setminus C_1$
                by \cref{one_point_topology_with_p}.
            We have $V\subseteq X$ and $V\in T$ by \cref{one_point_topology_without_p}.
            $C_1\subseteq X$ by \cref{compact_subspace}.
            $C_1$ is closed in $X$ with respect to $T$ by \cref{compact_subspace,compact_subspace_closed}.
            Therefore $X\setminus C_1\in T$ by \cref{closed_in,setminus_subseteq,open_in}.
            Hence $V\setminus C_1\in T$ by \cref{setminus_eq_inter_complement,topology_on}.
            $V\subseteq X\union\{p\}$ and $C_1\subseteq X\union\{p\}$
                by \cref{subseteq_transitive,union_upper_left}.
            Hence $V\setminus C_1 = V\inter U$ by \cref{setminus_eq_inter_complement}.
            Therefore $U\inter V = V\setminus C_1$ by \cref{inter_comm}.
            Hence $U\inter V\subseteq X$ by \cref{inter_lower_left,subseteq_transitive}.
            Hence $U\inter V\in T$.
            Therefore $U\inter V\in S$ by \cref{one_point_topology_intro_left}.
        \caseOf{$p\notin U$ and $p\in V$.}
            Take $C_1$ such that
                $C_1$ is a compact subspace of $X$ with respect to $T$ and
                $V = (X\union\{p\})\setminus C_1$
                by \cref{one_point_topology_with_p}.
            We have $U\subseteq X$ and $U\in T$ by \cref{one_point_topology_without_p}.
            $C_1\subseteq X$ by \cref{compact_subspace}.
            $C_1$ is closed in $X$ with respect to $T$ by \cref{compact_subspace,compact_subspace_closed}.
            Therefore $X\setminus C_1\in T$ by \cref{closed_in,setminus_subseteq,open_in}.
            Hence $U\setminus C_1\in T$ by \cref{setminus_eq_inter_complement,topology_on}.
            $U\subseteq X\union\{p\}$ and $C_1\subseteq X\union\{p\}$
                by \cref{subseteq_transitive,union_upper_left}.
            Hence $U\setminus C_1 = U\inter V$ by \cref{setminus_eq_inter_complement}.
            Therefore $U\inter V = U\setminus C_1$.
            Hence $U\inter V\subseteq X$ by \cref{inter_lower_left,subseteq_transitive}.
            Hence $U\inter V\in T$.
            Therefore $U\inter V\in S$ by \cref{one_point_topology_intro_left}.
        \end{byCase}
    \end{subproof}
    Finally $S$ is a topology on $Y$ by \cref{topology_on}.
\end{proof}
Lemma 421
one_point_topology_subspace

Assume $T$ is a topology on $X$.
Assume $X$ is Hausdorff with respect to $T$.
Assume $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.
Let $Y = X\union\{p\}$.
Let $S = \onePointTopology{T}{X}{p}$.
Let $T_X = \subspaceTopology{S}{X}$.
Then $T_X = T$.

LaTeX source
\begin{lemma}
\label{one_point_topology_subspace}
    Assume $T$ is a topology on $X$.
    Assume $X$ is Hausdorff with respect to $T$.
    Assume $p\notin X$.
    Let $Y = X\union\{p\}$.
    Let $S = \onePointTopology{T}{X}{p}$.
    Let $T_X = \subspaceTopology{S}{X}$.
    Then $T_X = T$.
\end{lemma}
Proof
Claim: $T\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_X$.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_X$ we have $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.

Fix $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_X$.
Take $V\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ such that $U = X\inter V$ by Definition 146.

Case. $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} V$.

Hence $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Lemma 418, Proposition 70.

Case. $p\class{latex-symbol-tip latex-symbol-id-in}{\in} V$.

Take $C$ such that $C$ is a compact subspace of $X$ with respect to $T$ and $V = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ by Lemma 419.
$C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
$C$ is closed in $X$ with respect to $T$ by Definition 263, Theorem 60.
Therefore $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 103, Definition 149, Proposition 97.
Therefore $U = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ by Definition 263, Proposition 6, Proposition 46, Proposition 111.
Hence $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.

LaTeX source
\begin{byCase}
        \caseOf{$p\notin V$.}
            Hence $U\in T$ by \cref{one_point_topology_without_p,inter_absorb_supseteq_left}.
        \caseOf{$p\in V$.}
            Take $C$ such that
                $C$ is a compact subspace of $X$ with respect to $T$ and
                $V = (X\union\{p\})\setminus C$
                by \cref{one_point_topology_with_p}.
            $C\subseteq X$ by \cref{compact_subspace}.
            $C$ is closed in $X$ with respect to $T$ by \cref{compact_subspace,compact_subspace_closed}.
            Therefore $X\setminus C\in T$ by \cref{closed_in,setminus_subseteq,open_in}.
            Therefore $U = X\setminus C$
                by \cref{compact_subspace,union_upper_left,subseteq_transitive,setminus_eq_inter_complement}.
            Hence $U\in T$.
        
\end{byCase}

Therefore $T_X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Definition 1.
Hence $T_X = T$ by Proposition 3.

LaTeX source
\begin{proof}
    Show that $T\subseteq T_X$.
    \begin{subproof}
        Follows by \cref{topology_on,pow_iff,subseteq,one_point_topology_intro_left,inter_absorb_supseteq_left,subspace_topology}.
    \end{subproof}
    Show that for all $U$ such that $U\in T_X$ we have $U\in T$.
    \begin{subproof}
        Fix $U$ such that $U\in T_X$.
        Take $V\in S$ such that $U = X\inter V$ by \cref{subspace_topology}.
        \begin{byCase}
        \caseOf{$p\notin V$.}
            Hence $U\in T$ by \cref{one_point_topology_without_p,inter_absorb_supseteq_left}.
        \caseOf{$p\in V$.}
            Take $C$ such that
                $C$ is a compact subspace of $X$ with respect to $T$ and
                $V = (X\union\{p\})\setminus C$
                by \cref{one_point_topology_with_p}.
            $C\subseteq X$ by \cref{compact_subspace}.
            $C$ is closed in $X$ with respect to $T$ by \cref{compact_subspace,compact_subspace_closed}.
            Therefore $X\setminus C\in T$ by \cref{closed_in,setminus_subseteq,open_in}.
            Therefore $U = X\setminus C$
                by \cref{compact_subspace,union_upper_left,subseteq_transitive,setminus_eq_inter_complement}.
            Hence $U\in T$.
        \end{byCase}
    \end{subproof}
    Therefore $T_X\subseteq T$ by \cref{subseteq}.
    Hence $T_X = T$ by \cref{subseteq_antisymmetric}.
\end{proof}
Lemma 422
one_point_topology_compact

Assume $T$ is a topology on $X$.
Assume $X$ is Hausdorff with respect to $T$.
Assume $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.
Let $Y = X\union\{p\}$.
Let $S = \onePointTopology{T}{X}{p}$.
Then $Y$ is compact with respect to $S$.

LaTeX source
\begin{lemma}
\label{one_point_topology_compact}
    Assume $T$ is a topology on $X$.
    Assume $X$ is Hausdorff with respect to $T$.
    Assume $p\notin X$.
    Let $Y = X\union\{p\}$.
    Let $S = \onePointTopology{T}{X}{p}$.
    Then $Y$ is compact with respect to $S$.
\end{lemma}
Proof
Claim: For all $A$ such that $A$ is an open covering of $Y$ with respect to $S$ there exists $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $B$ is finite and $B$ is a covering of $Y$.

Fix $A$ such that $A$ is an open covering of $Y$ with respect to $S$.
We have $A$ is a covering of $Y$ and for all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $U$ is open in $Y$ with respect to $S$ by Definition 246.
Hence $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$ by Definition 1, Definition 245, Proposition 20, Proposition 39.
Take $U_0\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} U_0$ by Axiom 4.
Take $C_0$ such that $C_0$ is a compact subspace of $X$ with respect to $T$ and $U_0 = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C_0$ by Definition 103, Definition 246, Lemma 419.
Let $A_0 = A\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{U_0\}$.
Therefore $A_0$ is a covering of $C_0$ by Axiom 4, Definition 1, Definition 245, Definition 263, Proposition 22, Proposition 46, Proposition 85, Proposition 87.
$T = \subspaceTopology{S}{X}$ and $S$ is a topology on $Y$ by Lemma 420, Lemma 421.
Hence $C_0$ is compact with respect to $\subspaceTopology{S}{C_0}$ by Definition 263, Lemma 307, Proposition 46.
Hence $C_0$ is a subspace of $Y$ with respect to $S$ by Definition 147, Definition 263, Proposition 6, Proposition 46.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ we have $U$ is open in $Y$ with respect to $S$ by Definition 246, Proposition 86.
Take $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_0$ and $B$ is finite and $B$ is a covering of $C_0$ by Lemma 356.
Let $E = B\union\{U_0\}$.
$E$ is finite by Lemma 40, Lemma 44, Lemma 45, Proposition 16, Proposition 25.
We have $E\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Proposition 6, Proposition 25, Proposition 44, Proposition 97.
Hence $E$ is a covering of $Y$ by Axiom 4, Definition 1, Definition 245, Definition 263, Proposition 6, Proposition 20, Proposition 38, Proposition 39, Proposition 70, Proposition 85, Proposition 91.
There exists $B_0$ such that $B_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $B_0$ is finite and $B_0$ is a covering of $Y$.

Finally $Y$ is compact with respect to $S$ by Definition 247.

LaTeX source
\begin{proof}
    Show that for all $A$ such that $A$ is an open covering of $Y$ with respect to $S$
        there exists $B$ such that $B\subseteq A$ and $B$ is finite and $B$ is a covering of $Y$.
    \begin{subproof}
        Fix $A$ such that $A$ is an open covering of $Y$ with respect to $S$.
        We have $A$ is a covering of $Y$ and
            for all $U$ such that $U\in A$ we have $U$ is open in $Y$ with respect to $S$
            by \cref{open_covering}.
        Hence $p\in\unions{A}$ by \cref{singleton_intro,union_intro_right,covering,subseteq}.
        Take $U_0\in A$ such that $p\in U_0$ by \cref{unions_iff}.
        Take $C_0$ such that
            $C_0$ is a compact subspace of $X$ with respect to $T$ and
            $U_0 = (X\union\{p\})\setminus C_0$
            by \cref{open_covering,open_in,one_point_topology_with_p}.
        Let $A_0 = A\setminus\{U_0\}$.
        Therefore $A_0$ is a covering of $C_0$
            by \cref{setminus_elim_right,compact_subspace,subseteq,union_upper_left,covering,unions_iff,singleton_iff,setminus_intro}.
        $T = \subspaceTopology{S}{X}$ and $S$ is a topology on $Y$
            by \cref{one_point_topology_subspace,one_point_topology_is_topology}.
        Hence $C_0$ is compact with respect to $\subspaceTopology{S}{C_0}$
            by \cref{compact_subspace,union_upper_left,subspace_subspace_topology}.
        Hence $C_0$ is a subspace of $Y$ with respect to $S$
            by \cref{compact_subspace,union_upper_left,subseteq_transitive,subspace_of}.
        For all $U$ such that $U\in A_0$ we have $U$ is open in $Y$ with respect to $S$
            by \cref{setminus_elim_left,open_covering}.
        Take $B$ such that
            $B\subseteq A_0$ and
            $B$ is finite and
            $B$ is a covering of $C_0$
            by \cref{compact_subspace_open_covering}.
        Let $E = B\union\{U_0\}$.
        $E$ is finite by \cref{pair_is_finite,upair_intro_left,singleton_subset_intro,subseteq_finite_is_finite,union_of_finite_is_finite}.
        We have $E\subseteq A$ by \cref{setminus_subseteq,subseteq_transitive,singleton_subset_intro,union_subsets_is_subset}.
        Hence $E$ is a covering of $Y$
            by \cref{singleton_intro,union_intro_right,unions_iff,setminus_intro,compact_subspace,subseteq_transitive,setminus_setminus,inter_absorb_supseteq_left,subseteq,covering,union_intro_left}.
        There exists $B_0$ such that
            $B_0\subseteq A$ and
            $B_0$ is finite and
            $B_0$ is a covering of $Y$.
    \end{subproof}
    Finally $Y$ is compact with respect to $S$ by \cref{compact}.
\end{proof}
Lemma 423
one_point_topology_hausdorff

Assume $T$ is a topology on $X$.
Assume $X$ is Hausdorff with respect to $T$.
Assume $X$ is locally compact with respect to $T$.
Assume $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.
Let $Y = X\union\{p\}$.
Let $S = \onePointTopology{T}{X}{p}$.
Then $Y$ is Hausdorff with respect to $S$.

LaTeX source
\begin{lemma}
\label{one_point_topology_hausdorff}
    Assume $T$ is a topology on $X$.
    Assume $X$ is Hausdorff with respect to $T$.
    Assume $X$ is locally compact with respect to $T$.
    Assume $p\notin X$.
    Let $Y = X\union\{p\}$.
    Let $S = \onePointTopology{T}{X}{p}$.
    Then $Y$ is Hausdorff with respect to $S$.
\end{lemma}
Proof

$S$ is a topology on $Y$ by Lemma 420.

Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $x\class{latex-symbol-tip latex-symbol-id-neq}{\neq} y$ there exist $U,V$ such that $U$ is a neighborhood of $x$ in $Y$ with respect to $S$ and $V$ is a neighborhood of $y$ in $Y$ with respect to $S$ and $U$ is disjoint from $V$.

Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $x\class{latex-symbol-tip latex-symbol-id-neq}{\neq} y$.

Claim: $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ or $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.

Suppose not.
Hence $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$ and $y\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\{p\}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\{p\}$ by Axiom 5.
Hence $x = p$ and $y = p$ by Proposition 22.
Thus $x = y$.
Contradiction.

Case. $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.

Take $U_0,V_0$ such that $U_0$ is a neighborhood of $x$ in $X$ with respect to $T$ and $V_0$ is a neighborhood of $y$ in $X$ with respect to $T$ and $U_0$ is disjoint from $V_0$ by Definition 156.
Hence $U_0$ is a neighborhood of $x$ in $Y$ with respect to $S$ and $V_0$ is a neighborhood of $y$ in $Y$ with respect to $S$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 153, Lemma 416.

Claim: There exist $U,V$ such that $U$ is a neighborhood of $x$ in $Y$ with respect to $S$ and $V$ is a neighborhood of $y$ in $Y$ with respect to $S$ and $U$ is disjoint from $V$.

Trivial.

Case. $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.

Take $C$ such that $C$ is a compact subspace of $X$ with respect to $T$ and there exists $U_0$ such that $U_0$ is a neighborhood of $x$ in $X$ with respect to $T$ and $U_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 264, Definition 265.
Take $U_0$ such that $U_0$ is a neighborhood of $x$ in $X$ with respect to $T$ and $U_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Let $V_0 = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$.
Therefore $V_0\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Lemma 417.
Hence $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V_0$ by Axiom 5, Definition 1, Definition 263, Proposition 22, Proposition 85.
Hence $U_0$ is disjoint from $V_0$ by Definition 1, Definition 3, Proposition 87.
Therefore $U_0$ is a neighborhood of $x$ in $Y$ with respect to $S$ and $V_0$ is a neighborhood of $y$ in $Y$ with respect to $S$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 153, Definition 263, Lemma 416, Proposition 85.

Claim: There exist $U,V$ such that $U$ is a neighborhood of $x$ in $Y$ with respect to $S$ and $V$ is a neighborhood of $y$ in $Y$ with respect to $S$ and $U$ is disjoint from $V$.

Trivial.

Case. $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.

Take $C$ such that $C$ is a compact subspace of $X$ with respect to $T$ and there exists $U_0$ such that $U_0$ is a neighborhood of $y$ in $X$ with respect to $T$ and $U_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 264, Definition 265.
Take $U_0$ such that $U_0$ is a neighborhood of $y$ in $X$ with respect to $T$ and $U_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Let $V_0 = (X\union\{p\})\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$.
Therefore $V_0\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Lemma 417.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} V_0$ by Axiom 5, Definition 1, Definition 263, Proposition 22, Proposition 85.
Hence $U_0$ is disjoint from $V_0$ by Definition 1, Definition 3, Proposition 87.
Therefore $U_0$ is a neighborhood of $y$ in $Y$ with respect to $S$ and $V_0$ is a neighborhood of $x$ in $Y$ with respect to $S$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 153, Definition 263, Lemma 416, Proposition 85.
Therefore $V_0$ is disjoint from $U_0$ by Proposition 13.

Claim: There exist $U,V$ such that $U$ is a neighborhood of $x$ in $Y$ with respect to $S$ and $V$ is a neighborhood of $y$ in $Y$ with respect to $S$ and $U$ is disjoint from $V$.

Trivial.

LaTeX source
\begin{byCase}
        \caseOf{$x\in X$ and $y\in X$.}
            Take $U_0,V_0$ such that
                $U_0$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                $V_0$ is a neighborhood of $y$ in $X$ with respect to $T$ and
                $U_0$ is disjoint from $V_0$
                by \cref{hausdorff}.
            Hence $U_0$ is a neighborhood of $x$ in $Y$ with respect to $S$ and
                $V_0$ is a neighborhood of $y$ in $Y$ with respect to $S$
                by \cref{neighborhood,open_in,topology_on,subseteq,pow_iff,one_point_topology_intro_left}.
            Show that there exist $U,V$ such that
                $U$ is a neighborhood of $x$ in $Y$ with respect to $S$ and
                $V$ is a neighborhood of $y$ in $Y$ with respect to $S$ and
                $U$ is disjoint from $V$.
            \begin{subproof}
                Trivial.
            \end{subproof}
        \caseOf{$x\in X$ and $y\notin X$.}
            Take $C$ such that
                $C$ is a compact subspace of $X$ with respect to $T$ and
                there exists $U_0$ such that
                    $U_0$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                    $U_0\subseteq C$
                by \cref{locally_compact,locally_compact_at_point}.
            Take $U_0$ such that
                $U_0$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                $U_0\subseteq C$.
            Let $V_0 = (X\union\{p\})\setminus C$.
            Therefore $V_0\in S$ by \cref{one_point_topology_intro_right}.
            Hence $y\in V_0$ by \cref{compact_subspace,subseteq,union_iff,singleton_iff,setminus_intro}.
            Hence $U_0$ is disjoint from $V_0$ by \cref{subseteq,setminus_elim_right,disjoint}.
            Therefore $U_0$ is a neighborhood of $x$ in $Y$ with respect to $S$ and
                $V_0$ is a neighborhood of $y$ in $Y$ with respect to $S$
                by \cref{neighborhood,open_in,topology_on,subseteq,pow_iff,one_point_topology_intro_left,compact_subspace,setminus_intro}.
            Show that there exist $U,V$ such that
                $U$ is a neighborhood of $x$ in $Y$ with respect to $S$ and
                $V$ is a neighborhood of $y$ in $Y$ with respect to $S$ and
                $U$ is disjoint from $V$.
            \begin{subproof}
                Trivial.
            \end{subproof}
        \caseOf{$x\notin X$ and $y\in X$.}
            Take $C$ such that
                $C$ is a compact subspace of $X$ with respect to $T$ and
                there exists $U_0$ such that
                    $U_0$ is a neighborhood of $y$ in $X$ with respect to $T$ and
                    $U_0\subseteq C$
                by \cref{locally_compact,locally_compact_at_point}.
            Take $U_0$ such that
                $U_0$ is a neighborhood of $y$ in $X$ with respect to $T$ and
                $U_0\subseteq C$.
            Let $V_0 = (X\union\{p\})\setminus C$.
            Therefore $V_0\in S$ by \cref{one_point_topology_intro_right}.
            Hence $x\in V_0$ by \cref{compact_subspace,subseteq,union_iff,singleton_iff,setminus_intro}.
            Hence $U_0$ is disjoint from $V_0$ by \cref{subseteq,setminus_elim_right,disjoint}.
            Therefore $U_0$ is a neighborhood of $y$ in $Y$ with respect to $S$ and
                $V_0$ is a neighborhood of $x$ in $Y$ with respect to $S$
                by \cref{neighborhood,open_in,topology_on,subseteq,pow_iff,one_point_topology_intro_left,compact_subspace,setminus_intro}.
            Therefore $V_0$ is disjoint from $U_0$ by \cref{disjoint_symmetric}.
            Show that there exist $U,V$ such that
                $U$ is a neighborhood of $x$ in $Y$ with respect to $S$ and
                $V$ is a neighborhood of $y$ in $Y$ with respect to $S$ and
                $U$ is disjoint from $V$.
            \begin{subproof}
                Trivial.
            \end{subproof}
        
\end{byCase}

Finally $Y$ is Hausdorff with respect to $S$ by Definition 156.

LaTeX source
\begin{proof}
    $S$ is a topology on $Y$ by \cref{one_point_topology_is_topology}.
    Show that for all $x,y$ such that $x\in Y$ and $y\in Y$ and $x\neq y$ there exist $U,V$ such that
        $U$ is a neighborhood of $x$ in $Y$ with respect to $S$ and
        $V$ is a neighborhood of $y$ in $Y$ with respect to $S$ and
        $U$ is disjoint from $V$.
    \begin{subproof}
        Fix $x$.
        Fix $y$ such that $x\in Y$ and $y\in Y$ and $x\neq y$.
        Show that $x\in X$ or $y\in X$.
        \begin{subproof}
            Suppose not.
            Hence $x\notin X$ and $y\notin X$.
            Therefore $x\in\{p\}$ and $y\in\{p\}$ by \cref{union_iff}.
            Hence $x = p$ and $y = p$ by \cref{singleton_iff}.
            Thus $x = y$.
            Contradiction.
        \end{subproof}
        \begin{byCase}
        \caseOf{$x\in X$ and $y\in X$.}
            Take $U_0,V_0$ such that
                $U_0$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                $V_0$ is a neighborhood of $y$ in $X$ with respect to $T$ and
                $U_0$ is disjoint from $V_0$
                by \cref{hausdorff}.
            Hence $U_0$ is a neighborhood of $x$ in $Y$ with respect to $S$ and
                $V_0$ is a neighborhood of $y$ in $Y$ with respect to $S$
                by \cref{neighborhood,open_in,topology_on,subseteq,pow_iff,one_point_topology_intro_left}.
            Show that there exist $U,V$ such that
                $U$ is a neighborhood of $x$ in $Y$ with respect to $S$ and
                $V$ is a neighborhood of $y$ in $Y$ with respect to $S$ and
                $U$ is disjoint from $V$.
            \begin{subproof}
                Trivial.
            \end{subproof}
        \caseOf{$x\in X$ and $y\notin X$.}
            Take $C$ such that
                $C$ is a compact subspace of $X$ with respect to $T$ and
                there exists $U_0$ such that
                    $U_0$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                    $U_0\subseteq C$
                by \cref{locally_compact,locally_compact_at_point}.
            Take $U_0$ such that
                $U_0$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                $U_0\subseteq C$.
            Let $V_0 = (X\union\{p\})\setminus C$.
            Therefore $V_0\in S$ by \cref{one_point_topology_intro_right}.
            Hence $y\in V_0$ by \cref{compact_subspace,subseteq,union_iff,singleton_iff,setminus_intro}.
            Hence $U_0$ is disjoint from $V_0$ by \cref{subseteq,setminus_elim_right,disjoint}.
            Therefore $U_0$ is a neighborhood of $x$ in $Y$ with respect to $S$ and
                $V_0$ is a neighborhood of $y$ in $Y$ with respect to $S$
                by \cref{neighborhood,open_in,topology_on,subseteq,pow_iff,one_point_topology_intro_left,compact_subspace,setminus_intro}.
            Show that there exist $U,V$ such that
                $U$ is a neighborhood of $x$ in $Y$ with respect to $S$ and
                $V$ is a neighborhood of $y$ in $Y$ with respect to $S$ and
                $U$ is disjoint from $V$.
            \begin{subproof}
                Trivial.
            \end{subproof}
        \caseOf{$x\notin X$ and $y\in X$.}
            Take $C$ such that
                $C$ is a compact subspace of $X$ with respect to $T$ and
                there exists $U_0$ such that
                    $U_0$ is a neighborhood of $y$ in $X$ with respect to $T$ and
                    $U_0\subseteq C$
                by \cref{locally_compact,locally_compact_at_point}.
            Take $U_0$ such that
                $U_0$ is a neighborhood of $y$ in $X$ with respect to $T$ and
                $U_0\subseteq C$.
            Let $V_0 = (X\union\{p\})\setminus C$.
            Therefore $V_0\in S$ by \cref{one_point_topology_intro_right}.
            Hence $x\in V_0$ by \cref{compact_subspace,subseteq,union_iff,singleton_iff,setminus_intro}.
            Hence $U_0$ is disjoint from $V_0$ by \cref{subseteq,setminus_elim_right,disjoint}.
            Therefore $U_0$ is a neighborhood of $y$ in $Y$ with respect to $S$ and
                $V_0$ is a neighborhood of $x$ in $Y$ with respect to $S$
                by \cref{neighborhood,open_in,topology_on,subseteq,pow_iff,one_point_topology_intro_left,compact_subspace,setminus_intro}.
            Therefore $V_0$ is disjoint from $U_0$ by \cref{disjoint_symmetric}.
            Show that there exist $U,V$ such that
                $U$ is a neighborhood of $x$ in $Y$ with respect to $S$ and
                $V$ is a neighborhood of $y$ in $Y$ with respect to $S$ and
                $U$ is disjoint from $V$.
            \begin{subproof}
                Trivial.
            \end{subproof}
        \end{byCase}
    \end{subproof}
    Finally $Y$ is Hausdorff with respect to $S$ by \cref{hausdorff}.
\end{proof}
Theorem 73
one_point_compactification_existence_forward

Assume $T$ is a topology on $X$.
If $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$, then there exist $Y,S,p$ such that $S$ is a topology on $Y$ and $X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and $T = \subspaceTopology{S}{X}$ and $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} X = \{p\}$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$.

LaTeX source
\begin{theorem}
\label{one_point_compactification_existence_forward}
    Assume $T$ is a topology on $X$.
    If $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$, then
        there exist $Y,S,p$ such that
            $S$ is a topology on $Y$ and
            $X\subseteq Y$ and
            $T = \subspaceTopology{S}{X}$ and
            $Y\setminus X = \{p\}$ and
            $Y$ is compact with respect to $S$ and
            $Y$ is Hausdorff with respect to $S$.
\end{theorem}
Proof

Assume $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.
Let $p_0 = X$.
$p_0\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$ by Lemma 410.
Let $Y_0 = X\union\{p_0\}$.
Let $S_0 = \onePointTopology{T}{X}{p_0}$.
$S_0$ is a topology on $Y_0$ by Lemma 420.
$X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y_0$ by Proposition 46.
$T = \subspaceTopology{S_0}{X}$ by Lemma 421.
Hence $Y_0\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} X = \{p_0\}$ by Axiom 5, Definition 1, Proposition 3, Proposition 22, Proposition 39, Proposition 85, Proposition 86, Proposition 87.
$Y_0$ is compact with respect to $S_0$ and $Y_0$ is Hausdorff with respect to $S_0$ by Lemma 422, Lemma 423.

Claim: There exist $Y,S,p$ such that $S$ is a topology on $Y$ and $X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and $T = \subspaceTopology{S}{X}$ and $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} X = \{p\}$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$.

Trivial.

LaTeX source
\begin{proof}
    Assume $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.
    Let $p_0 = X$.
    $p_0\notin X$ by \cref{set_notin_self}.
    Let $Y_0 = X\union\{p_0\}$.
    Let $S_0 = \onePointTopology{T}{X}{p_0}$.
    $S_0$ is a topology on $Y_0$ by \cref{one_point_topology_is_topology}.
    $X\subseteq Y_0$ by \cref{union_upper_left}.
    $T = \subspaceTopology{S_0}{X}$ by \cref{one_point_topology_subspace}.
    Hence $Y_0\setminus X = \{p_0\}$
        by \cref{setminus_elim_left,setminus_elim_right,union_iff,singleton_iff,union_intro_right,setminus_intro,subseteq,subseteq_antisymmetric}.
    $Y_0$ is compact with respect to $S_0$ and $Y_0$ is Hausdorff with respect to $S_0$
        by \cref{one_point_topology_compact,one_point_topology_hausdorff}.
    Show that there exist $Y,S,p$ such that
        $S$ is a topology on $Y$ and
        $X\subseteq Y$ and
        $T = \subspaceTopology{S}{X}$ and
        $Y\setminus X = \{p\}$ and
        $Y$ is compact with respect to $S$ and
        $Y$ is Hausdorff with respect to $S$.
    \begin{subproof}
        Trivial.
    \end{subproof}
\end{proof}
Theorem 74
one_point_compactification_existence_reverse

Assume $T$ is a topology on $X$.
If there exist $Y,S,p$ such that $S$ is a topology on $Y$ and $X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and $T = \subspaceTopology{S}{X}$ and $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} X = \{p\}$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$ then $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.

LaTeX source
\begin{theorem}
\label{one_point_compactification_existence_reverse}
    Assume $T$ is a topology on $X$.
    If there exist $Y,S,p$ such that
            $S$ is a topology on $Y$ and
            $X\subseteq Y$ and
            $T = \subspaceTopology{S}{X}$ and
            $Y\setminus X = \{p\}$ and
            $Y$ is compact with respect to $S$ and
            $Y$ is Hausdorff with respect to $S$
        then $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.
\end{theorem}
Proof

Assume there exist $Y,S,p$ such that $S$ is a topology on $Y$ and $X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and $T = \subspaceTopology{S}{X}$ and $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} X = \{p\}$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$.
Take $Y_0,S_0,p_0$ such that $S_0$ is a topology on $Y_0$ and $X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y_0$ and $T = \subspaceTopology{S_0}{X}$ and $Y_0\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} X = \{p_0\}$ and $Y_0$ is compact with respect to $S_0$ and $Y_0$ is Hausdorff with respect to $S_0$.
Hence $Y_0 = X\union\{p_0\}$ by Proposition 107.

Claim: $X$ is Hausdorff with respect to $T$.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $X$ is locally compact at $x$ with respect to $T$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
We have $p_0\class{latex-symbol-tip latex-symbol-id-in}{\in} Y_0$ and $p_0\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$ by Proposition 20, Proposition 86, Proposition 87.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y_0$ by Definition 1.
Therefore $x\class{latex-symbol-tip latex-symbol-id-neq}{\neq} p_0$.
Take $U,V$ such that $U$ is a neighborhood of $x$ in $Y_0$ with respect to $S_0$ and $V$ is a neighborhood of $p_0$ in $Y_0$ with respect to $S_0$ and $U$ is disjoint from $V$ by Definition 156.
Let $C = Y_0\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} V$.
$C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y_0$ and $V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y_0$ and $V$ is open in $Y_0$ with respect to $S_0$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 153, Proposition 97.
Hence $Y_0\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C = V$ by Proposition 70, Proposition 91.
Therefore $C$ is closed in $Y_0$ with respect to $S_0$ and $C$ is compact with respect to $\subspaceTopology{S_0}{C}$ by Definition 149, Definition 153, Theorem 59.
Hence $p_0\class{latex-symbol-tip latex-symbol-id-notin}{\notin} C$ by Definition 153, Proposition 87.
Hence $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 5, Definition 1, Proposition 22, Proposition 86, Proposition 87.
Therefore $C$ is a compact subspace of $X$ with respect to $T$ by Definition 263, Lemma 307.
Hence $U\inter X$ is a neighborhood of $x$ in $X$ with respect to $T$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 146, Definition 153, Proposition 61, Proposition 65 [Commutativity of intersection].
Therefore $U\inter X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 1, Definition 3, Proposition 73, Proposition 74, Proposition 85.
Hence $X$ is locally compact at $x$ with respect to $T$ by Definition 264.

Therefore $X$ is locally compact with respect to $T$ by Definition 265.

Claim: $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.

Trivial.

LaTeX source
\begin{proof}
    Assume there exist $Y,S,p$ such that
        $S$ is a topology on $Y$ and
        $X\subseteq Y$ and
        $T = \subspaceTopology{S}{X}$ and
        $Y\setminus X = \{p\}$ and
        $Y$ is compact with respect to $S$ and
        $Y$ is Hausdorff with respect to $S$.
    Take $Y_0,S_0,p_0$ such that
        $S_0$ is a topology on $Y_0$ and
        $X\subseteq Y_0$ and
        $T = \subspaceTopology{S_0}{X}$ and
        $Y_0\setminus X = \{p_0\}$ and
        $Y_0$ is compact with respect to $S_0$ and
        $Y_0$ is Hausdorff with respect to $S_0$.
    Hence $Y_0 = X\union\{p_0\}$ by \cref{setminus_partition}.
    Show that $X$ is Hausdorff with respect to $T$.
    \begin{subproof}
        Follows by \cref{subspace_of,subspace_hausdorff}.
    \end{subproof}
    Show that for all $x\in X$ we have $X$ is locally compact at $x$ with respect to $T$.
    \begin{subproof}
            Fix $x$ such that $x\in X$.
            We have $p_0\in Y_0$ and $p_0\notin X$ by \cref{singleton_intro,setminus_elim_left,setminus_elim_right}.
            $x\in Y_0$ by \cref{subseteq}.
            Therefore $x\neq p_0$.
            Take $U,V$ such that
                $U$ is a neighborhood of $x$ in $Y_0$ with respect to $S_0$ and
                $V$ is a neighborhood of $p_0$ in $Y_0$ with respect to $S_0$ and
                $U$ is disjoint from $V$
                by \cref{hausdorff}.
            Let $C = Y_0\setminus V$.
            $C\subseteq Y_0$ and $V\subseteq Y_0$ and $V$ is open in $Y_0$ with respect to $S_0$
                by \cref{setminus_subseteq,neighborhood,open_in,topology_on,subseteq,pow_iff}.
            Hence $Y_0\setminus C = V$ by \cref{setminus_setminus,inter_absorb_supseteq_left}.
            Therefore $C$ is closed in $Y_0$ with respect to $S_0$ and
                $C$ is compact with respect to $\subspaceTopology{S_0}{C}$
                by \cref{neighborhood,closed_in,closed_subspace_compact}.
            Hence $p_0\notin C$ by \cref{neighborhood,setminus_elim_right}.
            Hence $C\subseteq X$ by \cref{setminus_elim_left,union_iff,singleton_iff,setminus_elim_right,subseteq}.
            Therefore $C$ is a compact subspace of $X$ with respect to $T$
                by \cref{subspace_subspace_topology,compact_subspace}.
            Hence $U\inter X$ is a neighborhood of $x$ in $X$ with respect to $T$
                by \cref{neighborhood,inter_comm,open_in,topology_on,subseteq,pow_iff,subspace_topology,inter_intro}.
            Therefore $U\inter X\subseteq C$
                by \cref{disjoint,inter_lower_left,inter_lower_right,setminus_intro,subseteq}.
            Hence $X$ is locally compact at $x$ with respect to $T$ by \cref{locally_compact_at_point}.
    \end{subproof}
    Therefore $X$ is locally compact with respect to $T$ by \cref{locally_compact}.
    Show that $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.
    \begin{subproof}
        Trivial.
    \end{subproof}
\end{proof}
Theorem 75
one_point_compactification_uniqueness

Assume $T$ is a topology on $X$.
Assume $S$ is a topology on $Y$.
Assume $S_1$ is a topology on $Y_1$.
Suppose $X$ is a subspace of $Y$ with respect to $S$.
Suppose $X$ is a subspace of $Y_1$ with respect to $S_1$.
Suppose $T = \subspaceTopology{S}{X}$.
Suppose $T = \subspaceTopology{S_1}{X}$.
Suppose $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} X = \{p\}$.
Suppose $Y_1\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} X = \{q\}$.
Suppose $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$.
Suppose $Y_1$ is compact with respect to $S_1$ and $Y_1$ is Hausdorff with respect to $S_1$.
Then there exists $h$ such that $h$ is a homeomorphism between $Y$ and $Y_1$ with respect to $S$ and $S_1$ and $\restrl{h}{X} = \identity{X}$.

LaTeX source
\begin{theorem}
\label{one_point_compactification_uniqueness}
    Assume $T$ is a topology on $X$.
    Assume $S$ is a topology on $Y$.
    Assume $S_1$ is a topology on $Y_1$.
    Suppose $X$ is a subspace of $Y$ with respect to $S$.
    Suppose $X$ is a subspace of $Y_1$ with respect to $S_1$.
    Suppose $T = \subspaceTopology{S}{X}$.
    Suppose $T = \subspaceTopology{S_1}{X}$.
    Suppose $Y\setminus X = \{p\}$.
    Suppose $Y_1\setminus X = \{q\}$.
    Suppose $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$.
    Suppose $Y_1$ is compact with respect to $S_1$ and $Y_1$ is Hausdorff with respect to $S_1$.
    Then there exists $h$ such that
        $h$ is a homeomorphism between $Y$ and $Y_1$ with respect to $S$ and $S_1$ and
        $\restrl{h}{X} = \identity{X}$.
\end{theorem}
Proof

We have $X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and $X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y_1$ by Definition 147.
Therefore $Y = X\union\{p\}$ and $Y_1 = X\union\{q\}$ by Proposition 107.
Hence $p\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $q\class{latex-symbol-tip latex-symbol-id-in}{\in} Y_1$ and $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$ and $q\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$ by Proposition 20, Proposition 86, Proposition 87.

Let $f = \identity{X}$.
Let $g = \{(p,q)\}$.
Let $h = f\union g$.

$f$ is a function by Proposition 401.
We have $g$ is a function by Axiom 6, Definition 12, Definition 51, Proposition 22.

$\dom{f} = X$ by Proposition 297.
$g = \cons{(p,q)}{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}}$.
Hence $\dom{g} = \{p\}$ by Proposition 201, Proposition 204.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{f}\inter\dom{g}$ we have $f(x) = g(x)$.
Therefore $h$ is a function by Lemma 170.

Hence $\dom{h} = Y$ by Proposition 205.

For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ we have $h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y_1$ by Axiom 5, Definition 1, Proposition 20, Proposition 22, Proposition 38, Proposition 39, Proposition 294, Proposition 346.
Therefore $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{Y}{Y_1}$ by Proposition 358.

For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y_1$ there exists $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $h(x) = y$ by Axiom 5, Proposition 20, Proposition 22, Proposition 38, Proposition 38, Proposition 39, Proposition 294, Proposition 346.
Hence $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\surj{Y}{Y_1}$ by Definition 57.

Claim: For all $x_1,x_2$ such that $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $h(x_1) = h(x_2)$ we have $x_1 = x_2$.

Fix $x_1$.
Fix $x_2$ such that $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $h(x_1) = h(x_2)$.
We have $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.
Hence $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ or $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\{p\}$ by Axiom 5.
Therefore $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ or $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\{p\}$ by Axiom 5.

Case. $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$.
Case. $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\{p\}$.

Suppose not.
Hence $h(x_1) = x_1$ and $h(x_2) = q$ by Proposition 20, Proposition 22, Proposition 38, Proposition 39, Proposition 294, Proposition 346.
Therefore $x_1 = q$.
Thus $x_1\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.
Contradiction.
Therefore $x_1 = x_2$.

Case. $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\{p\}$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.

Suppose not.
Hence $h(x_1) = q$ and $h(x_2) = x_2$ by Proposition 20, Proposition 22, Proposition 38, Proposition 39, Proposition 294, Proposition 346.
Therefore $x_2 = q$.
Thus $x_2\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$.
Contradiction.
Therefore $x_1 = x_2$.

Case. $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\{p\}$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\{p\}$.

We have $x_1 = x_2$ by Proposition 22.

LaTeX source
\begin{byCase}
        \caseOf{$x_1\in X$ and $x_2\in X$.}
            We have $x_1 = x_2$
                by \cref{id_elem_intro,union_intro_left,function_apply_intro}.
        \caseOf{$x_1\in X$ and $x_2\in\{p\}$.}
            Suppose not.
            Hence $h(x_1) = x_1$ and $h(x_2) = q$
                by \cref{id_elem_intro,union_intro_left,function_apply_intro,singleton_iff,singleton_intro,union_intro_right}.
            Therefore $x_1 = q$.
            Thus $x_1\notin X$.
            Contradiction.
            Therefore $x_1 = x_2$.
        \caseOf{$x_1\in\{p\}$ and $x_2\in X$.}
            Suppose not.
            Hence $h(x_1) = q$ and $h(x_2) = x_2$
                by \cref{singleton_iff,singleton_intro,union_intro_right,function_apply_intro,id_elem_intro,union_intro_left}.
            Therefore $x_2 = q$.
            Thus $x_2\notin X$.
            Contradiction.
            Therefore $x_1 = x_2$.
        \caseOf{$x_1\in\{p\}$ and $x_2\in\{p\}$.}
            We have $x_1 = x_2$ by \cref{singleton_iff}.
        
\end{byCase}

Therefore $h$ is injective by Proposition 386.
Hence $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\bijections{Y}{Y_1}$ by Definition 58.

Claim: For all $U$ such that $U$ is open in $Y_1$ with respect to $S_1$ we have $\preimg{h}{U}$ is open in $Y$ with respect to $S$.

Fix $U$ such that $U$ is open in $Y_1$ with respect to $S_1$.

Case. $q\class{latex-symbol-tip latex-symbol-id-notin}{\notin} U$.

We have $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 5, Axiom 12, Definition 1, Definition 1, Definition 101, Definition 103, Proposition 22.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{h}{U}$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 5, Definition 1, Proposition 20, Proposition 22, Proposition 38, Proposition 39, Proposition 246, Proposition 249, Proposition 294, Proposition 346.
Hence $\preimg{h}{U}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1.
Therefore $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\preimg{h}{U}$ by Definition 1, Proposition 38, Proposition 246, Proposition 294, Proposition 346.
Hence $\preimg{h}{U} = U$ by Proposition 3.
Therefore $U$ is open in $X$ with respect to $T$ by Definition 103, Definition 146, Proposition 70.
Hence $\{p\}$ is closed in $Y$ with respect to $S$ by Lemma 40, Lemma 44, Proposition 16, Proposition 25, Theorem 14.
Therefore $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{p\}$ is open in $Y$ with respect to $S$ by Definition 149.
Hence $X = Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\{p\}$ by Axiom 5, Definition 1, Proposition 3, Proposition 22, Proposition 38, Proposition 85, Proposition 86, Proposition 87.
Hence $U$ is open in $Y$ with respect to $S$ by Definition 147, Lemma 133.
Therefore $\preimg{h}{U}$ is open in $Y$ with respect to $S$.

Case. $q\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.

Let $C = Y_1\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U$.
$C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y_1$ and $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S_1$ by Definition 103, Proposition 97.
Hence $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y_1$ by Axiom 12, Definition 1, Definition 101.
Therefore $Y_1\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C = U$ by Proposition 70, Proposition 91.
Hence $C$ is closed in $Y_1$ with respect to $S_1$ by Definition 103, Definition 149.
Therefore $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 5, Definition 1, Proposition 22, Proposition 86, Proposition 87.
Hence $C$ is compact with respect to $\subspaceTopology{S_1}{C}$ by Theorem 59.
Therefore $C$ is a compact subspace of $X$ with respect to $T$ by Definition 263, Lemma 307.
Hence $C$ is compact with respect to $\subspaceTopology{S}{C}$ by Lemma 307.
Therefore $C$ is closed in $Y$ with respect to $S$ by Definition 263, Proposition 6, Theorem 60.
Therefore $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ is open in $Y$ with respect to $S$ by Definition 149.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{h}{U}$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ by Definition 1, Proposition 38, Proposition 85, Proposition 87, Proposition 246, Proposition 249, Proposition 294, Proposition 346.
Therefore $\preimg{h}{U}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ by Definition 1.
Hence $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\preimg{h}{U}$ by Axiom 5, Definition 1, Proposition 20, Proposition 22, Proposition 38, Proposition 39, Proposition 85, Proposition 86, Proposition 87, Proposition 246, Proposition 294, Proposition 346.
Therefore $\preimg{h}{U} = Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C$ by Proposition 3.
Hence $\preimg{h}{U}$ is open in $Y$ with respect to $S$ by Definition 1.

LaTeX source
\begin{byCase}
        \caseOf{$q\notin U$.}
            We have $U\subseteq X$
                by \cref{open_in,topology_on,subseteq,pow_iff,union_iff,singleton_iff,subseteq}.
            For all $y$ such that $y\in\preimg{h}{U}$ we have $y\in U$
                by \cref{preimg_iff,preimg_subseteq_dom,subseteq,union_iff,singleton_iff,singleton_intro,union_intro_right,function_apply_intro,id_elem_intro,union_intro_left}.
            Hence $\preimg{h}{U}\subseteq U$ by \cref{subseteq}.
            Therefore $U\subseteq\preimg{h}{U}$
                by \cref{subseteq,id_elem_intro,union_intro_left,function_apply_intro,preimg_iff}.
            Hence $\preimg{h}{U} = U$ by \cref{subseteq_antisymmetric}.
            Therefore $U$ is open in $X$ with respect to $T$
                by \cref{open_in,inter_absorb_supseteq_left,subspace_topology}.
            Hence $\{p\}$ is closed in $Y$ with respect to $S$
                by \cref{singleton_subset_intro,pair_is_finite,upair_intro_left,subseteq_finite_is_finite,finite_point_set_closed_hausdorff}.
            Therefore $Y\setminus\{p\}$ is open in $Y$ with respect to $S$ by \cref{closed_in}.
            Hence $X = Y\setminus\{p\}$
                by \cref{union_intro_left,singleton_iff,setminus_intro,setminus_elim_left,union_iff,setminus_elim_right,subseteq,subseteq_antisymmetric}.
            Hence $U$ is open in $Y$ with respect to $S$ by \cref{open_in_subspace_open_in_space,subspace_of}.
            Therefore $\preimg{h}{U}$ is open in $Y$ with respect to $S$.
        \caseOf{$q\in U$.}
            Let $C = Y_1\setminus U$.
            $C\subseteq Y_1$ and $U\in S_1$ by \cref{setminus_subseteq,open_in}.
            Hence $U\subseteq Y_1$ by \cref{topology_on,subseteq,pow_iff}.
            Therefore $Y_1\setminus C = U$ by \cref{setminus_setminus,inter_absorb_supseteq_left}.
            Hence $C$ is closed in $Y_1$ with respect to $S_1$ by \cref{open_in,closed_in}.
            Therefore $C\subseteq X$
                by \cref{setminus_elim_left,union_iff,singleton_iff,setminus_elim_right,subseteq}.
            Hence $C$ is compact with respect to $\subspaceTopology{S_1}{C}$ by \cref{closed_subspace_compact}.
            Therefore $C$ is a compact subspace of $X$ with respect to $T$
                by \cref{subspace_subspace_topology,compact_subspace}.
            Hence $C$ is compact with respect to $\subspaceTopology{S}{C}$ by \cref{subspace_subspace_topology}.
            Therefore $C$ is closed in $Y$ with respect to $S$
                by \cref{subseteq_transitive,compact_subspace,compact_subspace_closed}.
            Therefore $Y\setminus C$ is open in $Y$ with respect to $S$ by \cref{closed_in}.
            For all $y$ such that $y\in\preimg{h}{U}$ we have $y\in Y\setminus C$
                by \cref{preimg_subseteq_dom,subseteq,preimg_iff,id_elem_intro,union_intro_left,function_apply_intro,setminus_elim_right,setminus_intro}.
            Therefore $\preimg{h}{U}\subseteq Y\setminus C$ by \cref{subseteq}.
            Hence $Y\setminus C\subseteq\preimg{h}{U}$
                by \cref{setminus_elim_left,setminus_elim_right,union_iff,union_intro_left,setminus_intro,id_elem_intro,function_apply_intro,preimg_iff,singleton_intro,union_intro_right,singleton_iff,subseteq}.
            Therefore $\preimg{h}{U} = Y\setminus C$ by \cref{subseteq_antisymmetric}.
            Hence $\preimg{h}{U}$ is open in $Y$ with respect to $S$ by \cref{subseteq}.
        
\end{byCase}

Therefore $h$ is continuous from $Y$ to $Y_1$ with respect to $S$ and $S_1$ by Definition 160.

Hence $h$ is a homeomorphism between $Y$ and $Y_1$ with respect to $S$ and $S_1$ by Definition 58, Theorem 62.

Claim: $\restrl{h}{X} = \identity{X}$.

We have $\restrl{h}{X}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \identity{X}$ by Definition 1, Definition 23, Proposition 38, Proposition 294, Proposition 346.
Therefore $\identity{X}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\restrl{h}{X}$ by Definition 1, Definition 23, Proposition 38, Proposition 294, Proposition 295.
Hence $\restrl{h}{X} = \identity{X}$ by Proposition 3.

Claim: There exists $k$ such that $k$ is a homeomorphism between $Y$ and $Y_1$ with respect to $S$ and $S_1$ and $\restrl{k}{X} = \identity{X}$.

Trivial.

LaTeX source
\begin{proof}
    We have $X\subseteq Y$ and $X\subseteq Y_1$ by \cref{subspace_of}.
    Therefore $Y = X\union\{p\}$ and $Y_1 = X\union\{q\}$ by \cref{setminus_partition}.
    Hence $p\in Y$ and $q\in Y_1$ and $p\notin X$ and $q\notin X$
        by \cref{singleton_intro,setminus_elim_left,setminus_elim_right}.

    Let $f = \identity{X}$.
    Let $g = \{(p,q)\}$.
    Let $h = f\union g$.

    $f$ is a function by \cref{id_is_function}.
    We have $g$ is a function by \cref{singleton_iff,relation,pair_eq_iff,rightunique}.

    $\dom{f} = X$ by \cref{id_dom}.
    $g = \cons{(p,q)}{\emptyset}$.
    Hence $\dom{g} = \{p\}$ by \cref{dom_cons,dom_emptyset}.
    For all $x$ such that $x\in\dom{f}\inter\dom{g}$ we have $f(x) = g(x)$.
    Therefore $h$ is a function by \cref{union_compatible_functions}.

    Hence $\dom{h} = Y$ by \cref{dom_union}.

    For all $x$ such that $x\in\dom{h}$ we have $h(x)\in Y_1$
        by \cref{subseteq,union_iff,id_elem_intro,union_intro_left,function_apply_intro,singleton_iff,singleton_intro,union_intro_right}.
    Therefore $h\in\funs{Y}{Y_1}$ by \cref{funs_intro}.

    For all $y$ such that $y\in Y_1$ there exists $x$ such that $x\in Y$ and $h(x) = y$
        by \cref{union_iff,union_intro_left,id_elem_intro,union_intro_left,function_apply_intro,singleton_iff,union_intro_right,singleton_intro}.
    Hence $h\in\surj{Y}{Y_1}$ by \cref{surj}.

    Show that for all $x_1,x_2$ such that $x_1\in\dom{h}$ and $x_2\in\dom{h}$ and $h(x_1) = h(x_2)$
        we have $x_1 = x_2$.
    \begin{subproof}
        Fix $x_1$.
        Fix $x_2$ such that $x_1\in\dom{h}$ and $x_2\in\dom{h}$ and $h(x_1) = h(x_2)$.
        We have $x_1\in Y$ and $x_2\in Y$.
        Hence $x_1\in X$ or $x_1\in\{p\}$ by \cref{union_iff}.
        Therefore $x_2\in X$ or $x_2\in\{p\}$ by \cref{union_iff}.
        \begin{byCase}
        \caseOf{$x_1\in X$ and $x_2\in X$.}
            We have $x_1 = x_2$
                by \cref{id_elem_intro,union_intro_left,function_apply_intro}.
        \caseOf{$x_1\in X$ and $x_2\in\{p\}$.}
            Suppose not.
            Hence $h(x_1) = x_1$ and $h(x_2) = q$
                by \cref{id_elem_intro,union_intro_left,function_apply_intro,singleton_iff,singleton_intro,union_intro_right}.
            Therefore $x_1 = q$.
            Thus $x_1\notin X$.
            Contradiction.
            Therefore $x_1 = x_2$.
        \caseOf{$x_1\in\{p\}$ and $x_2\in X$.}
            Suppose not.
            Hence $h(x_1) = q$ and $h(x_2) = x_2$
                by \cref{singleton_iff,singleton_intro,union_intro_right,function_apply_intro,id_elem_intro,union_intro_left}.
            Therefore $x_2 = q$.
            Thus $x_2\notin X$.
            Contradiction.
            Therefore $x_1 = x_2$.
        \caseOf{$x_1\in\{p\}$ and $x_2\in\{p\}$.}
            We have $x_1 = x_2$ by \cref{singleton_iff}.
        \end{byCase}
    \end{subproof}
    Therefore $h$ is injective by \cref{injective_function}.
    Hence $h\in\bijections{Y}{Y_1}$ by \cref{bijections}.

    Show that for all $U$ such that $U$ is open in $Y_1$ with respect to $S_1$
        we have $\preimg{h}{U}$ is open in $Y$ with respect to $S$.
    \begin{subproof}
        Fix $U$ such that $U$ is open in $Y_1$ with respect to $S_1$.
        \begin{byCase}
        \caseOf{$q\notin U$.}
            We have $U\subseteq X$
                by \cref{open_in,topology_on,subseteq,pow_iff,union_iff,singleton_iff,subseteq}.
            For all $y$ such that $y\in\preimg{h}{U}$ we have $y\in U$
                by \cref{preimg_iff,preimg_subseteq_dom,subseteq,union_iff,singleton_iff,singleton_intro,union_intro_right,function_apply_intro,id_elem_intro,union_intro_left}.
            Hence $\preimg{h}{U}\subseteq U$ by \cref{subseteq}.
            Therefore $U\subseteq\preimg{h}{U}$
                by \cref{subseteq,id_elem_intro,union_intro_left,function_apply_intro,preimg_iff}.
            Hence $\preimg{h}{U} = U$ by \cref{subseteq_antisymmetric}.
            Therefore $U$ is open in $X$ with respect to $T$
                by \cref{open_in,inter_absorb_supseteq_left,subspace_topology}.
            Hence $\{p\}$ is closed in $Y$ with respect to $S$
                by \cref{singleton_subset_intro,pair_is_finite,upair_intro_left,subseteq_finite_is_finite,finite_point_set_closed_hausdorff}.
            Therefore $Y\setminus\{p\}$ is open in $Y$ with respect to $S$ by \cref{closed_in}.
            Hence $X = Y\setminus\{p\}$
                by \cref{union_intro_left,singleton_iff,setminus_intro,setminus_elim_left,union_iff,setminus_elim_right,subseteq,subseteq_antisymmetric}.
            Hence $U$ is open in $Y$ with respect to $S$ by \cref{open_in_subspace_open_in_space,subspace_of}.
            Therefore $\preimg{h}{U}$ is open in $Y$ with respect to $S$.
        \caseOf{$q\in U$.}
            Let $C = Y_1\setminus U$.
            $C\subseteq Y_1$ and $U\in S_1$ by \cref{setminus_subseteq,open_in}.
            Hence $U\subseteq Y_1$ by \cref{topology_on,subseteq,pow_iff}.
            Therefore $Y_1\setminus C = U$ by \cref{setminus_setminus,inter_absorb_supseteq_left}.
            Hence $C$ is closed in $Y_1$ with respect to $S_1$ by \cref{open_in,closed_in}.
            Therefore $C\subseteq X$
                by \cref{setminus_elim_left,union_iff,singleton_iff,setminus_elim_right,subseteq}.
            Hence $C$ is compact with respect to $\subspaceTopology{S_1}{C}$ by \cref{closed_subspace_compact}.
            Therefore $C$ is a compact subspace of $X$ with respect to $T$
                by \cref{subspace_subspace_topology,compact_subspace}.
            Hence $C$ is compact with respect to $\subspaceTopology{S}{C}$ by \cref{subspace_subspace_topology}.
            Therefore $C$ is closed in $Y$ with respect to $S$
                by \cref{subseteq_transitive,compact_subspace,compact_subspace_closed}.
            Therefore $Y\setminus C$ is open in $Y$ with respect to $S$ by \cref{closed_in}.
            For all $y$ such that $y\in\preimg{h}{U}$ we have $y\in Y\setminus C$
                by \cref{preimg_subseteq_dom,subseteq,preimg_iff,id_elem_intro,union_intro_left,function_apply_intro,setminus_elim_right,setminus_intro}.
            Therefore $\preimg{h}{U}\subseteq Y\setminus C$ by \cref{subseteq}.
            Hence $Y\setminus C\subseteq\preimg{h}{U}$
                by \cref{setminus_elim_left,setminus_elim_right,union_iff,union_intro_left,setminus_intro,id_elem_intro,function_apply_intro,preimg_iff,singleton_intro,union_intro_right,singleton_iff,subseteq}.
            Therefore $\preimg{h}{U} = Y\setminus C$ by \cref{subseteq_antisymmetric}.
            Hence $\preimg{h}{U}$ is open in $Y$ with respect to $S$ by \cref{subseteq}.
        \end{byCase}
    \end{subproof}
    Therefore $h$ is continuous from $Y$ to $Y_1$ with respect to $S$ and $S_1$ by \cref{continuous}.

    Hence $h$ is a homeomorphism between $Y$ and $Y_1$ with respect to $S$ and $S_1$
        by \cref{bijections,compact_hausdorff_bijection_homeomorphism}.

    Show that $\restrl{h}{X} = \identity{X}$.
    \begin{subproof}
        We have $\restrl{h}{X}\subseteq \identity{X}$
            by \cref{restrl,id_elem_intro,union_intro_left,function_apply_intro,subseteq}.
        Therefore $\identity{X}\subseteq\restrl{h}{X}$
            by \cref{id_elem_inspect,id_elem_intro,union_intro_left,restrl,subseteq}.
        Hence $\restrl{h}{X} = \identity{X}$ by \cref{subseteq_antisymmetric}.
    \end{subproof}
    Show that there exists $k$ such that
        $k$ is a homeomorphism between $Y$ and $Y_1$ with respect to $S$ and $S_1$ and
        $\restrl{k}{X} = \identity{X}$.
    \begin{subproof}
        Trivial.
    \end{subproof}
\end{proof}
Definition 269
compactification

$Y$ is a compactification of $X$ with respect to $S$ and $T$ iff $S$ is a topology on $Y$ and $T$ is a topology on $X$ and $X$ is a subspace of $Y$ with respect to $S$ and $T = \subspaceTopology{S}{X}$ and $X\class{latex-symbol-tip latex-symbol-id-neq}{\neq} Y$ and $\closure{X}{Y}{S} = Y$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$.

LaTeX source
\begin{definition}
\label{compactification}
    $Y$ is a compactification of $X$ with respect to $S$ and $T$ iff
        $S$ is a topology on $Y$ and
        $T$ is a topology on $X$ and
        $X$ is a subspace of $Y$ with respect to $S$ and
        $T = \subspaceTopology{S}{X}$ and
        $X\neq Y$ and
        $\closure{X}{Y}{S} = Y$ and
        $Y$ is compact with respect to $S$ and
        $Y$ is Hausdorff with respect to $S$.
\end{definition}
Definition 270
one_point_compactification

$Y$ is a one-point compactification of $X$ with respect to $S$ and $T$ iff $Y$ is a compactification of $X$ with respect to $S$ and $T$ and there exists $p$ such that $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} X = \{p\}$.

LaTeX source
\begin{definition}
\label{one_point_compactification}
    $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$ iff
        $Y$ is a compactification of $X$ with respect to $S$ and $T$ and
        there exists $p$ such that $Y\setminus X = \{p\}$.
\end{definition}
Theorem 76
one_point_compactification_characterization

Assume $T$ is a topology on $X$.
Then there exist $Y,S$ such that $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$ iff $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$ and $X$ is not compact with respect to $T$.

LaTeX source
\begin{theorem}
\label{one_point_compactification_characterization}
    Assume $T$ is a topology on $X$.
    Then there exist $Y,S$ such that $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$
        iff $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$
            and $X$ is not compact with respect to $T$.
\end{theorem}
Proof
Claim: If there exist $Y,S$ such that $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$ then $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$ and $X$ is not compact with respect to $T$.

Assume there exist $Y,S$ such that $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$.
Take $Y,S$ such that $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$.
Take $p$ such that $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} X = \{p\}$ and $Y$ is a compactification of $X$ with respect to $S$ and $T$ by Definition 270.
$T = \subspaceTopology{S}{X}$ by Definition 269.
$Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$ by Definition 269.
$X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and $S$ is a topology on $Y$ by Definition 147, Definition 269.

Claim: $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.

Follows by Theorem 74.

Claim: $X$ is not compact with respect to $T$.

Suppose not.
Therefore $X$ is closed in $Y$ with respect to $S$ by Definition 263, Definition 269, Theorem 60.
Hence $\closure{X}{Y}{S} = X$ by Lemma 146, Lemma 147, Proposition 2, Proposition 3.
Therefore $X = Y$ by Definition 269.
Contradiction by Definition 269.

Claim: $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$ and $X$ is not compact with respect to $T$.

Trivial.

Claim: If $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$ and $X$ is not compact with respect to $T$ then there exist $Y,S$ such that $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$.

Assume $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$ and $X$ is not compact with respect to $T$.
Take $Y,S,p$ such that $S$ is a topology on $Y$ and $X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and $T = \subspaceTopology{S}{X}$ and $Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} X = \{p\}$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$ by Theorem 73.
We have $Y = X\union\{p\}$ by Proposition 107.

Claim: $p\class{latex-symbol-tip latex-symbol-id-in}{\in} \closure{X}{Y}{S}$.

Suppose not.

Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{X}{Y}{S}$ 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}\closure{X}{Y}{S}$.
Hence $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 151.
Therefore $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ or $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\{p\}$ by Axiom 5.

Case. $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.

Trivial.

Case. $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\{p\}$.

We have $y = p$ by Proposition 22.
Therefore $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{X}{Y}{S}$.
Contradiction.
Thus $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.

LaTeX source
\begin{byCase}
                \caseOf{$y\in X$.}
                    Trivial.
                \caseOf{$y\in\{p\}$.}
                    We have $y = p$ by \cref{singleton_iff}.
                    Therefore $p\in\closure{X}{Y}{S}$.
                    Contradiction.
                    Thus $y\in X$.
                
\end{byCase}

Therefore $\closure{X}{Y}{S}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1.
Therefore $X$ is closed in $Y$ with respect to $S$ by Lemma 144, Lemma 146, Proposition 3.
Hence $X$ is compact with respect to $T$ by Theorem 59.
Contradiction.

Hence $\closure{X}{Y}{S} = Y$ by Definition 149, Lemma 144, Lemma 146, Proposition 3, Proposition 25, Proposition 44.

Therefore $X\class{latex-symbol-tip latex-symbol-id-neq}{\neq} Y$ by Proposition 20, Proposition 87.
Hence $X$ is a subspace of $Y$ with respect to $S$ by Definition 147.
Therefore $Y$ is a compactification of $X$ with respect to $S$ and $T$ by Definition 269.
Hence $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$ by Definition 270.

Claim: There exist $Y_1,S_1$ such that $Y_1$ is a one-point compactification of $X$ with respect to $S_1$ and $T$.

Trivial.

LaTeX source
\begin{proof}
    Show that if there exist $Y,S$ such that $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$ then
        $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$ and
            $X$ is not compact with respect to $T$.
    \begin{subproof}
        Assume there exist $Y,S$ such that $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$.
        Take $Y,S$ such that $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$.
        Take $p$ such that $Y\setminus X = \{p\}$ and
            $Y$ is a compactification of $X$ with respect to $S$ and $T$
            by \cref{one_point_compactification}.
        $T = \subspaceTopology{S}{X}$ by \cref{compactification}.
        $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$ by \cref{compactification}.
        $X\subseteq Y$ and $S$ is a topology on $Y$ by \cref{subspace_of,compactification}.
        Show that $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.
        \begin{subproof}
            Follows by \cref{one_point_compactification_existence_reverse}.
        \end{subproof}

        Show that $X$ is not compact with respect to $T$.
        \begin{subproof}
            Suppose not.
            Therefore $X$ is closed in $Y$ with respect to $S$
                by \cref{compact_subspace,compactification,compact_subspace_closed}.
            Hence $\closure{X}{Y}{S} = X$
                by \cref{subseteq_refl,closure_subseteq_closed,subseteq_closure,subseteq_antisymmetric}.
            Therefore $X = Y$ by \cref{compactification}.
            Contradiction by \cref{compactification}.
        \end{subproof}
        Show that $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$
            and $X$ is not compact with respect to $T$.
        \begin{subproof}
            Trivial.
        \end{subproof}
    \end{subproof}

    Show that if $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$
        and $X$ is not compact with respect to $T$
        then there exist $Y,S$ such that $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$.
    \begin{subproof}
        Assume $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$
            and $X$ is not compact with respect to $T$.
        Take $Y,S,p$ such that
            $S$ is a topology on $Y$ and
            $X\subseteq Y$ and
            $T = \subspaceTopology{S}{X}$ and
            $Y\setminus X = \{p\}$ and
            $Y$ is compact with respect to $S$ and
            $Y$ is Hausdorff with respect to $S$
            by \cref{one_point_compactification_existence_forward}.
        We have $Y = X\union\{p\}$ by \cref{setminus_partition}.

        Show that $p\in \closure{X}{Y}{S}$.
        \begin{subproof}
            Suppose not.
            Show that for all $y$ such that $y\in\closure{X}{Y}{S}$ we have $y\in X$.
            \begin{subproof}
                Fix $y$ such that $y\in\closure{X}{Y}{S}$.
                Hence $y\in Y$ by \cref{closure}.
                Therefore $y\in X$ or $y\in\{p\}$ by \cref{union_iff}.
                \begin{byCase}
                \caseOf{$y\in X$.}
                    Trivial.
                \caseOf{$y\in\{p\}$.}
                    We have $y = p$ by \cref{singleton_iff}.
                    Therefore $p\in\closure{X}{Y}{S}$.
                    Contradiction.
                    Thus $y\in X$.
                \end{byCase}
            \end{subproof}
            Therefore $\closure{X}{Y}{S}\subseteq X$ by \cref{subseteq}.
            Therefore $X$ is closed in $Y$ with respect to $S$
                by \cref{subseteq_closure,subseteq_antisymmetric,closure_closed_in}.
            Hence $X$ is compact with respect to $T$ by \cref{closed_subspace_compact}.
            Contradiction.
        \end{subproof}
        Hence $\closure{X}{Y}{S} = Y$
            by \cref{closure_closed_in,subseteq_closure,singleton_subset_intro,union_subsets_is_subset,closed_in,subseteq_antisymmetric}.

        Therefore $X\neq Y$ by \cref{singleton_intro,setminus_elim_right}.
        Hence $X$ is a subspace of $Y$ with respect to $S$ by \cref{subspace_of}.
        Therefore $Y$ is a compactification of $X$ with respect to $S$ and $T$ by \cref{compactification}.
        Hence $Y$ is a one-point compactification of $X$ with respect to $S$ and $T$
            by \cref{one_point_compactification}.
        Show that there exist $Y_1,S_1$ such that $Y_1$ is a one-point compactification of $X$ with respect to $S_1$ and $T$.
        \begin{subproof}
            Trivial.
        \end{subproof}
    \end{subproof}
\end{proof}
Theorem 77
locally_compact_neighborhood_characterization

Assume $T$ is a topology on $X$.
Assume $X$ is Hausdorff with respect to $T$.
Then $X$ is locally compact with respect to $T$ iff for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have there exists $V$ such that $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and $\closure{V}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.

LaTeX source
\begin{theorem}
\label{locally_compact_neighborhood_characterization}
    Assume $T$ is a topology on $X$.
    Assume $X$ is Hausdorff with respect to $T$.
    Then $X$ is locally compact with respect to $T$ iff
        for all $x\in X$ we have
            for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have
                there exists $V$ such that
                    $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                    $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and
                    $\closure{V}{X}{T}\subseteq U$.
\end{theorem}
Proof
Claim: If for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have there exists $V$ such that $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and $\closure{V}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ then $X$ is locally compact with respect to $T$.

Assume for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have there exists $V$ such that $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and $\closure{V}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $X$ is a neighborhood of $x$ in $X$ with respect to $T$ by Definition 101, Definition 103, Definition 153.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $V$ such that $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and $\closure{V}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $X$ is locally compact at $x$ with respect to $T$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 153, Definition 264, Lemma 146.
$X$ is locally compact with respect to $T$ by Definition 265.

Claim: If $X$ is locally compact with respect to $T$ then for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have there exists $V$ such that $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and $\closure{V}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.

Assume $X$ is locally compact with respect to $T$.
Let $p = X$.
$p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$ by Lemma 410.
Let $Y = X\union\{p\}$.
Let $S = \onePointTopology{T}{X}{p}$.
$S$ is a topology on $Y$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$ by Lemma 420, Lemma 422, Lemma 423.
$T = \subspaceTopology{S}{X}$ by Lemma 421.
$X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ by Proposition 46.
$X$ is a subspace of $Y$ with respect to $S$ by Definition 147.

Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have there exists $V$ such that $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and $\closure{V}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Fix $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$.
$U$ is open in $X$ with respect to $T$ by Definition 153.
$U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 12, Definition 1, Definition 101, Definition 103.

$X$ is open in $Y$ with respect to $S$ by Definition 101, Definition 103, Lemma 416, Proposition 2.
$U$ is open in $Y$ with respect to $S$ by Definition 147, Lemma 133.

Let $C = Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U$.
$C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ by Proposition 97.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ by Axiom 12, Definition 1, Definition 101, Definition 103.
$Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} C = U$ by Proposition 70, Proposition 91.
$C$ is closed in $Y$ with respect to $S$ and $C$ is compact with respect to $\subspaceTopology{S}{C}$ by Definition 103, Definition 149, Proposition 97, Theorem 59.

$x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 153.
$x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} C$ by Proposition 87.
Take $V,W$ such that $V$ is open in $Y$ with respect to $S$ and $W$ is open in $Y$ with respect to $S$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ and $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$ and $V$ is disjoint from $W$ by Lemma 357.

$p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} U$ by Definition 1.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ by Definition 1, Proposition 20, Proposition 39, Proposition 85.
$p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} V$ by Definition 3.

$V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 5, Axiom 12, Definition 1, Definition 101, Definition 103, Proposition 22.

$V$ is a neighborhood of $x$ in $X$ with respect to $T$ by Definition 103, Definition 146, Definition 153, Proposition 70.
$V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ by Proposition 6.

Let $B = \closure{V}{Y}{S}$.
$B$ is closed in $Y$ with respect to $S$ and $B$ is compact with respect to $\subspaceTopology{S}{B}$ by Definition 149, Lemma 144, Theorem 59.

$Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} W$ is closed in $Y$ with respect to $S$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 149, Proposition 70, Proposition 91, Proposition 97.
$V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} W$ by Definition 1, Definition 1, Definition 3, Proposition 85.
$B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} W$ by Lemma 147.

For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} W$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
$Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} W\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1.
$B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ and $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Proposition 6.

$B$ is a compact subspace of $X$ with respect to $T$ by Definition 263, Lemma 307.

$\closure{V}{X}{T} = B$ by Definition 147, Proposition 65 [Commutativity of intersection], Proposition 70, Theorem 10.
$\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$.
$\closure{V}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1.

LaTeX source
\begin{proof}
    Show that if for all $x\in X$ we have
        for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have
            there exists $V$ such that
                $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and
                $\closure{V}{X}{T}\subseteq U$
        then $X$ is locally compact with respect to $T$.
    \begin{subproof}
        Assume for all $x\in X$ we have
            for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have
                there exists $V$ such that
                    $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                    $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and
                    $\closure{V}{X}{T}\subseteq U$.
        For all $x$ such that $x\in X$ we have $X$ is a neighborhood of $x$ in $X$ with respect to $T$
            by \cref{topology_on,open_in,neighborhood}.
        For all $x$ such that $x\in X$ there exists $V$ such that
            $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and
            $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and
            $\closure{V}{X}{T}\subseteq X$.
        For all $x\in X$ we have $X$ is locally compact at $x$ with respect to $T$
            by \cref{neighborhood,open_in,topology_on,subseteq,pow_iff,subseteq_closure,locally_compact_at_point}.
        $X$ is locally compact with respect to $T$ by \cref{locally_compact}.
    \end{subproof}

    Show that if $X$ is locally compact with respect to $T$ then
        for all $x\in X$ we have
            for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have
                there exists $V$ such that
                    $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                    $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and
                    $\closure{V}{X}{T}\subseteq U$.
    \begin{subproof}
        Assume $X$ is locally compact with respect to $T$.
        Let $p = X$.
        $p\notin X$ by \cref{set_notin_self}.
        Let $Y = X\union\{p\}$.
        Let $S = \onePointTopology{T}{X}{p}$.
        $S$ is a topology on $Y$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$
            by \cref{one_point_topology_is_topology,one_point_topology_compact,one_point_topology_hausdorff}.
        $T = \subspaceTopology{S}{X}$ by \cref{one_point_topology_subspace}.
        $X\subseteq Y$ by \cref{union_upper_left}.
        $X$ is a subspace of $Y$ with respect to $S$ by \cref{subspace_of}.

        Show that for all $x\in X$ we have
            for all $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ we have
                there exists $V$ such that
                    $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                    $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and
                    $\closure{V}{X}{T}\subseteq U$.
        \begin{subproof}
            Fix $x$ such that $x\in X$.
            Fix $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$.
            $U$ is open in $X$ with respect to $T$ by \cref{neighborhood}.
            $U\subseteq X$ by \cref{open_in,topology_on,subseteq,pow_iff}.

            $X$ is open in $Y$ with respect to $S$
                by \cref{topology_on,subseteq_refl,one_point_topology_intro_left,open_in}.
            $U$ is open in $Y$ with respect to $S$ by
                \cref{open_in_subspace_open_in_space,subspace_of}.

            Let $C = Y\setminus U$.
            $C\subseteq Y$ by \cref{setminus_subseteq}.
            $U\in S$ and $U\subseteq Y$ by \cref{open_in,topology_on,subseteq,pow_iff}.
            $Y\setminus C = U$ by \cref{setminus_setminus,inter_absorb_supseteq_left}.
            $C$ is closed in $Y$ with respect to $S$ and
                $C$ is compact with respect to $\subspaceTopology{S}{C}$
                by \cref{setminus_subseteq,open_in,closed_in,closed_subspace_compact}.

            $x\in U$ by \cref{neighborhood}.
            $x\notin C$ by \cref{setminus_elim_right}.
            Take $V,W$ such that
                $V$ is open in $Y$ with respect to $S$ and
                $W$ is open in $Y$ with respect to $S$ and
                $x\in V$ and
                $C\subseteq W$ and
                $V$ is disjoint from $W$
                by \cref{compact_hausdorff_separation}.

            $p\notin U$ by \cref{subseteq}.
            $p\in W$ by \cref{singleton_intro,union_intro_right,setminus_intro,subseteq}.
            $p\notin V$ by \cref{disjoint}.

            $V\subseteq X$ by \cref{open_in,topology_on,subseteq,pow_iff,union_iff,singleton_iff}.

            $V$ is a neighborhood of $x$ in $X$ with respect to $T$
                by \cref{inter_absorb_supseteq_left,subspace_topology,open_in,neighborhood}.
            $V\subseteq Y$ by \cref{subseteq_transitive}.

            Let $B = \closure{V}{Y}{S}$.
            $B$ is closed in $Y$ with respect to $S$ and
                $B$ is compact with respect to $\subspaceTopology{S}{B}$
                by \cref{closure_closed_in,closed_in,closed_subspace_compact}.

            $Y\setminus W$ is closed in $Y$ with respect to $S$ by \cref{setminus_subseteq,open_in,topology_on,subseteq,pow_iff,setminus_setminus,inter_absorb_supseteq_left,closed_in}.
            $V\subseteq Y\setminus W$ by \cref{disjoint,subseteq,setminus_intro,subseteq}.
            $B\subseteq Y\setminus W$ by \cref{closure_subseteq_closed}.

            For all $y$ such that $y\in Y\setminus W$ we have $y\in U$.
            $Y\setminus W\subseteq U$ by \cref{subseteq}.
            $B\subseteq U$ and $B\subseteq X$ by \cref{subseteq_transitive}.

            $B$ is a compact subspace of $X$ with respect to $T$
                by \cref{subspace_subspace_topology,compact_subspace}.

            $\closure{V}{X}{T} = B$ by
                \cref{closure_in_subspace,subspace_of,inter_comm,inter_absorb_supseteq_left}.
            $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$.
            $\closure{V}{X}{T}\subseteq U$ by \cref{subseteq}.
        \end{subproof}
    \end{subproof}
\end{proof}
Corollary 13
locally_compact_subspace

Assume $T$ is a topology on $X$.
Assume $X$ is locally compact with respect to $T$.
Assume $X$ is Hausdorff with respect to $T$.
Suppose $A$ is a subspace of $X$ with respect to $T$.
If $A$ is closed in $X$ with respect to $T$ or $A$ is open in $X$ with respect to $T$ then $A$ is locally compact with respect to $\subspaceTopology{T}{A}$.

LaTeX source
\begin{corollary}
\label{locally_compact_subspace}
    Assume $T$ is a topology on $X$.
    Assume $X$ is locally compact with respect to $T$.
    Assume $X$ is Hausdorff with respect to $T$.
    Suppose $A$ is a subspace of $X$ with respect to $T$.
    If $A$ is closed in $X$ with respect to $T$ or $A$ is open in $X$ with respect to $T$ then
        $A$ is locally compact with respect to $\subspaceTopology{T}{A}$.
\end{corollary}
Proof

Let $T_A = \subspaceTopology{T}{A}$.
Assume $A$ is closed in $X$ with respect to $T$ or $A$ is open in $X$ with respect to $T$.

Case. $A$ is closed in $X$ with respect to $T$.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $A$ is locally compact at $x$ with respect to $T_A$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 147.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
$X$ is locally compact at $x$ with respect to $T$ by Definition 265.
Take $C$ such that $C$ is a compact subspace of $X$ with respect to $T$ and there exists $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 264.
Take $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Let $D = C\inter A$.
$D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Proposition 74.
Let $T_C = \subspaceTopology{T}{C}$.
$C$ is compact with respect to $T_C$ by Definition 263.
$C$ is a subspace of $X$ with respect to $T$ by Definition 147, Definition 263.
$D$ is closed in $C$ with respect to $T_C$ by Proposition 65 [Commutativity of intersection], Theorem 8.
$D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Proposition 73.
$T_C$ is a topology on $C$ by Definition 147, Lemma 131.
$C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
$D$ is compact with respect to $\subspaceTopology{T_C}{D}$ by Theorem 59.
$D$ is a compact subspace of $A$ with respect to $T_A$ by Definition 263, Lemma 307.

$U\inter A$ is a neighborhood of $x$ in $A$ with respect to $T_A$ by Definition 103, Definition 146, Definition 147, Definition 153, Lemma 131, Proposition 61, Proposition 65 [Commutativity of intersection].
$U\inter A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C\inter A$ by Proposition 6, Proposition 72, Proposition 73, Proposition 74.
$A$ is locally compact at $x$ with respect to $T_A$ by Definition 264.

Hence $A$ is locally compact with respect to $T_A$ by Definition 265.

Case. $A$ is open in $X$ with respect to $T$.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $A$ is locally compact at $x$ with respect to $T_A$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 147.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
$A$ is a neighborhood of $x$ in $X$ with respect to $T$ by Definition 153.
Take $V$ such that $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and $\closure{V}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Theorem 77.

$V$ is open in $X$ with respect to $T$ by Definition 153.
$V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 12, Definition 1, Definition 101, Definition 103.
$V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \closure{V}{X}{T}$ by Lemma 146.
$V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Proposition 6.
$V$ is open in $A$ with respect to $T_A$ and $V$ is a neighborhood of $x$ in $A$ with respect to $T_A$ by Definition 103, Definition 146, Definition 147, Definition 153, Lemma 131, Proposition 70.

Let $D = \closure{V}{X}{T}$.
$D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $D$ is a compact subspace of $A$ with respect to $T_A$ by Definition 1, Definition 263, Lemma 307.
$A$ is locally compact at $x$ with respect to $T_A$ by Definition 264.

$A$ is locally compact with respect to $T_A$ by Definition 265.

LaTeX source
\begin{byCase}
    \caseOf{$A$ is closed in $X$ with respect to $T$.}
        Show that for all $x\in A$ we have $A$ is locally compact at $x$ with respect to $T_A$.
        \begin{subproof}
            Fix $x$ such that $x\in A$.
            $A\subseteq X$ by \cref{subspace_of}.
            $x\in X$ by \cref{subseteq}.
            $X$ is locally compact at $x$ with respect to $T$ by \cref{locally_compact}.
            Take $C$ such that
                $C$ is a compact subspace of $X$ with respect to $T$ and
                there exists $U$ such that
                    $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                    $U\subseteq C$
                by \cref{locally_compact_at_point}.
            Take $U$ such that
                $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                $U\subseteq C$.
            Let $D = C\inter A$.
            $D\subseteq A$ by \cref{inter_lower_right}.
            Let $T_C = \subspaceTopology{T}{C}$.
            $C$ is compact with respect to $T_C$ by \cref{compact_subspace}.
            $C$ is a subspace of $X$ with respect to $T$ by \cref{subspace_of,compact_subspace}.
            $D$ is closed in $C$ with respect to $T_C$ by \cref{inter_comm,closed_in_subspace_iff}.
            $D\subseteq C$ by \cref{inter_lower_left}.
            $T_C$ is a topology on $C$ by \cref{subspace_topology_is_topology,subspace_of}.
            $C\subseteq X$ by \cref{compact_subspace}.
            $D$ is compact with respect to $\subspaceTopology{T_C}{D}$ by \cref{closed_subspace_compact}.
            $D$ is a compact subspace of $A$ with respect to $T_A$
                by \cref{subspace_subspace_topology,compact_subspace}.

            $U\inter A$ is a neighborhood of $x$ in $A$ with respect to $T_A$
                by \cref{inter_comm,neighborhood,open_in,subspace_topology,subspace_topology_is_topology,subspace_of,inter_intro}.
            $U\inter A\subseteq C\inter A$
                by \cref{inter_lower_left,subseteq_transitive,inter_lower_right,subseteq_inter_iff}.
            $A$ is locally compact at $x$ with respect to $T_A$ by \cref{locally_compact_at_point}.
        \end{subproof}
        Hence $A$ is locally compact with respect to $T_A$ by \cref{locally_compact}.
    \caseOf{$A$ is open in $X$ with respect to $T$.}
        Show that for all $x\in A$ we have $A$ is locally compact at $x$ with respect to $T_A$.
        \begin{subproof}
            Fix $x$ such that $x\in A$.
            $A\subseteq X$ by \cref{subspace_of}.
            $x\in X$ by \cref{subseteq}.
            $A$ is a neighborhood of $x$ in $X$ with respect to $T$ by \cref{neighborhood}.
            Take $V$ such that
                $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and
                $\closure{V}{X}{T}\subseteq A$
                by \cref{locally_compact_neighborhood_characterization}.

            $V$ is open in $X$ with respect to $T$ by \cref{neighborhood}.
            $V\subseteq X$ by \cref{open_in,topology_on,subseteq,pow_iff}.
            $V\subseteq \closure{V}{X}{T}$ by \cref{subseteq_closure}.
            $V\subseteq A$ by \cref{subseteq_transitive}.
            $V$ is open in $A$ with respect to $T_A$ and
                $V$ is a neighborhood of $x$ in $A$ with respect to $T_A$
                by \cref{inter_absorb_supseteq_left,neighborhood,open_in,subspace_topology,subspace_topology_is_topology,subspace_of}.

            Let $D = \closure{V}{X}{T}$.
            $D\subseteq A$ and $D$ is a compact subspace of $A$ with respect to $T_A$
                by \cref{subseteq,subspace_subspace_topology,compact_subspace}.
            $A$ is locally compact at $x$ with respect to $T_A$ by \cref{locally_compact_at_point}.
        \end{subproof}
        $A$ is locally compact with respect to $T_A$ by \cref{locally_compact}.
    
\end{byCase}
LaTeX source
\begin{proof}
    Let $T_A = \subspaceTopology{T}{A}$.
    Assume $A$ is closed in $X$ with respect to $T$ or $A$ is open in $X$ with respect to $T$.
    \begin{byCase}
    \caseOf{$A$ is closed in $X$ with respect to $T$.}
        Show that for all $x\in A$ we have $A$ is locally compact at $x$ with respect to $T_A$.
        \begin{subproof}
            Fix $x$ such that $x\in A$.
            $A\subseteq X$ by \cref{subspace_of}.
            $x\in X$ by \cref{subseteq}.
            $X$ is locally compact at $x$ with respect to $T$ by \cref{locally_compact}.
            Take $C$ such that
                $C$ is a compact subspace of $X$ with respect to $T$ and
                there exists $U$ such that
                    $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                    $U\subseteq C$
                by \cref{locally_compact_at_point}.
            Take $U$ such that
                $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                $U\subseteq C$.
            Let $D = C\inter A$.
            $D\subseteq A$ by \cref{inter_lower_right}.
            Let $T_C = \subspaceTopology{T}{C}$.
            $C$ is compact with respect to $T_C$ by \cref{compact_subspace}.
            $C$ is a subspace of $X$ with respect to $T$ by \cref{subspace_of,compact_subspace}.
            $D$ is closed in $C$ with respect to $T_C$ by \cref{inter_comm,closed_in_subspace_iff}.
            $D\subseteq C$ by \cref{inter_lower_left}.
            $T_C$ is a topology on $C$ by \cref{subspace_topology_is_topology,subspace_of}.
            $C\subseteq X$ by \cref{compact_subspace}.
            $D$ is compact with respect to $\subspaceTopology{T_C}{D}$ by \cref{closed_subspace_compact}.
            $D$ is a compact subspace of $A$ with respect to $T_A$
                by \cref{subspace_subspace_topology,compact_subspace}.

            $U\inter A$ is a neighborhood of $x$ in $A$ with respect to $T_A$
                by \cref{inter_comm,neighborhood,open_in,subspace_topology,subspace_topology_is_topology,subspace_of,inter_intro}.
            $U\inter A\subseteq C\inter A$
                by \cref{inter_lower_left,subseteq_transitive,inter_lower_right,subseteq_inter_iff}.
            $A$ is locally compact at $x$ with respect to $T_A$ by \cref{locally_compact_at_point}.
        \end{subproof}
        Hence $A$ is locally compact with respect to $T_A$ by \cref{locally_compact}.
    \caseOf{$A$ is open in $X$ with respect to $T$.}
        Show that for all $x\in A$ we have $A$ is locally compact at $x$ with respect to $T_A$.
        \begin{subproof}
            Fix $x$ such that $x\in A$.
            $A\subseteq X$ by \cref{subspace_of}.
            $x\in X$ by \cref{subseteq}.
            $A$ is a neighborhood of $x$ in $X$ with respect to $T$ by \cref{neighborhood}.
            Take $V$ such that
                $V$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                $\closure{V}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and
                $\closure{V}{X}{T}\subseteq A$
                by \cref{locally_compact_neighborhood_characterization}.

            $V$ is open in $X$ with respect to $T$ by \cref{neighborhood}.
            $V\subseteq X$ by \cref{open_in,topology_on,subseteq,pow_iff}.
            $V\subseteq \closure{V}{X}{T}$ by \cref{subseteq_closure}.
            $V\subseteq A$ by \cref{subseteq_transitive}.
            $V$ is open in $A$ with respect to $T_A$ and
                $V$ is a neighborhood of $x$ in $A$ with respect to $T_A$
                by \cref{inter_absorb_supseteq_left,neighborhood,open_in,subspace_topology,subspace_topology_is_topology,subspace_of}.

            Let $D = \closure{V}{X}{T}$.
            $D\subseteq A$ and $D$ is a compact subspace of $A$ with respect to $T_A$
                by \cref{subseteq,subspace_subspace_topology,compact_subspace}.
            $A$ is locally compact at $x$ with respect to $T_A$ by \cref{locally_compact_at_point}.
        \end{subproof}
        $A$ is locally compact with respect to $T_A$ by \cref{locally_compact}.
    \end{byCase}
\end{proof}
Lemma 424
homeomorphism_preserves_local_compactness

Assume $T$ is a topology on $X$.
Assume $S$ is a topology on $Y$.
Suppose $f$ is a homeomorphism between $X$ and $Y$ with respect to $T$ and $S$.
If $Y$ is locally compact with respect to $S$ then $X$ is locally compact with respect to $T$.

LaTeX source
\begin{lemma}
\label{homeomorphism_preserves_local_compactness}
    Assume $T$ is a topology on $X$.
    Assume $S$ is a topology on $Y$.
    Suppose $f$ is a homeomorphism between $X$ and $Y$ with respect to $T$ and $S$.
    If $Y$ is locally compact with respect to $S$ then $X$ is locally compact with respect to $T$.
\end{lemma}
Proof

Assume $Y$ is locally compact with respect to $S$.
Let $g = \converse{f}$.
$f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ and $f$ is a function and $\dom{f} = X$ by Definition 55, Definition 58, Definition 162, Proposition 356, Proposition 389.
We have $g$ is a bijection from $Y$ to $X$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\bijections{Y}{X}$ and $\dom{g} = Y$ and $g$ is a function by Definition 58, Definition 162, Proposition 390, Proposition 391, Proposition 398.
$g$ is continuous from $Y$ to $X$ with respect to $S$ and $T$ by Definition 162.

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

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $y = f(x)$.
$Y$ is locally compact at $y$ with respect to $S$ by Definition 265, Proposition 361.
Take $C$ such that $C$ is a compact subspace of $Y$ with respect to $S$ and there exists $U$ such that $U$ is a neighborhood of $y$ in $Y$ with respect to $S$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 264.
Take $U$ such that $U$ is a neighborhood of $y$ in $Y$ with respect to $S$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.

Let $g_C = \restrl{g}{C}$.
$C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \dom{g}$ and $C$ is a subspace of $Y$ with respect to $S$ by Definition 147, Definition 263, Proposition 391.
Let $T_C = \subspaceTopology{S}{C}$.
$g_C$ is continuous from $C$ to $X$ with respect to $T_C$ and $T$ by Lemma 166.
$C$ is compact with respect to $T_C$ by Definition 263.
Let $A = \img{g_C}{C}$.
$A$ is compact with respect to $\subspaceTopology{T}{A}$ by Theorem 61.
$g_C\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{X}$ by Definition 160.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Definition 160, Proposition 6, Proposition 237, Proposition 284, Proposition 357.
$A$ is a compact subspace of $X$ with respect to $T$ by Definition 263.

Let $V = \img{g}{U}$.
$V = \preimg{f}{U}$ by Proposition 247.
$U$ is open in $Y$ with respect to $S$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 153.
$f$ is continuous from $X$ to $Y$ with respect to $T$ and $S$ by Definition 162.
$V$ is a neighborhood of $x$ in $X$ with respect to $T$ by Definition 153, Definition 160, Proposition 246, Proposition 348.

$V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1, Definition 55, Lemma 166, Proposition 236, Proposition 238, Proposition 272.
$X$ is locally compact at $x$ with respect to $T$ by Definition 264.

Hence $X$ is locally compact with respect to $T$ by Definition 265.

LaTeX source
\begin{proof}
    Assume $Y$ is locally compact with respect to $S$.
    Let $g = \converse{f}$.
    $f\in\funs{X}{Y}$ and $f$ is a function and $\dom{f} = X$
        by \cref{homeomorphism,bijections,bijections_to_funs,funs_is_function,funs}.
    We have $g$ is a bijection from $Y$ to $X$ and $g\in\bijections{Y}{X}$ and $\dom{g} = Y$ and $g$ is a function
        by \cref{homeomorphism,bijection_converse_is_bijection,bijections,bijections_dom,bijection_is_function}.
    $g$ is continuous from $Y$ to $X$ with respect to $S$ and $T$ by \cref{homeomorphism}.

    Show that for all $x\in X$ we have $X$ is locally compact at $x$ with respect to $T$.
        \begin{subproof}
        Fix $x$ such that $x\in X$.
        Let $y = f(x)$.
        $Y$ is locally compact at $y$ with respect to $S$ by \cref{funs_type_apply,locally_compact}.
        Take $C$ such that
            $C$ is a compact subspace of $Y$ with respect to $S$ and
            there exists $U$ such that
                $U$ is a neighborhood of $y$ in $Y$ with respect to $S$ and
                $U\subseteq C$
            by \cref{locally_compact_at_point}.
        Take $U$ such that
            $U$ is a neighborhood of $y$ in $Y$ with respect to $S$ and
            $U\subseteq C$.

        Let $g_C = \restrl{g}{C}$.
        $C\subseteq \dom{g}$ and $C$ is a subspace of $Y$ with respect to $S$
            by \cref{compact_subspace,bijections_dom,subspace_of}.
        Let $T_C = \subspaceTopology{S}{C}$.
        $g_C$ is continuous from $C$ to $X$ with respect to $T_C$ and $T$ by \cref{continuous_restrict_domain}.
        $C$ is compact with respect to $T_C$ by \cref{compact_subspace}.
        Let $A = \img{g_C}{C}$.
        $A$ is compact with respect to $\subspaceTopology{T}{A}$ by \cref{continuous_image_compact}.
        $g_C\in\funs{C}{X}$ by \cref{continuous}.
        $A\subseteq X$
            by \cref{continuous,funs_subseteq_rels,subseteq,rels_ran_subseteq,img_subseteq_ran,subseteq_transitive}.
        $A$ is a compact subspace of $X$ with respect to $T$ by \cref{compact_subspace}.

        Let $V = \img{g}{U}$.
        $V = \preimg{f}{U}$ by \cref{preim_eq_img_of_converse}.
        $U$ is open in $Y$ with respect to $S$ and $y\in U$ by \cref{neighborhood}.
        $f$ is continuous from $X$ to $Y$ with respect to $T$ and $S$ by \cref{homeomorphism}.
        $V$ is a neighborhood of $x$ in $X$ with respect to $T$
            by \cref{continuous,function_apply_elim,preimg_iff,neighborhood}.

        $V\subseteq A$
            by \cref{subseteq,img_subseteq,continuous_restrict_domain,funs,img_dom,restrl_ran}.
        $X$ is locally compact at $x$ with respect to $T$ by \cref{locally_compact_at_point}.
    \end{subproof}
    Hence $X$ is locally compact with respect to $T$ by \cref{locally_compact}.
\end{proof}
Corollary 14
locally_compact_open_subspace_compact_hausdorff_forward

Assume $T$ is a topology on $X$.
If $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$ then there exist $Y,S,A,f$ such that $S$ is a topology on $Y$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$ and $A$ is open in $Y$ with respect to $S$ and $f$ is a homeomorphism between $X$ and $A$ with respect to $T$ and $\subspaceTopology{S}{A}$.

LaTeX source
\begin{corollary}
\label{locally_compact_open_subspace_compact_hausdorff_forward}
    Assume $T$ is a topology on $X$.
    If $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$ then
        there exist $Y,S,A,f$ such that
            $S$ is a topology on $Y$ and
            $Y$ is compact with respect to $S$ and
            $Y$ is Hausdorff with respect to $S$ and
            $A$ is open in $Y$ with respect to $S$ and
            $f$ is a homeomorphism between $X$ and $A$ with respect to $T$ and $\subspaceTopology{S}{A}$.
\end{corollary}
Proof

Assume $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.
Let $p = X$.
$p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X$ by Lemma 410.
Let $Y = X\union\{p\}$.
Let $S = \onePointTopology{T}{X}{p}$.
$S$ is a topology on $Y$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$ by Lemma 420, Lemma 422, Lemma 423.
Let $A = X$.
We have $A$ is open in $Y$ with respect to $S$ and $T = \subspaceTopology{S}{A}$ by Definition 1, Definition 101, Definition 103, Lemma 416, Lemma 421.
Let $f = \identity{A}$.
$f$ is a bijection from $X$ to $A$ by Proposition 408.
$f$ is continuous from $X$ to $A$ with respect to $T$ and $\subspaceTopology{S}{A}$ by Lemma 308.
$\converse{f}$ is a function from $A$ to $X$ by Proposition 396.
$A$ is a subspace of $Y$ with respect to $S$ and $\subspaceTopology{S}{A}$ is a topology on $A$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 147, Lemma 131.
For all $U$ such that $U$ is open in $X$ with respect to $T$ we have $\preimg{\converse{f}}{U}$ is open in $A$ with respect to $\subspaceTopology{S}{A}$ by Axiom 12, Definition 1, Definition 101, Definition 103, Proposition 70, Proposition 189, Proposition 247, Proposition 296, Proposition 299.
$\converse{f}$ is continuous from $A$ to $X$ with respect to $\subspaceTopology{S}{A}$ and $T$ by Definition 160.
$f$ is a homeomorphism between $X$ and $A$ with respect to $T$ and $\subspaceTopology{S}{A}$ by Definition 162.

Claim: There exist $Y_1,S_1,A_1,f_1$ such that $S_1$ is a topology on $Y_1$ and $Y_1$ is compact with respect to $S_1$ and $Y_1$ is Hausdorff with respect to $S_1$ and $A_1$ is open in $Y_1$ with respect to $S_1$ and $f_1$ is a homeomorphism between $X$ and $A_1$ with respect to $T$ and $\subspaceTopology{S_1}{A_1}$.

Trivial.

LaTeX source
\begin{proof}
    Assume $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.
    Let $p = X$.
    $p\notin X$ by \cref{set_notin_self}.
    Let $Y = X\union\{p\}$.
    Let $S = \onePointTopology{T}{X}{p}$.
    $S$ is a topology on $Y$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$
        by \cref{one_point_topology_is_topology,one_point_topology_compact,one_point_topology_hausdorff}.
    Let $A = X$.
    We have $A$ is open in $Y$ with respect to $S$ and $T = \subspaceTopology{S}{A}$
        by \cref{topology_on,subseteq,one_point_topology_intro_left,open_in,one_point_topology_subspace}.
    Let $f = \identity{A}$.
    $f$ is a bijection from $X$ to $A$ by \cref{id_elem_bijections}.
    $f$ is continuous from $X$ to $A$ with respect to $T$ and $\subspaceTopology{S}{A}$ by
        \cref{identity_continuous}.
    $\converse{f}$ is a function from $A$ to $X$ by \cref{bijective_converse_are_funs}.
    $A$ is a subspace of $Y$ with respect to $S$ and $\subspaceTopology{S}{A}$ is a topology on $A$
        by \cref{open_in,topology_on,subseteq,pow_iff,subspace_of,subspace_topology_is_topology}.
    For all $U$ such that $U$ is open in $X$ with respect to $T$ we have
        $\preimg{\converse{f}}{U}$ is open in $A$ with respect to $\subspaceTopology{S}{A}$
        by \cref{open_in,topology_on,subseteq,pow_iff,id_is_relation,preim_eq_img_of_converse,converse_converse_eq,id_img,inter_absorb_supseteq_left}.
    $\converse{f}$ is continuous from $A$ to $X$ with respect to $\subspaceTopology{S}{A}$ and $T$
        by \cref{continuous}.
    $f$ is a homeomorphism between $X$ and $A$ with respect to $T$ and $\subspaceTopology{S}{A}$
        by \cref{homeomorphism}.
    Show that there exist $Y_1,S_1,A_1,f_1$ such that
        $S_1$ is a topology on $Y_1$ and
        $Y_1$ is compact with respect to $S_1$ and
        $Y_1$ is Hausdorff with respect to $S_1$ and
        $A_1$ is open in $Y_1$ with respect to $S_1$ and
        $f_1$ is a homeomorphism between $X$ and $A_1$ with respect to $T$ and $\subspaceTopology{S_1}{A_1}$.
    \begin{subproof}
        Trivial.
    \end{subproof}
\end{proof}
Corollary 15
open_subspace_compact_hausdorff_locally_compact_hausdorff

Assume $T$ is a topology on $X$.
If there exist $Y,S,A,f$ such that $S$ is a topology on $Y$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$ and $A$ is open in $Y$ with respect to $S$ and $f$ is a homeomorphism between $X$ and $A$ with respect to $T$ and $\subspaceTopology{S}{A}$ then $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.

LaTeX source
\begin{corollary}
\label{open_subspace_compact_hausdorff_locally_compact_hausdorff}
    Assume $T$ is a topology on $X$.
    If there exist $Y,S,A,f$ such that
        $S$ is a topology on $Y$ and
        $Y$ is compact with respect to $S$ and
        $Y$ is Hausdorff with respect to $S$ and
        $A$ is open in $Y$ with respect to $S$ and
        $f$ is a homeomorphism between $X$ and $A$ with respect to $T$ and $\subspaceTopology{S}{A}$
    then $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.
\end{corollary}
Proof

Assume there exist $Y,S,A,f$ such that $S$ is a topology on $Y$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$ and $A$ is open in $Y$ with respect to $S$ and $f$ is a homeomorphism between $X$ and $A$ with respect to $T$ and $\subspaceTopology{S}{A}$.
Take $Y,S,A,f$ such that $S$ is a topology on $Y$ and $Y$ is compact with respect to $S$ and $Y$ is Hausdorff with respect to $S$ and $A$ is open in $Y$ with respect to $S$ and $f$ is a homeomorphism between $X$ and $A$ with respect to $T$ and $\subspaceTopology{S}{A}$.

$Y$ is locally compact with respect to $S$ by Lemma 409.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ by Axiom 12, Definition 1, Definition 101, Definition 103.
Let $T_A = \subspaceTopology{S}{A}$.
$A$ is a subspace of $Y$ with respect to $S$ and $T_A$ is a topology on $A$ by Definition 147, Lemma 131.
$A$ is Hausdorff with respect to $T_A$ by Theorem 19.
$A$ is locally compact with respect to $T_A$ by Corollary 13.

Claim: $X$ is locally compact with respect to $T$.

Follows by Lemma 424.

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$.
$f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{A}$ and $f$ is a function and $f$ is injective by Definition 58, Definition 162, Proposition 389, Proposition 390.
Let $y_1 = f(x_1)$.
Let $y_2 = f(x_2)$.
$y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 162, Proposition 361.
$y_1\class{latex-symbol-tip latex-symbol-id-neq}{\neq} y_2$ by Definition 1, Definition 55, Proposition 386.
Take $V_1,V_2$ such that $V_1$ is a neighborhood of $y_1$ in $A$ with respect to $T_A$ and $V_2$ is a neighborhood of $y_2$ in $A$ with respect to $T_A$ and $V_1$ is disjoint from $V_2$ by Definition 156.
Let $U_1 = \preimg{f}{V_1}$.
Let $U_2 = \preimg{f}{V_2}$.
$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 1, Definition 55, Definition 153, Definition 160, Definition 162, Proposition 246, Proposition 348.
$U_1$ is disjoint from $U_2$ by Definition 3, Proposition 246, Proposition 349, Proposition 356.

Claim: There exist $W_1,W_2$ such that $W_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and $W_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ and $W_1$ is disjoint from $W_2$.

Trivial.

Hence $X$ is Hausdorff with respect to $T$ by Definition 156.

Claim: $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.

Trivial.

LaTeX source
\begin{proof}
    Assume there exist $Y,S,A,f$ such that
        $S$ is a topology on $Y$ and
        $Y$ is compact with respect to $S$ and
        $Y$ is Hausdorff with respect to $S$ and
        $A$ is open in $Y$ with respect to $S$ and
        $f$ is a homeomorphism between $X$ and $A$ with respect to $T$ and $\subspaceTopology{S}{A}$.
    Take $Y,S,A,f$ such that
        $S$ is a topology on $Y$ and
        $Y$ is compact with respect to $S$ and
        $Y$ is Hausdorff with respect to $S$ and
        $A$ is open in $Y$ with respect to $S$ and
    $f$ is a homeomorphism between $X$ and $A$ with respect to $T$ and $\subspaceTopology{S}{A}$.

    $Y$ is locally compact with respect to $S$ by \cref{compact_implies_locally_compact}.
    $A\subseteq Y$ by \cref{open_in,topology_on,subseteq,pow_iff}.
    Let $T_A = \subspaceTopology{S}{A}$.
    $A$ is a subspace of $Y$ with respect to $S$ and $T_A$ is a topology on $A$
        by \cref{subspace_of,subspace_topology_is_topology}.
    $A$ is Hausdorff with respect to $T_A$ by \cref{subspace_hausdorff}.
    $A$ is locally compact with respect to $T_A$ by \cref{locally_compact_subspace}.
    Show that $X$ is locally compact with respect to $T$.
    \begin{subproof}
        Follows by \cref{homeomorphism_preserves_local_compactness}.
    \end{subproof}

    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$.
            $f\in\funs{X}{A}$ and $f$ is a function and $f$ is injective
                by \cref{bijections_to_funs,homeomorphism,bijection_is_function,bijections}.
            Let $y_1 = f(x_1)$.
            Let $y_2 = f(x_2)$.
            $y_1\in A$ and $y_2\in A$ by \cref{funs_type_apply,homeomorphism}.
            $y_1\neq y_2$ by \cref{funs,subseteq,injective_function}.
            Take $V_1,V_2$ such that
                $V_1$ is a neighborhood of $y_1$ in $A$ with respect to $T_A$ and
                $V_2$ is a neighborhood of $y_2$ in $A$ with respect to $T_A$ and
                $V_1$ is disjoint from $V_2$
                by \cref{hausdorff}.
            Let $U_1 = \preimg{f}{V_1}$.
            Let $U_2 = \preimg{f}{V_2}$.
            $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{neighborhood,continuous,homeomorphism,funs,subseteq,function_apply_elim,preimg_iff}.
            $U_1$ is disjoint from $U_2$
                by \cref{preimg_iff,funs_is_function,function_apply_iff,disjoint}.
            Show that there exist $W_1,W_2$ such that
                $W_1$ is a neighborhood of $x_1$ in $X$ with respect to $T$ and
                $W_2$ is a neighborhood of $x_2$ in $X$ with respect to $T$ and
                $W_1$ is disjoint from $W_2$.
            \begin{subproof}
                Trivial.
            \end{subproof}
    \end{subproof}
    Hence $X$ is Hausdorff with respect to $T$ by \cref{hausdorff}.
    Show that $X$ is locally compact with respect to $T$ and $X$ is Hausdorff with respect to $T$.
    \begin{subproof}
        Trivial.
    \end{subproof}
\end{proof}