Topology (Munkres)
§26 Compact Spaces
$A$ is a covering of $X$ iff $X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{A}$.
LaTeX source
\begin{definition}
\label{covering}
$A$ is a covering of $X$ iff $X\subseteq\unions{A}$.
\end{definition}
$A$ is an open covering of $X$ with respect to $T$ iff $A$ is a covering of $X$ and for all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $U$ is open in $X$ with respect to $T$.
LaTeX source
\begin{definition}
\label{open_covering}
$A$ is an open covering of $X$ with respect to $T$ iff
$A$ is a covering of $X$ and
for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$.
\end{definition}
$X$ is compact with respect to $T$ iff for all $A$ such that $A$ is an open covering of $X$ 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 $X$.
LaTeX source
\begin{definition}
\label{compact}
$X$ is compact with respect to $T$ iff
for all $A$ such that $A$ is an open covering of $X$ with respect to $T$
there exists $B$ such that
$B\subseteq A$ and
$B$ is finite and
$B$ is a covering of $X$.
\end{definition}
Assume $Y$ is a subspace of $X$ with respect to $T$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Suppose $Y$ is compact with respect to $T_Y$.
Then for all $A$ such that $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 $X$ 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 $Y$.
LaTeX source
\begin{lemma}
\label{compact_subspace_open_covering_forward}
Assume $Y$ is a subspace of $X$ with respect to $T$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Suppose $Y$ is compact with respect to $T_Y$.
Then for all $A$ such that
$A$ is a covering of $Y$ and
for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$
there exists $B$ such that
$B\subseteq A$ and
$B$ is finite and
$B$ is a covering of $Y$.
\end{lemma}
Proof
$T$ is a topology on $X$ and $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 147.
$T_Y$ is a topology on $Y$ by Lemma 131.
Fix $A$ such that $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 $X$ with respect to $T$.
Let $A_Y = \{V \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in} A. V = Y\inter U\}$.
For all $V$ such that $V\class{latex-symbol-tip latex-symbol-id-in}{\in} A_Y$ we have $V$ is open in $Y$ with respect to $T_Y$ by Definition 103, Definition 146.
$Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{A}$ by Definition 245.
Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A_Y}$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$ by Definition 1.
Take $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 4.
Let $V = Y\inter U$.
$V\class{latex-symbol-tip latex-symbol-id-in}{\in} A_Y$.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Proposition 61.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A_Y}$ by Axiom 4.
$A_Y$ is a covering of $Y$ by Definition 1, Definition 245.
$A_Y$ is an open covering of $Y$ with respect to $T_Y$ by Definition 246.
Take $B_Y$ such that $B_Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_Y$ and $B_Y$ is finite and $B_Y$ is a covering of $Y$ by Definition 247.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} B_Y\class{latex-symbol-tip latex-symbol-id-times}{\times} A \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} V\class{latex-symbol-tip latex-symbol-id-in}{\in} B_Y.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in} A. w = (V,U) \class{latex-symbol-tip latex-symbol-id-land}{\land} V = Y\inter U\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ there exist $V,U$ such that $w = (V,U)$.
$R$ is a relation by Definition 12.
Claim: For all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B_Y$ there exists $U$ such that $V\mathrel{R} U$.
Fix $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B_Y$.
$V\class{latex-symbol-tip latex-symbol-id-in}{\in} A_Y$ by Definition 1.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $V = Y\inter U$.
$(V,U)\class{latex-symbol-tip latex-symbol-id-in}{\in} B_Y\class{latex-symbol-tip latex-symbol-id-times}{\times} A$ by Proposition 115.
$(V,U)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$.
$V\mathrel{R} U$.
Take $g$ such that $g$ is a function on $B_Y$ and for all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B_Y$ we have $V\mathrel{R}\apply{g}{V}$ by Axiom 54.
Let $B = \img{g}{B_Y}$.
$B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Axiom 6, Definition 1, Proposition 235, Proposition 349.
$B$ is finite by Lemma 192.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{B}$ by Axiom 4, Axiom 6, Definition 1, Definition 245, Proposition 61, Proposition 63, Proposition 235, Proposition 348, Proposition 349.
$B$ is a covering of $Y$ by Definition 1, Definition 245.
LaTeX source
\begin{proof}
$T$ is a topology on $X$ and $Y\subseteq X$ by \cref{subspace_of}.
$T_Y$ is a topology on $Y$ by \cref{subspace_topology_is_topology}.
Fix $A$ such that
$A$ is a covering of $Y$ and
for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$.
Let $A_Y = \{V \mid \exists U\in A. V = Y\inter U\}$.
For all $V$ such that $V\in A_Y$ we have $V$ is open in $Y$ with respect to $T_Y$
by \cref{open_in,subspace_topology}.
$Y\subseteq\unions{A}$ by \cref{covering}.
Show that for all $y$ such that $y\in Y$ we have $y\in\unions{A_Y}$.
\begin{subproof}
Fix $y$ such that $y\in Y$.
$y\in\unions{A}$ by \cref{subseteq}.
Take $U$ such that $U\in A$ and $y\in U$ by \cref{unions_iff}.
Let $V = Y\inter U$.
$V\in A_Y$.
$y\in V$ by \cref{inter_intro}.
$y\in\unions{A_Y}$ by \cref{unions_iff}.
\end{subproof}
$A_Y$ is a covering of $Y$ by \cref{subseteq,covering}.
$A_Y$ is an open covering of $Y$ with respect to $T_Y$ by \cref{open_covering}.
Take $B_Y$ such that
$B_Y\subseteq A_Y$ and $B_Y$ is finite and $B_Y$ is a covering of $Y$
by \cref{compact}.
Let $R = \{w\in B_Y\times A \mid \exists V\in B_Y.\exists U\in A. w = (V,U) \land V = Y\inter U\}$.
For all $w$ such that $w\in R$ there exist $V,U$ such that $w = (V,U)$.
$R$ is a relation by \cref{relation}.
Show that for all $V\in B_Y$ there exists $U$ such that $V\mathrel{R} U$.
\begin{subproof}
Fix $V\in B_Y$.
$V\in A_Y$ by \cref{subseteq}.
Take $U\in A$ such that $V = Y\inter U$.
$(V,U)\in B_Y\times A$ by \cref{times_tuple_intro}.
$(V,U)\in R$.
$V\mathrel{R} U$.
\end{subproof}
Take $g$ such that $g$ is a function on $B_Y$ and for all $V\in B_Y$ we have $V\mathrel{R}\apply{g}{V}$ by \cref{axiom_of_choice}.
Let $B = \img{g}{B_Y}$.
$B\subseteq A$ by \cref{img_iff,function_apply_iff,pair_eq_iff,subseteq}.
$B$ is finite by \cref{finite_image_function}.
For all $y$ such that $y\in Y$ we have $y\in\unions{B}$
by \cref{covering,subseteq,function_apply_iff,pair_eq_iff,inter_intro,inter_elim_right,function_apply_elim,img_iff,unions_iff}.
$B$ is a covering of $Y$ by \cref{subseteq,covering}.
\end{proof}
Assume $Y$ is a subspace of $X$ with respect to $T$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Suppose for all $A$ such that $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 $X$ 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 $Y$.
Then $Y$ is compact with respect to $T_Y$.
LaTeX source
\begin{lemma}
\label{compact_subspace_open_covering_backward}
Assume $Y$ is a subspace of $X$ with respect to $T$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Suppose for all $A$ such that
$A$ is a covering of $Y$ and
for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$
there exists $B$ such that
$B\subseteq A$ and
$B$ is finite and
$B$ is a covering of $Y$.
Then $Y$ is compact with respect to $T_Y$.
\end{lemma}
Proof
$T$ is a topology on $X$ and $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 147.
$T_Y$ is a topology on $Y$ by Lemma 131.
It suffices to show that for all $A$ such that $A$ is an open covering of $Y$ with respect to $T_Y$ 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$ by Definition 247.
Fix $A$ such that $A$ is an open covering of $Y$ with respect to $T_Y$.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} A\class{latex-symbol-tip latex-symbol-id-times}{\times} T \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} V\class{latex-symbol-tip latex-symbol-id-in}{\in} A.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in} T. w = (V,U) \class{latex-symbol-tip latex-symbol-id-land}{\land} V = Y\inter U\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ there exist $V,U$ such that $w = (V,U)$.
$R$ is a relation by Definition 12.
For all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $V = Y\inter U$ by Definition 103, Definition 146, Definition 246.
For all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $U$ such that $V\mathrel{R} U$.
Take $g$ such that $g$ is a function on $A$ and for all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $V\mathrel{R}\apply{g}{V}$ by Axiom 54.
Let $C = \img{g}{A}$.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $U$ is open in $X$ with respect to $T$ by Axiom 6, Definition 103, Proposition 235, Proposition 349.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{C}$ by Axiom 4, Axiom 6, Definition 1, Definition 245, Definition 246, Proposition 61, Proposition 63, Proposition 235, Proposition 348, Proposition 349.
$Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{C}$ by Definition 1.
$C$ is a covering of $Y$ by Definition 245.
Take $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ and $B$ is finite and $B$ is a covering of $Y$ by assumption.
Let $S = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} A \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in} B.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} V\class{latex-symbol-tip latex-symbol-id-in}{\in} A. w = (U,V) \class{latex-symbol-tip latex-symbol-id-land}{\land} \apply{g}{V} = U\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ there exist $U,V$ such that $w = (U,V)$.
$S$ is a relation by Definition 12.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $V\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $\apply{g}{V} = U$ by Definition 1, Proposition 235, Proposition 349.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $V$ such that $U\mathrel{S} V$.
Take $h$ such that $h$ is a function on $B$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $U\mathrel{S}\apply{h}{U}$ by Axiom 54.
Let $B_1 = \img{h}{B}$.
$B_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Axiom 6, Definition 1, Proposition 235, Proposition 349.
$B_1$ is finite by Lemma 192.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{B_1}$ by Axiom 4, Axiom 6, Definition 1, Definition 103, Definition 146, Definition 245, Definition 246, Proposition 61, Proposition 235, Proposition 348, Proposition 349.
$Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{B_1}$ by Definition 1.
$B_1$ is a covering of $Y$ by Definition 245.
Claim: There exists $D$ such that $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $D$ is finite and $D$ is a covering of $Y$.
Trivial.
LaTeX source
\begin{proof}
$T$ is a topology on $X$ and $Y\subseteq X$ by \cref{subspace_of}.
$T_Y$ is a topology on $Y$ by \cref{subspace_topology_is_topology}.
It suffices to show that for all $A$ such that $A$ is an open covering of $Y$ with respect to $T_Y$
there exists $B$ such that $B\subseteq A$ and $B$ is finite and $B$ is a covering of $Y$
by \cref{compact}.
Fix $A$ such that $A$ is an open covering of $Y$ with respect to $T_Y$.
Let $R = \{w\in A\times T \mid \exists V\in A.\exists U\in T. w = (V,U) \land V = Y\inter U\}$.
For all $w$ such that $w\in R$ there exist $V,U$ such that $w = (V,U)$.
$R$ is a relation by \cref{relation}.
For all $V\in A$ there exists $U\in T$ such that $V = Y\inter U$
by \cref{open_covering,open_in,subspace_topology}.
For all $V\in A$ there exists $U$ such that $V\mathrel{R} U$.
Take $g$ such that $g$ is a function on $A$ and for all $V\in A$ we have $V\mathrel{R}\apply{g}{V}$ by \cref{axiom_of_choice}.
Let $C = \img{g}{A}$.
For all $U$ such that $U\in C$ we have $U$ is open in $X$ with respect to $T$
by \cref{img_iff,function_apply_iff,pair_eq_iff,open_in}.
For all $y$ such that $y\in Y$ we have $y\in\unions{C}$
by \cref{open_covering,covering,subseteq,unions_iff,function_apply_iff,pair_eq_iff,inter_intro,inter_elim_right,function_apply_elim,img_iff}.
$Y\subseteq\unions{C}$ by \cref{subseteq}.
$C$ is a covering of $Y$ by \cref{covering}.
Take $B$ such that $B\subseteq C$ and $B$ is finite and $B$ is a covering of $Y$ by assumption.
Let $S = \{w\in B\times A \mid \exists U\in B.\exists V\in A. w = (U,V) \land \apply{g}{V} = U\}$.
For all $w$ such that $w\in S$ there exist $U,V$ such that $w = (U,V)$.
$S$ is a relation by \cref{relation}.
For all $U\in B$ there exists $V\in A$ such that $\apply{g}{V} = U$
by \cref{subseteq,img_iff,function_apply_iff}.
For all $U\in B$ there exists $V$ such that $U\mathrel{S} V$.
Take $h$ such that $h$ is a function on $B$ and for all $U\in B$ we have $U\mathrel{S}\apply{h}{U}$ by \cref{axiom_of_choice}.
Let $B_1 = \img{h}{B}$.
$B_1\subseteq A$ by \cref{img_iff,function_apply_iff,pair_eq_iff,subseteq}.
$B_1$ is finite by \cref{finite_image_function}.
For all $y$ such that $y\in Y$ we have $y\in\unions{B_1}$
by \cref{covering,subseteq,unions_iff,function_apply_iff,pair_eq_iff,inter_intro,open_covering,open_in,subspace_topology,function_apply_elim,img_iff}.
$Y\subseteq\unions{B_1}$ by \cref{subseteq}.
$B_1$ is a covering of $Y$ by \cref{covering}.
Show that there exists $D$ such that $D\subseteq A$ and $D$ is finite and $D$ is a covering of $Y$.
\begin{subproof}
Trivial.
\end{subproof}
\end{proof}
Assume $Y$ is a subspace of $X$ with respect to $T$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Then $Y$ is compact with respect to $T_Y$ iff for all $A$ such that $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 $X$ 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 $Y$.
LaTeX source
\begin{lemma}
\label{compact_subspace_open_covering}
Assume $Y$ is a subspace of $X$ with respect to $T$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Then $Y$ is compact with respect to $T_Y$ iff
for all $A$ such that
$A$ is a covering of $Y$ and
for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$
there exists $B$ such that
$B\subseteq A$ and
$B$ is finite and
$B$ is a covering of $Y$.
\end{lemma}
Proof
Claim: If $Y$ is compact with respect to $T_Y$ then for all $A$ such that $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 $X$ 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 $Y$.
Follows by Lemma 354.
Claim: If for all $A$ such that $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 $X$ 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 $Y$ then $Y$ is compact with respect to $T_Y$.
Follows by Lemma 355.
LaTeX source
\begin{proof}
Show that if $Y$ is compact with respect to $T_Y$ then
for all $A$ such that
$A$ is a covering of $Y$ and
for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$
there exists $B$ such that
$B\subseteq A$ and
$B$ is finite and
$B$ is a covering of $Y$.
\begin{subproof}
Follows by \cref{compact_subspace_open_covering_forward}.
\end{subproof}
Show that if for all $A$ such that
$A$ is a covering of $Y$ and
for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$
there exists $B$ such that
$B\subseteq A$ and
$B$ is finite and
$B$ is a covering of $Y$ then
$Y$ is compact with respect to $T_Y$.
\begin{subproof}
Follows by \cref{compact_subspace_open_covering_backward}.
\end{subproof}
\end{proof}
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Suppose $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $Y$ is closed in $X$ with respect to $T$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Then $Y$ is compact with respect to $T_Y$.
LaTeX source
\begin{theorem}
\label{closed_subspace_compact}
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Suppose $Y\subseteq X$.
Suppose $Y$ is closed in $X$ with respect to $T$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Then $Y$ is compact with respect to $T_Y$.
\end{theorem}
Proof
$Y$ is a subspace of $X$ with respect to $T$ by Definition 147.
It suffices to show that for all $A$ such that $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 $X$ 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 $Y$ by Lemma 356.
Fix $A$ such that $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 $X$ with respect to $T$.
Let $C = A\union \{X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} Y\}$.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $U$ is open in $X$ with respect to $T$ by Axiom 5, Definition 149, Proposition 22.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{C}$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 4, Definition 1, Definition 245.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{C}$ by Axiom 4, Axiom 5.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{C}$ by Axiom 4, Axiom 5, Proposition 22, Proposition 85.
LaTeX source
\begin{byCase}
\caseOf{$x\in Y$.}
Take $U\in A$ such that $x\in U$ by \cref{covering,subseteq,unions_iff}.
$x\in\unions{C}$ by \cref{union_iff,unions_iff}.
\caseOf{$x\notin Y$.}
$x\in\unions{C}$ by \cref{setminus_intro,singleton_iff,union_iff,unions_iff}.
\end{byCase}
$C$ is a covering of $X$ by Definition 1, Definition 245.
$C$ is an open covering of $X$ with respect to $T$ by Definition 246.
Take $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ and $B$ is finite and $B$ is a covering of $X$ by Definition 247.
Let $B_1 = B\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \{X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} Y\}$.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ there exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 4, Definition 1, Definition 245.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ there exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Proposition 22, Proposition 85, Proposition 87.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{B_1}$ by Axiom 4.
$B_1$ is a covering of $Y$ by Definition 1, Definition 245.
$B_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B$ by Proposition 97.
$B_1$ is finite by Lemma 44, Proposition 97.
$B_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Axiom 5, Definition 1, Definition 1, Proposition 87.
Claim: There exists $D$ such that $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $D$ is finite and $D$ is a covering of $Y$.
Trivial.
Claim: There exists $D$ such that $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $D$ is finite and $D$ is a covering of $Y$.
Follows by Axiom 5, Definition 1, Definition 245, Proposition 22.
LaTeX source
\begin{byCase}
\caseOf{$X\setminus Y\in B$.}
Let $B_1 = B\setminus \{X\setminus Y\}$.
For all $y$ such that $y\in Y$ there exists $U\in B$ such that $y\in U$
by \cref{covering,subseteq,unions_iff}.
For all $y$ such that $y\in Y$ there exists $U\in B_1$ such that $y\in U$
by \cref{setminus_intro,singleton_iff,setminus_elim_right}.
For all $y$ such that $y\in Y$ we have $y\in\unions{B_1}$ by \cref{unions_iff}.
$B_1$ is a covering of $Y$ by \cref{subseteq,covering}.
$B_1\subseteq B$ by \cref{setminus_subseteq}.
$B_1$ is finite by \cref{setminus_subseteq,subseteq_finite_is_finite}.
$B_1\subseteq A$ by \cref{subseteq,setminus_elim_right,union_iff,subseteq}.
Show that there exists $D$ such that $D\subseteq A$ and $D$ is finite and $D$ is a covering of $Y$.
\begin{subproof}
Trivial.
\end{subproof}
\caseOf{$X\setminus Y\notin B$.}
Show that there exists $D$ such that $D\subseteq A$ and $D$ is finite and $D$ is a covering of $Y$.
\begin{subproof}
Follows by \cref{subseteq,union_iff,singleton_iff,covering}.
\end{subproof}
\end{byCase}
LaTeX source
\begin{proof}
$Y$ is a subspace of $X$ with respect to $T$ by \cref{subspace_of}.
It suffices to show that for all $A$ such that
$A$ is a covering of $Y$ and
for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$
there exists $B$ such that
$B\subseteq A$ and
$B$ is finite and
$B$ is a covering of $Y$
by \cref{compact_subspace_open_covering}.
Fix $A$ such that
$A$ is a covering of $Y$ and
for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$.
Let $C = A\union \{X\setminus Y\}$.
For all $U$ such that $U\in C$ we have $U$ is open in $X$ with respect to $T$
by \cref{union_iff,singleton_iff,closed_in}.
Show that for all $x$ such that $x\in X$ we have $x\in\unions{C}$.
\begin{subproof}
Fix $x$ such that $x\in X$.
\begin{byCase}
\caseOf{$x\in Y$.}
Take $U\in A$ such that $x\in U$ by \cref{covering,subseteq,unions_iff}.
$x\in\unions{C}$ by \cref{union_iff,unions_iff}.
\caseOf{$x\notin Y$.}
$x\in\unions{C}$ by \cref{setminus_intro,singleton_iff,union_iff,unions_iff}.
\end{byCase}
\end{subproof}
$C$ is a covering of $X$ by \cref{subseteq,covering}.
$C$ is an open covering of $X$ with respect to $T$ by \cref{open_covering}.
Take $B$ such that $B\subseteq C$ and $B$ is finite and $B$ is a covering of $X$ by \cref{compact}.
\begin{byCase}
\caseOf{$X\setminus Y\in B$.}
Let $B_1 = B\setminus \{X\setminus Y\}$.
For all $y$ such that $y\in Y$ there exists $U\in B$ such that $y\in U$
by \cref{covering,subseteq,unions_iff}.
For all $y$ such that $y\in Y$ there exists $U\in B_1$ such that $y\in U$
by \cref{setminus_intro,singleton_iff,setminus_elim_right}.
For all $y$ such that $y\in Y$ we have $y\in\unions{B_1}$ by \cref{unions_iff}.
$B_1$ is a covering of $Y$ by \cref{subseteq,covering}.
$B_1\subseteq B$ by \cref{setminus_subseteq}.
$B_1$ is finite by \cref{setminus_subseteq,subseteq_finite_is_finite}.
$B_1\subseteq A$ by \cref{subseteq,setminus_elim_right,union_iff,subseteq}.
Show that there exists $D$ such that $D\subseteq A$ and $D$ is finite and $D$ is a covering of $Y$.
\begin{subproof}
Trivial.
\end{subproof}
\caseOf{$X\setminus Y\notin B$.}
Show that there exists $D$ such that $D\subseteq A$ and $D$ is finite and $D$ is a covering of $Y$.
\begin{subproof}
Follows by \cref{subseteq,union_iff,singleton_iff,covering}.
\end{subproof}
\end{byCase}
\end{proof}
Assume $T$ is a topology on $X$.
Assume $X$ is Hausdorff with respect to $T$.
Suppose $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Suppose $Y$ is compact with respect to $T_Y$.
Then $Y$ is closed in $X$ with respect to $T$.
LaTeX source
\begin{theorem}
\label{compact_subspace_closed}
Assume $T$ is a topology on $X$.
Assume $X$ is Hausdorff with respect to $T$.
Suppose $Y\subseteq X$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Suppose $Y$ is compact with respect to $T_Y$.
Then $Y$ is closed in $X$ with respect to $T$.
\end{theorem}
Proof
Claim: $Y$ is closed in $X$ with respect to $T$.
Follows by Lemma 138.
Let $M = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in} T \mid \text{$U$ is disjoint from $Y$}\}$.
Claim: For all $x_0$ such that $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} Y$ we have $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{M}$.
Fix $x_0$ such that $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} Y$.
$x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_0\class{latex-symbol-tip latex-symbol-id-notin}{\notin} Y$ by Proposition 86, Proposition 87.
Let $A = \{V\class{latex-symbol-tip latex-symbol-id-in}{\in} T \mid \text{there exists $y\in Y$ such that there exists $U$ such that $U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and $V$ is a neighborhood of $y$ in $X$ with respect to $T$ and $U$ is disjoint from $V$}\}$.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ there exists $V\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 1, Definition 103, Definition 153, Definition 156.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$ by Axiom 4.
$A$ is a covering of $Y$ by Definition 1, Definition 245.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $U$ is open in $X$ with respect to $T$ by Definition 1, Definition 103.
Take $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$ by Definition 1, Definition 147, Lemma 356.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} T \mid \text{there exists $V\in B$ such that there exists $U\in T$ such that $w = (V,U)$ and $U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and $U$ is disjoint from $V$}\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ there exist $V,U$ such that $w = (V,U)$.
$R$ is a relation by Definition 12.
Claim: For all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $U$ such that $V\mathrel{R} U$.
Fix $V$ such that $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Take $y,U$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and $V$ is a neighborhood of $y$ in $X$ with respect to $T$ and $U$ is disjoint from $V$ by Definition 1.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 103, Definition 153.
$(V,U)\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} T$ by Proposition 115.
$(V,U)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Proposition 115.
$V\mathrel{R} U$.
Take $g$ such that $g$ is a function on $B$ and for all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $V\mathrel{R}\apply{g}{V}$ by Axiom 54.
Let $G = \img{g}{B}$.
$G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Axiom 6, Definition 1, Proposition 235, Proposition 349.
$G$ is finite by Lemma 192.
Take $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 10.
Take $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Axiom 4, Definition 1, Definition 245.
$G$ is inhabited by Definition 1, Proposition 235, Proposition 348.
Let $U_0 = \inters{G}$.
$U_0\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 156, Lemma 124.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ there exists $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $(V,U)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Proposition 235.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 6, Definition 153, Proposition 349.
$x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U_0$ by Proposition 31.
Claim: $U_0$ is disjoint from $Y$.
Suppose not.
Take $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} U_0$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 3.
Take $W\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ by Axiom 4, Definition 1, Definition 245.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{g}{W}$ by Definition 1, Proposition 35, Proposition 235, Proposition 348.
Take $V_1,U_1$ such that $V_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ and $(W,\apply{g}{W}) = (V_1,U_1)$ and $U_1$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and $U_1$ is disjoint from $V_1$ by Definition 1, Proposition 349.
$z\class{latex-symbol-tip latex-symbol-id-notin}{\notin} \apply{g}{W}$ by Axiom 6, Definition 3.
Contradiction.
$U_0\class{latex-symbol-tip latex-symbol-id-in}{\in} M$.
$x_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{M}$ by Axiom 4.
$X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \unions{M}$ by Definition 1.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{M}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} Y$.
Follows by Axiom 4, Definition 1, Definition 3, Definition 101, Proposition 85, Proposition 156.
$X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} Y = \unions{M}$ by Definition 1, Proposition 3.
$X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} Y$ is open in $X$ with respect to $T$ by Definition 1, Definition 101, Definition 103.
Claim: $Y$ is closed in $X$ with respect to $T$.
Follows by Definition 149.
LaTeX source
\begin{byCase}
\caseOf{$Y = \emptyset$.}
Show that $Y$ is closed in $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{closed_emptyset}.
\end{subproof}
\caseOf{$Y \neq \emptyset$.}
Let $M = \{U\in T \mid \text{$U$ is disjoint from $Y$}\}$.
Show that for all $x_0$ such that $x_0\in X\setminus Y$ we have $x_0\in\unions{M}$.
\begin{subproof}
Fix $x_0$ such that $x_0\in X\setminus Y$.
$x_0\in X$ and $x_0\notin Y$ by \cref{setminus_elim_left,setminus_elim_right}.
Let $A = \{V\in T \mid \text{there exists $y\in Y$ such that there exists $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$V$ is a neighborhood of $y$ in $X$ with respect to $T$ and
$U$ is disjoint from $V$}\}$.
For all $y$ such that $y\in Y$ there exists $V\in A$ such that $y\in V$
by \cref{subseteq,hausdorff,neighborhood,open_in}.
For all $y$ such that $y\in Y$ we have $y\in\unions{A}$ by \cref{unions_iff}.
$A$ is a covering of $Y$ by \cref{subseteq,covering}.
For all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$
by \cref{subseteq,open_in}.
Take $B$ such that
$B\subseteq A$ and $B$ is finite and $B$ is a covering of $Y$
by \cref{subspace_of,compact_subspace_open_covering,subseteq}.
Let $R = \{w\in B\times T \mid \text{there exists $V\in B$ such that there exists $U\in T$ such that
$w = (V,U)$ and
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$U$ is disjoint from $V$}\}$.
For all $w$ such that $w\in R$ there exist $V,U$ such that $w = (V,U)$.
$R$ is a relation by \cref{relation}.
Show that for all $V\in B$ there exists $U$ such that $V\mathrel{R} U$.
\begin{subproof}
Fix $V$ such that $V\in B$.
Take $y,U$ such that $y\in Y$ and
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$V$ is a neighborhood of $y$ in $X$ with respect to $T$ and
$U$ is disjoint from $V$
by \cref{subseteq}.
$U\in T$ by \cref{neighborhood,open_in}.
$(V,U)\in B\times T$ by \cref{times_tuple_intro}.
$(V,U)\in R$ by \cref{times_tuple_intro}.
$V\mathrel{R} U$.
\end{subproof}
Take $g$ such that $g$ is a function on $B$ and for all $V\in B$ we have $V\mathrel{R}\apply{g}{V}$ by \cref{axiom_of_choice}.
Let $G = \img{g}{B}$.
$G\subseteq T$ by \cref{img_iff,function_apply_iff,pair_eq_iff,subseteq}.
$G$ is finite by \cref{finite_image_function}.
Take $y$ such that $y\in Y$ by \cref{nonempty_inhabited}.
Take $V\in B$ such that $y\in V$ by \cref{covering,subseteq,unions_iff}.
$G$ is inhabited by \cref{function_apply_elim,subseteq,img_iff}.
Let $U_0 = \inters{G}$.
$U_0\in T$ by \cref{hausdorff,finite_intersections_open_in_topology}.
For all $U$ such that $U\in G$ there exists $V\in B$ such that $(V,U)\in g$
by \cref{img_iff}.
For all $U$ such that $U\in G$ we have $x_0\in U$
by \cref{function_apply_iff,pair_eq_iff,neighborhood}.
$x_0\in U_0$ by \cref{inters_intro}.
Show that $U_0$ is disjoint from $Y$.
\begin{subproof}
Suppose not.
Take $z$ such that $z\in U_0$ and $z\in Y$ by \cref{disjoint}.
Take $W\in B$ such that $z\in W$ by \cref{covering,subseteq,unions_iff}.
$z\in \apply{g}{W}$ by \cref{function_apply_elim,subseteq,img_iff,inters_subseteq_elem}.
Take $V_1,U_1$ such that $V_1\in B$ and $U_1\in T$ and
$(W,\apply{g}{W}) = (V_1,U_1)$ and
$U_1$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$U_1$ is disjoint from $V_1$
by \cref{subseteq,function_apply_iff}.
$z\notin \apply{g}{W}$ by \cref{pair_eq_iff,disjoint}.
Contradiction.
\end{subproof}
$U_0\in M$.
$x_0\in\unions{M}$ by \cref{unions_iff}.
\end{subproof}
$X\setminus Y\subseteq \unions{M}$ by \cref{subseteq}.
Show that for all $x$ such that $x\in\unions{M}$ we have $x\in X\setminus Y$.
\begin{subproof}
Follows by \cref{unions_iff,disjoint,subseteq,topology_on,powerset_elim,setminus_intro}.
\end{subproof}
$X\setminus Y = \unions{M}$ by \cref{subseteq,subseteq_antisymmetric}.
$X\setminus Y$ is open in $X$ with respect to $T$ by \cref{subseteq,topology_on,open_in}.
Show that $Y$ is closed in $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{closed_in}.
\end{subproof}
\end{byCase}
LaTeX source
\begin{proof}
\begin{byCase}
\caseOf{$Y = \emptyset$.}
Show that $Y$ is closed in $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{closed_emptyset}.
\end{subproof}
\caseOf{$Y \neq \emptyset$.}
Let $M = \{U\in T \mid \text{$U$ is disjoint from $Y$}\}$.
Show that for all $x_0$ such that $x_0\in X\setminus Y$ we have $x_0\in\unions{M}$.
\begin{subproof}
Fix $x_0$ such that $x_0\in X\setminus Y$.
$x_0\in X$ and $x_0\notin Y$ by \cref{setminus_elim_left,setminus_elim_right}.
Let $A = \{V\in T \mid \text{there exists $y\in Y$ such that there exists $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$V$ is a neighborhood of $y$ in $X$ with respect to $T$ and
$U$ is disjoint from $V$}\}$.
For all $y$ such that $y\in Y$ there exists $V\in A$ such that $y\in V$
by \cref{subseteq,hausdorff,neighborhood,open_in}.
For all $y$ such that $y\in Y$ we have $y\in\unions{A}$ by \cref{unions_iff}.
$A$ is a covering of $Y$ by \cref{subseteq,covering}.
For all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$
by \cref{subseteq,open_in}.
Take $B$ such that
$B\subseteq A$ and $B$ is finite and $B$ is a covering of $Y$
by \cref{subspace_of,compact_subspace_open_covering,subseteq}.
Let $R = \{w\in B\times T \mid \text{there exists $V\in B$ such that there exists $U\in T$ such that
$w = (V,U)$ and
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$U$ is disjoint from $V$}\}$.
For all $w$ such that $w\in R$ there exist $V,U$ such that $w = (V,U)$.
$R$ is a relation by \cref{relation}.
Show that for all $V\in B$ there exists $U$ such that $V\mathrel{R} U$.
\begin{subproof}
Fix $V$ such that $V\in B$.
Take $y,U$ such that $y\in Y$ and
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$V$ is a neighborhood of $y$ in $X$ with respect to $T$ and
$U$ is disjoint from $V$
by \cref{subseteq}.
$U\in T$ by \cref{neighborhood,open_in}.
$(V,U)\in B\times T$ by \cref{times_tuple_intro}.
$(V,U)\in R$ by \cref{times_tuple_intro}.
$V\mathrel{R} U$.
\end{subproof}
Take $g$ such that $g$ is a function on $B$ and for all $V\in B$ we have $V\mathrel{R}\apply{g}{V}$ by \cref{axiom_of_choice}.
Let $G = \img{g}{B}$.
$G\subseteq T$ by \cref{img_iff,function_apply_iff,pair_eq_iff,subseteq}.
$G$ is finite by \cref{finite_image_function}.
Take $y$ such that $y\in Y$ by \cref{nonempty_inhabited}.
Take $V\in B$ such that $y\in V$ by \cref{covering,subseteq,unions_iff}.
$G$ is inhabited by \cref{function_apply_elim,subseteq,img_iff}.
Let $U_0 = \inters{G}$.
$U_0\in T$ by \cref{hausdorff,finite_intersections_open_in_topology}.
For all $U$ such that $U\in G$ there exists $V\in B$ such that $(V,U)\in g$
by \cref{img_iff}.
For all $U$ such that $U\in G$ we have $x_0\in U$
by \cref{function_apply_iff,pair_eq_iff,neighborhood}.
$x_0\in U_0$ by \cref{inters_intro}.
Show that $U_0$ is disjoint from $Y$.
\begin{subproof}
Suppose not.
Take $z$ such that $z\in U_0$ and $z\in Y$ by \cref{disjoint}.
Take $W\in B$ such that $z\in W$ by \cref{covering,subseteq,unions_iff}.
$z\in \apply{g}{W}$ by \cref{function_apply_elim,subseteq,img_iff,inters_subseteq_elem}.
Take $V_1,U_1$ such that $V_1\in B$ and $U_1\in T$ and
$(W,\apply{g}{W}) = (V_1,U_1)$ and
$U_1$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$U_1$ is disjoint from $V_1$
by \cref{subseteq,function_apply_iff}.
$z\notin \apply{g}{W}$ by \cref{pair_eq_iff,disjoint}.
Contradiction.
\end{subproof}
$U_0\in M$.
$x_0\in\unions{M}$ by \cref{unions_iff}.
\end{subproof}
$X\setminus Y\subseteq \unions{M}$ by \cref{subseteq}.
Show that for all $x$ such that $x\in\unions{M}$ we have $x\in X\setminus Y$.
\begin{subproof}
Follows by \cref{unions_iff,disjoint,subseteq,topology_on,powerset_elim,setminus_intro}.
\end{subproof}
$X\setminus Y = \unions{M}$ by \cref{subseteq,subseteq_antisymmetric}.
$X\setminus Y$ is open in $X$ with respect to $T$ by \cref{subseteq,topology_on,open_in}.
Show that $Y$ is closed in $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{closed_in}.
\end{subproof}
\end{byCase}
\end{proof}
Assume $T$ is a topology on $X$.
Assume $X$ is Hausdorff with respect to $T$.
Suppose $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Suppose $Y$ is compact with respect to $T_Y$.
Suppose $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} Y$.
Then there exist $U,V$ such that $U$ is open in $X$ with respect to $T$ and $V$ is open in $X$ with respect to $T$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ and $U$ is disjoint from $V$.
LaTeX source
\begin{lemma}
\label{compact_hausdorff_separation}
Assume $T$ is a topology on $X$.
Assume $X$ is Hausdorff with respect to $T$.
Suppose $Y\subseteq X$.
Let $T_Y = \subspaceTopology{T}{Y}$.
Suppose $Y$ is compact with respect to $T_Y$.
Suppose $x_0\in X\setminus Y$.
Then there exist $U,V$ such that
$U$ is open in $X$ with respect to $T$ and
$V$ is open in $X$ with respect to $T$ and
$x_0\in U$ and
$Y\subseteq V$ and
$U$ is disjoint from $V$.
\end{lemma}
Proof
Let $U_0 = X$.
Let $V_0 = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Claim: There exist $U,V$ such that $U$ is open in $X$ with respect to $T$ and $V$ is open in $X$ with respect to $T$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ and $U$ is disjoint from $V$.
Follows by Axiom 2, Definition 3, Definition 101, Definition 103, Proposition 11, Proposition 86.
$x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_0\class{latex-symbol-tip latex-symbol-id-notin}{\notin} Y$ by Proposition 86, Proposition 87.
Let $A = \{V\class{latex-symbol-tip latex-symbol-id-in}{\in} T \mid \text{there exists $y\in Y$ such that there exists $U$ such that $U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and $V$ is a neighborhood of $y$ in $X$ with respect to $T$ and $U$ is disjoint from $V$}\}$.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ there exists $V\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 1, Definition 103, Definition 153, Definition 156.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$ by Axiom 4.
$A$ is a covering of $Y$ by Definition 1, Definition 245.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $U$ is open in $X$ with respect to $T$ by Definition 1, Definition 103.
Take $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$ by Definition 1, Definition 147, Lemma 356.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} T \mid \text{there exists $V\in B$ such that there exists $U\in T$ such that $w = (V,U)$ and $U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and $U$ is disjoint from $V$}\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ there exist $V,U$ such that $w = (V,U)$.
$R$ is a relation by Definition 12.
Claim: For all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $U$ such that $V\mathrel{R} U$.
Fix $V$ such that $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Take $y,U$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and $V$ is a neighborhood of $y$ in $X$ with respect to $T$ and $U$ is disjoint from $V$ by Definition 1.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 103, Definition 153.
$(V,U)\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} T$ by Proposition 115.
$(V,U)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Proposition 115.
$V\mathrel{R} U$.
Take $g$ such that $g$ is a function on $B$ and for all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $V\mathrel{R}\apply{g}{V}$ by Axiom 54.
Let $G = \img{g}{B}$.
$G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Axiom 6, Definition 1, Proposition 235, Proposition 349.
$G$ is finite by Lemma 192.
Take $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 10.
Take $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Axiom 4, Definition 1, Definition 245.
$G$ is inhabited by Definition 1, Proposition 235, Proposition 348.
Let $U_0 = \inters{G}$.
$U_0\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 156, Lemma 124.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ there exists $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $(V,U)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Proposition 235.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 6, Definition 153, Proposition 349.
$x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U_0$ by Proposition 31.
Let $V_0 = \unions{B}$.
$V_0$ is open in $X$ with respect to $T$ by Definition 1, Definition 101, Definition 103.
$Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V_0$ by Definition 245.
Claim: $U_0$ is disjoint from $V_0$.
Suppose not.
There exists $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} U_0$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} V_0$.
Take $W\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ by Axiom 4.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{g}{W}$ by Definition 1, Proposition 35, Proposition 235, Proposition 348.
Take $V_1,U_1$ such that $V_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ and $(W,\apply{g}{W}) = (V_1,U_1)$ and $U_1$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and $U_1$ is disjoint from $V_1$ by Definition 1, Proposition 349.
$z\class{latex-symbol-tip latex-symbol-id-notin}{\notin} \apply{g}{W}$ by Axiom 6, Definition 3.
Contradiction.
Claim: There exist $U,V$ such that $U$ is open in $X$ with respect to $T$ and $V$ is open in $X$ with respect to $T$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ and $U$ is disjoint from $V$.
Trivial.
LaTeX source
\begin{byCase}
\caseOf{$Y = \emptyset$.}
Let $U_0 = X$.
Let $V_0 = \emptyset$.
Show that there exist $U,V$ such that
$U$ is open in $X$ with respect to $T$ and
$V$ is open in $X$ with respect to $T$ and
$x_0\in U$ and
$Y\subseteq V$ and
$U$ is disjoint from $V$.
\begin{subproof}
Follows by \cref{open_in,topology_on,setminus_elim_left,emptyset_subseteq,emptyset,disjoint}.
\end{subproof}
\caseOf{$Y \neq \emptyset$.}
$x_0\in X$ and $x_0\notin Y$ by \cref{setminus_elim_left,setminus_elim_right}.
Let $A = \{V\in T \mid \text{there exists $y\in Y$ such that there exists $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$V$ is a neighborhood of $y$ in $X$ with respect to $T$ and
$U$ is disjoint from $V$}\}$.
For all $y$ such that $y\in Y$ there exists $V\in A$ such that $y\in V$
by \cref{subseteq,hausdorff,neighborhood,open_in}.
For all $y$ such that $y\in Y$ we have $y\in\unions{A}$ by \cref{unions_iff}.
$A$ is a covering of $Y$ by \cref{subseteq,covering}.
For all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$
by \cref{subseteq,open_in}.
Take $B$ such that
$B\subseteq A$ and $B$ is finite and $B$ is a covering of $Y$
by \cref{subspace_of,compact_subspace_open_covering,subseteq}.
Let $R = \{w\in B\times T \mid \text{there exists $V\in B$ such that there exists $U\in T$ such that
$w = (V,U)$ and
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$U$ is disjoint from $V$}\}$.
For all $w$ such that $w\in R$ there exist $V,U$ such that $w = (V,U)$.
$R$ is a relation by \cref{relation}.
Show that for all $V\in B$ there exists $U$ such that $V\mathrel{R} U$.
\begin{subproof}
Fix $V$ such that $V\in B$.
Take $y,U$ such that $y\in Y$ and
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$V$ is a neighborhood of $y$ in $X$ with respect to $T$ and
$U$ is disjoint from $V$
by \cref{subseteq}.
$U\in T$ by \cref{neighborhood,open_in}.
$(V,U)\in B\times T$ by \cref{times_tuple_intro}.
$(V,U)\in R$ by \cref{times_tuple_intro}.
$V\mathrel{R} U$.
\end{subproof}
Take $g$ such that $g$ is a function on $B$ and for all $V\in B$ we have $V\mathrel{R}\apply{g}{V}$ by \cref{axiom_of_choice}.
Let $G = \img{g}{B}$.
$G\subseteq T$ by \cref{img_iff,function_apply_iff,pair_eq_iff,subseteq}.
$G$ is finite by \cref{finite_image_function}.
Take $y$ such that $y\in Y$ by \cref{nonempty_inhabited}.
Take $V\in B$ such that $y\in V$ by \cref{covering,subseteq,unions_iff}.
$G$ is inhabited by \cref{function_apply_elim,subseteq,img_iff}.
Let $U_0 = \inters{G}$.
$U_0\in T$ by \cref{hausdorff,finite_intersections_open_in_topology}.
For all $U$ such that $U\in G$ there exists $V\in B$ such that $(V,U)\in g$
by \cref{img_iff}.
For all $U$ such that $U\in G$ we have $x_0\in U$
by \cref{function_apply_iff,pair_eq_iff,neighborhood}.
$x_0\in U_0$ by \cref{inters_intro}.
Let $V_0 = \unions{B}$.
$V_0$ is open in $X$ with respect to $T$ by \cref{subseteq,topology_on,open_in}.
$Y\subseteq V_0$ by \cref{covering}.
Show that $U_0$ is disjoint from $V_0$.
\begin{subproof}
Suppose not.
There exists $z$ such that $z\in U_0$ and $z\in V_0$.
Take $W\in B$ such that $z\in W$ by \cref{unions_iff}.
$z\in \apply{g}{W}$ by \cref{function_apply_elim,subseteq,img_iff,inters_subseteq_elem}.
Take $V_1,U_1$ such that $V_1\in B$ and $U_1\in T$ and
$(W,\apply{g}{W}) = (V_1,U_1)$ and
$U_1$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$U_1$ is disjoint from $V_1$
by \cref{subseteq,function_apply_iff}.
$z\notin \apply{g}{W}$ by \cref{pair_eq_iff,disjoint}.
Contradiction.
\end{subproof}
Show that there exist $U,V$ such that
$U$ is open in $X$ with respect to $T$ and
$V$ is open in $X$ with respect to $T$ and
$x_0\in U$ and
$Y\subseteq V$ and
$U$ is disjoint from $V$.
\begin{subproof}
Trivial.
\end{subproof}
\end{byCase}
LaTeX source
\begin{proof}
\begin{byCase}
\caseOf{$Y = \emptyset$.}
Let $U_0 = X$.
Let $V_0 = \emptyset$.
Show that there exist $U,V$ such that
$U$ is open in $X$ with respect to $T$ and
$V$ is open in $X$ with respect to $T$ and
$x_0\in U$ and
$Y\subseteq V$ and
$U$ is disjoint from $V$.
\begin{subproof}
Follows by \cref{open_in,topology_on,setminus_elim_left,emptyset_subseteq,emptyset,disjoint}.
\end{subproof}
\caseOf{$Y \neq \emptyset$.}
$x_0\in X$ and $x_0\notin Y$ by \cref{setminus_elim_left,setminus_elim_right}.
Let $A = \{V\in T \mid \text{there exists $y\in Y$ such that there exists $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$V$ is a neighborhood of $y$ in $X$ with respect to $T$ and
$U$ is disjoint from $V$}\}$.
For all $y$ such that $y\in Y$ there exists $V\in A$ such that $y\in V$
by \cref{subseteq,hausdorff,neighborhood,open_in}.
For all $y$ such that $y\in Y$ we have $y\in\unions{A}$ by \cref{unions_iff}.
$A$ is a covering of $Y$ by \cref{subseteq,covering}.
For all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$
by \cref{subseteq,open_in}.
Take $B$ such that
$B\subseteq A$ and $B$ is finite and $B$ is a covering of $Y$
by \cref{subspace_of,compact_subspace_open_covering,subseteq}.
Let $R = \{w\in B\times T \mid \text{there exists $V\in B$ such that there exists $U\in T$ such that
$w = (V,U)$ and
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$U$ is disjoint from $V$}\}$.
For all $w$ such that $w\in R$ there exist $V,U$ such that $w = (V,U)$.
$R$ is a relation by \cref{relation}.
Show that for all $V\in B$ there exists $U$ such that $V\mathrel{R} U$.
\begin{subproof}
Fix $V$ such that $V\in B$.
Take $y,U$ such that $y\in Y$ and
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$V$ is a neighborhood of $y$ in $X$ with respect to $T$ and
$U$ is disjoint from $V$
by \cref{subseteq}.
$U\in T$ by \cref{neighborhood,open_in}.
$(V,U)\in B\times T$ by \cref{times_tuple_intro}.
$(V,U)\in R$ by \cref{times_tuple_intro}.
$V\mathrel{R} U$.
\end{subproof}
Take $g$ such that $g$ is a function on $B$ and for all $V\in B$ we have $V\mathrel{R}\apply{g}{V}$ by \cref{axiom_of_choice}.
Let $G = \img{g}{B}$.
$G\subseteq T$ by \cref{img_iff,function_apply_iff,pair_eq_iff,subseteq}.
$G$ is finite by \cref{finite_image_function}.
Take $y$ such that $y\in Y$ by \cref{nonempty_inhabited}.
Take $V\in B$ such that $y\in V$ by \cref{covering,subseteq,unions_iff}.
$G$ is inhabited by \cref{function_apply_elim,subseteq,img_iff}.
Let $U_0 = \inters{G}$.
$U_0\in T$ by \cref{hausdorff,finite_intersections_open_in_topology}.
For all $U$ such that $U\in G$ there exists $V\in B$ such that $(V,U)\in g$
by \cref{img_iff}.
For all $U$ such that $U\in G$ we have $x_0\in U$
by \cref{function_apply_iff,pair_eq_iff,neighborhood}.
$x_0\in U_0$ by \cref{inters_intro}.
Let $V_0 = \unions{B}$.
$V_0$ is open in $X$ with respect to $T$ by \cref{subseteq,topology_on,open_in}.
$Y\subseteq V_0$ by \cref{covering}.
Show that $U_0$ is disjoint from $V_0$.
\begin{subproof}
Suppose not.
There exists $z$ such that $z\in U_0$ and $z\in V_0$.
Take $W\in B$ such that $z\in W$ by \cref{unions_iff}.
$z\in \apply{g}{W}$ by \cref{function_apply_elim,subseteq,img_iff,inters_subseteq_elem}.
Take $V_1,U_1$ such that $V_1\in B$ and $U_1\in T$ and
$(W,\apply{g}{W}) = (V_1,U_1)$ and
$U_1$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$U_1$ is disjoint from $V_1$
by \cref{subseteq,function_apply_iff}.
$z\notin \apply{g}{W}$ by \cref{pair_eq_iff,disjoint}.
Contradiction.
\end{subproof}
Show that there exist $U,V$ such that
$U$ is open in $X$ with respect to $T$ and
$V$ is open in $X$ with respect to $T$ and
$x_0\in U$ and
$Y\subseteq V$ and
$U$ is disjoint from $V$.
\begin{subproof}
Trivial.
\end{subproof}
\end{byCase}
\end{proof}
Assume $f$ is continuous from $X$ to $Y$ with respect to $T$ and $T_1$.
Assume $X$ is compact with respect to $T$.
Let $A = \img{f}{X}$.
Let $T_A = \subspaceTopology{T_1}{A}$.
Then $A$ is compact with respect to $T_A$.
LaTeX source
\begin{theorem}
\label{continuous_image_compact}
Assume $f$ is continuous from $X$ to $Y$ with respect to $T$ and $T_1$.
Assume $X$ is compact with respect to $T$.
Let $A = \img{f}{X}$.
Let $T_A = \subspaceTopology{T_1}{A}$.
Then $A$ is compact with respect to $T_A$.
\end{theorem}
Proof
$A$ is a subspace of $Y$ with respect to $T_1$ by Definition 55, Definition 147, Definition 160, Proposition 6, Proposition 237, Proposition 284.
It suffices to show that for all $C$ such that $C$ is a covering of $A$ and for all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $U$ is open in $Y$ with respect to $T_1$ there exists $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ and $B$ is finite and $B$ is a covering of $A$ by Lemma 356.
Fix $C$ such that $C$ is a covering of $A$ and for all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $U$ is open in $Y$ with respect to $T_1$.
Let $D = \{W \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in} C. W = \preimg{f}{U}\}$.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $f(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{D}$.
Follows by Axiom 4, Definition 55, Definition 160, Proposition 246, Proposition 348, Proposition 356.
$D$ is a covering of $X$ by Definition 1, Definition 245.
Claim: For all $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ we have $W$ is open in $X$ with respect to $T$.
Fix $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} D$.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $W = \preimg{f}{U}$.
We have $U$ is open in $Y$ with respect to $T_1$.
$\preimg{f}{U}$ is open in $X$ with respect to $T$ by Definition 160.
$W$ is open in $X$ with respect to $T$.
Claim: $D$ is an open covering of $X$ with respect to $T$.
Follows by Definition 246.
Take $E$ such that $E\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} D$ and $E$ is finite and $E$ is a covering of $X$ by Definition 247.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} E\class{latex-symbol-tip latex-symbol-id-times}{\times} C \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} W\class{latex-symbol-tip latex-symbol-id-in}{\in} E.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in} C. w = (W,U) \class{latex-symbol-tip latex-symbol-id-land}{\land} W = \preimg{f}{U}\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ there exist $W,U$ such that $w = (W,U)$.
$R$ is a relation by Definition 12.
Claim: For all $W\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ there exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $W = \preimg{f}{U}$.
Follows by Definition 1.
For all $W\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ there exists $U$ such that $W\mathrel{R} U$.
Take $h$ such that $h$ is a function on $E$ and for all $W\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ we have $W\mathrel{R}\apply{h}{W}$ by Axiom 54.
Let $B = \img{h}{E}$.
$B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Axiom 6, Definition 1, Proposition 235, Proposition 349.
$B$ is finite by Lemma 192.
Claim: 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{B}$.
Fix $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $(x,a)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ by Proposition 235.
We have $a = \apply{f}{x}$ by Definition 160, Proposition 346, Proposition 356.
Take $W\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ by Axiom 4, Definition 1, Definition 245.
Take $W_1,U$ such that $W_1\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ and $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $(W,\apply{h}{W}) = (W_1,U)$ and $W_1 = \preimg{f}{U}$ by Definition 1, Proposition 349.
$\apply{h}{W}\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $W = \preimg{f}{\apply{h}{W}}$ by Axiom 6.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} \preimg{f}{\apply{h}{W}}$.
Take $b$ such that $b\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{h}{W}$ and $(x,b)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ by Proposition 246.
We have $b = \apply{f}{x}$ by Definition 160, Proposition 346, Proposition 356.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{h}{W}$.
$\apply{h}{W}\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 1, Proposition 235, Proposition 348.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{B}$ by Axiom 4.
$B$ is a covering of $A$ by Definition 1, Definition 245.
LaTeX source
\begin{proof}
$A$ is a subspace of $Y$ with respect to $T_1$
by \cref{continuous,funs,rels_ran_subseteq,img_subseteq_ran,subseteq_transitive,subspace_of}.
It suffices to show that for all $C$ such that
$C$ is a covering of $A$ and
for all $U$ such that $U\in C$ we have $U$ is open in $Y$ with respect to $T_1$
there exists $B$ such that
$B\subseteq C$ and
$B$ is finite and
$B$ is a covering of $A$
by \cref{compact_subspace_open_covering}.
Fix $C$ such that
$C$ is a covering of $A$ and
for all $U$ such that $U\in C$ we have $U$ is open in $Y$ with respect to $T_1$.
Let $D = \{W \mid \exists U\in C. W = \preimg{f}{U}\}$.
Show that for all $x$ such that $x\in X$ there exists $U\in C$ such that $f(x)\in U$.
\begin{subproof}
Follows by \cref{continuous,funs_is_function,funs,function_apply_elim,img_iff,covering,subseteq,unions_iff}.
\end{subproof}
Show that for all $x$ such that $x\in X$ we have $x\in\unions{D}$.
\begin{subproof}
Follows by \cref{continuous,funs_is_function,funs,function_apply_elim,preimg_iff,unions_iff}.
\end{subproof}
$D$ is a covering of $X$ by \cref{subseteq,covering}.
Show that for all $W$ such that $W\in D$ we have $W$ is open in $X$ with respect to $T$.
\begin{subproof}
Fix $W$ such that $W\in D$.
Take $U\in C$ such that $W = \preimg{f}{U}$.
We have $U$ is open in $Y$ with respect to $T_1$.
$\preimg{f}{U}$ is open in $X$ with respect to $T$ by \cref{continuous}.
$W$ is open in $X$ with respect to $T$.
\end{subproof}
Show that $D$ is an open covering of $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{open_covering}.
\end{subproof}
Take $E$ such that
$E\subseteq D$ and $E$ is finite and $E$ is a covering of $X$
by \cref{compact}.
Let $R = \{w\in E\times C \mid \exists W\in E.\exists U\in C. w = (W,U) \land W = \preimg{f}{U}\}$.
For all $w$ such that $w\in R$ there exist $W,U$ such that $w = (W,U)$.
$R$ is a relation by \cref{relation}.
Show that for all $W\in E$ there exists $U\in C$ such that $W = \preimg{f}{U}$.
\begin{subproof}
Follows by \cref{subseteq}.
\end{subproof}
For all $W\in E$ there exists $U$ such that $W\mathrel{R} U$.
Take $h$ such that $h$ is a function on $E$ and for all $W\in E$ we have $W\mathrel{R}\apply{h}{W}$ by \cref{axiom_of_choice}.
Let $B = \img{h}{E}$.
$B\subseteq C$ by \cref{img_iff,function_apply_iff,pair_eq_iff,subseteq}.
$B$ is finite by \cref{finite_image_function}.
Show that for all $a$ such that $a\in A$ we have $a\in\unions{B}$.
\begin{subproof}
Fix $a$ such that $a\in A$.
Take $x$ such that $x\in X$ and $(x,a)\in f$ by \cref{img_iff}.
We have $a = \apply{f}{x}$ by \cref{continuous,funs_is_function,function_apply_intro}.
Take $W\in E$ such that $x\in W$ by \cref{covering,subseteq,unions_iff}.
Take $W_1,U$ such that $W_1\in E$ and $U\in C$ and
$(W,\apply{h}{W}) = (W_1,U)$ and
$W_1 = \preimg{f}{U}$
by \cref{subseteq,function_apply_iff}.
$\apply{h}{W}\in C$ and $W = \preimg{f}{\apply{h}{W}}$ by \cref{pair_eq_iff}.
$x\in \preimg{f}{\apply{h}{W}}$.
Take $b$ such that $b\in \apply{h}{W}$ and $(x,b)\in f$ by \cref{preimg_iff}.
We have $b = \apply{f}{x}$ by \cref{continuous,funs_is_function,function_apply_intro}.
$a\in \apply{h}{W}$.
$\apply{h}{W}\in B$ by \cref{function_apply_elim,subseteq,img_iff}.
$a\in\unions{B}$ by \cref{unions_iff}.
\end{subproof}
$B$ is a covering of $A$ by \cref{subseteq,covering}.
\end{proof}
Assume $f$ is a bijection from $X$ to $Y$.
Assume $f$ is continuous from $X$ to $Y$ with respect to $T$ and $T_1$.
Assume $X$ is compact with respect to $T$.
Assume $Y$ is Hausdorff with respect to $T_1$.
Then $f$ is a homeomorphism between $X$ and $Y$ with respect to $T$ and $T_1$.
LaTeX source
\begin{theorem}
\label{compact_hausdorff_bijection_homeomorphism}
Assume $f$ is a bijection from $X$ to $Y$.
Assume $f$ is continuous from $X$ to $Y$ with respect to $T$ and $T_1$.
Assume $X$ is compact with respect to $T$.
Assume $Y$ is Hausdorff with respect to $T_1$.
Then $f$ is a homeomorphism between $X$ and $Y$ with respect to $T$ and $T_1$.
\end{theorem}
Proof
Claim: $T$ is a topology on $X$ and $T_1$ is a topology on $Y$.
Follows by Definition 160.
Claim: For all $A$ such that $A$ is closed in $X$ with respect to $T$ we have $\img{f}{A}$ is closed in $Y$ with respect to $T_1$.
Fix $A$ such that $A$ is closed in $X$ with respect to $T$.
We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $A$ is a subspace of $X$ with respect to $T$ by Definition 147, Definition 149.
Let $T_A = \subspaceTopology{T}{A}$.
$A$ is compact with respect to $T_A$ by Theorem 59.
Let $g = \restrl{f}{A}$.
$g$ is continuous from $A$ to $Y$ with respect to $T_A$ and $T_1$ by Lemma 166.
Let $B = \img{g}{A}$.
$B = \img{f}{A}$ by Definition 1, Definition 55, Definition 147, Proposition 67 [Idempotence of intersection], Proposition 273, Proposition 389.
Let $T_B = \subspaceTopology{T_1}{B}$.
$B$ is compact with respect to $T_B$ by Theorem 61.
$B$ is closed in $Y$ with respect to $T_1$ by Definition 55, Proposition 6, Proposition 237, Proposition 284, Proposition 389, Theorem 60.
$\img{f}{A}$ is closed in $Y$ with respect to $T_1$.
$f$ is a closed map from $X$ to $Y$ with respect to $T$ and $T_1$ by Definition 220, Proposition 389.
$\converse{f}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{Y}{X}$ by Proposition 396.
Claim: For all $C$ such that $C$ is closed in $X$ with respect to $T$ we have $\preimg{\converse{f}}{C}$ is closed in $Y$ with respect to $T_1$.
$\converse{f}$ is continuous from $Y$ to $X$ with respect to $T_1$ and $T$ by Lemma 160.
$f$ is a homeomorphism between $X$ and $Y$ with respect to $T$ and $T_1$ by Definition 162.
LaTeX source
\begin{proof}
Show that $T$ is a topology on $X$ and $T_1$ is a topology on $Y$.
\begin{subproof}
Follows by \cref{continuous}.
\end{subproof}
Show that for all $A$ such that $A$ is closed in $X$ with respect to $T$
we have $\img{f}{A}$ is closed in $Y$ with respect to $T_1$.
\begin{subproof}
Fix $A$ such that $A$ is closed in $X$ with respect to $T$.
We have $A\subseteq X$ and $A$ is a subspace of $X$ with respect to $T$
by \cref{closed_in,subspace_of}.
Let $T_A = \subspaceTopology{T}{A}$.
$A$ is compact with respect to $T_A$ by \cref{closed_subspace_compact}.
Let $g = \restrl{f}{A}$.
$g$ is continuous from $A$ to $Y$ with respect to $T_A$ and $T_1$
by \cref{continuous_restrict_domain}.
Let $B = \img{g}{A}$.
$B = \img{f}{A}$ by \cref{bijections_to_funs,subspace_of,subseteq,funs,restrl_img,inter_idempotent}.
Let $T_B = \subspaceTopology{T_1}{B}$.
$B$ is compact with respect to $T_B$ by \cref{continuous_image_compact}.
$B$ is closed in $Y$ with respect to $T_1$ by \cref{bijections_to_funs,funs,rels_ran_subseteq,img_subseteq_ran,subseteq_transitive,compact_subspace_closed}.
$\img{f}{A}$ is closed in $Y$ with respect to $T_1$.
\end{subproof}
$f$ is a closed map from $X$ to $Y$ with respect to $T$ and $T_1$ by \cref{bijections_to_funs,closed_map}.
$\converse{f}\in\funs{Y}{X}$ by \cref{bijective_converse_are_funs}.
Show that for all $C$ such that $C$ is closed in $X$ with respect to $T$
we have $\preimg{\converse{f}}{C}$ is closed in $Y$ with respect to $T_1$.
\begin{subproof}
Follows by \cref{closed_map,bijective_converse_are_funs,funs_is_relation,bijections_to_funs,preim_eq_img_of_converse,converse_converse_eq}.
\end{subproof}
$\converse{f}$ is continuous from $Y$ to $X$ with respect to $T_1$ and $T$
by \cref{preimg_closed_implies_continuous}.
$f$ is a homeomorphism between $X$ and $Y$ with respect to $T$ and $T_1$
by \cref{homeomorphism}.
\end{proof}
Assume $T$ is a topology on $X$.
Assume $T_1$ is a topology on $Y$.
Assume $Y$ is compact with respect to $T_1$.
Assume $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $T_2 = \productTopology{T}{T_1}{X}{Y}$.
Let $S = \{x_0\}\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$.
Let $T_S = \subspaceTopology{T_2}{S}$.
Then $S$ is compact with respect to $T_S$.
LaTeX source
\begin{lemma}
\label{slice_compact}
Assume $T$ is a topology on $X$.
Assume $T_1$ is a topology on $Y$.
Assume $Y$ is compact with respect to $T_1$.
Assume $x_0\in X$.
Let $T_2 = \productTopology{T}{T_1}{X}{Y}$.
Let $S = \{x_0\}\times Y$.
Let $T_S = \subspaceTopology{T_2}{S}$.
Then $S$ is compact with respect to $T_S$.
\end{lemma}
Proof
Let $f_1 = \{(y,x_0) \mid y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\}$.
Claim: $f_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{Y}{X}$ and for all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $f_1(y) = x_0$.
Follows by Lemma 309, Proposition 346, Proposition 356.
$f_1$ is continuous from $Y$ to $X$ with respect to $T_1$ and $T$ by Lemma 163.
Let $f_2 = \identity{Y}$.
$f_2$ is continuous from $Y$ to $Y$ with respect to $T_1$ and $T_1$ by Lemma 308.
Claim: $f_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{Y}{Y}$ and for all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ we have $f_2(y) = y$.
Follows by Proposition 293, Proposition 346, Proposition 356, Proposition 406.
Let $k = \{(y,(f_1(y),f_2(y))) \mid y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\}$.
$k$ is continuous from $Y$ to $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_1$ and $T_2$ by Lemma 174.
Let $S_0 = \img{k}{Y}$.
$S_0$ is compact with respect to $\subspaceTopology{T_2}{S_0}$ by Theorem 61.
Claim: For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} S_0$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.
Follows by Axiom 6, Proposition 22, Proposition 115, Proposition 235.
Claim: For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in} S_0$.
Follows by Proposition 22, Proposition 121, Proposition 235.
Claim: $S_0 = S$.
Follows by Axiom 1 [Set extensionality].
$S$ is compact with respect to $T_S$.
LaTeX source
\begin{proof}
Let $f_1 = \{(y,x_0) \mid y\in Y\}$.
Show that $f_1\in\funs{Y}{X}$ and for all $y$ such that $y\in Y$ we have $f_1(y) = x_0$.
\begin{subproof}
Follows by \cref{constant_map_function,funs_is_function,function_apply_intro}.
\end{subproof}
$f_1$ is continuous from $Y$ to $X$ with respect to $T_1$ and $T$
by \cref{constant_continuous}.
Let $f_2 = \identity{Y}$.
$f_2$ is continuous from $Y$ to $Y$ with respect to $T_1$ and $T_1$
by \cref{identity_continuous}.
Show that $f_2\in\funs{Y}{Y}$ and for all $y$ such that $y\in Y$ we have $f_2(y) = y$.
\begin{subproof}
Follows by \cref{id_iff,id_elem_funs,funs_is_function,function_apply_intro}.
\end{subproof}
Let $k = \{(y,(f_1(y),f_2(y))) \mid y\in Y\}$.
$k$ is continuous from $Y$ to $X\times Y$ with respect to $T_1$ and $T_2$
by \cref{continuous_map_into_product_backward}.
Let $S_0 = \img{k}{Y}$.
$S_0$ is compact with respect to $\subspaceTopology{T_2}{S_0}$ by \cref{continuous_image_compact}.
Show that for all $p$ such that $p\in S_0$ we have $p\in S$.
\begin{subproof}
Follows by \cref{img_iff,pair_eq_iff,singleton_iff,times_tuple_intro}.
\end{subproof}
Show that for all $p$ such that $p\in S$ we have $p\in S_0$.
\begin{subproof}
Follows by \cref{times_elem_is_tuple,singleton_iff,img_iff}.
\end{subproof}
Show that $S_0 = S$.
\begin{subproof}
Follows by \cref{setext}.
\end{subproof}
$S$ is compact with respect to $T_S$.
\end{proof}
Assume $T$ is a topology on $X$.
Assume $T_1$ is a topology on $Y$.
Assume $Y$ is compact with respect to $T_1$.
Let $T_2 = \productTopology{T}{T_1}{X}{Y}$.
Assume $N$ is open in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$.
Assume $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $\{x_0\}\class{latex-symbol-tip latex-symbol-id-times}{\times} Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$.
Then there exists $W$ such that $W$ is open in $X$ with respect to $T$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ and $W\class{latex-symbol-tip latex-symbol-id-times}{\times} Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$.
LaTeX source
\begin{lemma}
\label{tube_lemma_helper}
Assume $T$ is a topology on $X$.
Assume $T_1$ is a topology on $Y$.
Assume $Y$ is compact with respect to $T_1$.
Let $T_2 = \productTopology{T}{T_1}{X}{Y}$.
Assume $N$ is open in $X\times Y$ with respect to $T_2$.
Assume $x_0\in X$.
Suppose $\{x_0\}\times Y\subseteq N$.
Then there exists $W$ such that
$W$ is open in $X$ with respect to $T$ and
$x_0\in W$ and
$W\times Y\subseteq N$.
\end{lemma}
Proof
Let $S = \{x_0\}\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$.
Let $T_S = \subspaceTopology{T_2}{S}$.
Let $W = X$.
We have $W$ is open in $X$ with respect to $T$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ and $W\class{latex-symbol-tip latex-symbol-id-times}{\times} Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$ by Definition 101, Definition 103, Proposition 2, Proposition 11, Proposition 117.
Take $y_0$ such that $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 10.
We have $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\{x_0\}$ by Proposition 22.
$(x_0,y_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ and $S$ is inhabited by Proposition 115.
$S$ is compact with respect to $T_S$ by Lemma 358.
Let $B = \productBasis{T}{T_1}{X}{Y}$.
$B$ is a basis on $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Lemma 126.
$T_2$ is a topology on $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Definition 141, Lemma 76.
For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 22, Proposition 115, Proposition 121.
$S$ is a subspace of $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$ by Definition 1, Definition 147.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} S\class{latex-symbol-tip latex-symbol-id-times}{\times} B \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} p\class{latex-symbol-tip latex-symbol-id-in}{\in} S.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B. w = (p,B_1) \class{latex-symbol-tip latex-symbol-id-land}{\land} p\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1 \class{latex-symbol-tip latex-symbol-id-land}{\land} B_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ there exist $p,B_1$ such that $w = (p,B_1)$.
Claim: $R$ is a relation and for all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in} N$.
Follows by Definition 1, Definition 12.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ there exists $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ and $B_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$ by Definition 103, Definition 114, Definition 141.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ there exists $B_1$ such that $p\mathrel{R} B_1$.
Take $g$ such that $g$ is a function on $S$ and for all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $p\mathrel{R}\apply{g}{p}$ by Axiom 54.
Let $C = \img{g}{S}$.
Claim: For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{C}$.
Follows by Axiom 4, Axiom 6, Proposition 235, Proposition 348, Proposition 349.
$C$ is a covering of $S$ by Definition 1, Definition 245.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $U$ is open in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$.
Follows by Axiom 6, Definition 103, Definition 141, Lemma 77, Proposition 235, Proposition 349.
Take $F$ such that $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ and $F$ is finite and $F$ is a covering of $S$ by Lemma 356.
Let $R_1 = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} F\class{latex-symbol-tip latex-symbol-id-times}{\times} T \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} E\class{latex-symbol-tip latex-symbol-id-in}{\in} F.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in} T.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} V\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1. w = (E,U) \class{latex-symbol-tip latex-symbol-id-land}{\land} E = U\class{latex-symbol-tip latex-symbol-id-times}{\times} V\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R_1$ there exist $E,U$ such that $w = (E,U)$.
$R_1$ is a relation by Definition 12.
Claim: For all $E$ such that $E\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $E\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Fix $E$ such that $E\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
We have $E\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Definition 1.
Take $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ and $(p,E)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Proposition 235.
$E = \apply{g}{p}$ by Proposition 349.
$p\mathrel{R} E$.
$(p,E)\class{latex-symbol-tip latex-symbol-id-in}{\in} S\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ by Definition 1.
$E\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Proposition 114.
Claim: For all $E\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that there exists $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ such that $E = U\class{latex-symbol-tip latex-symbol-id-times}{\times} V$.
Follows by Definition 140.
Claim: For all $E\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $U$ such that $E\mathrel{R_1} U$.
Trivial.
Take $h$ such that $h$ is a function on $F$ and for all $E\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $E\mathrel{R_1}\apply{h}{E}$ by Axiom 54.
Let $G = \img{h}{F}$.
$G$ is finite by Lemma 192.
Take $p_0$ such that $p_0\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Proposition 10.
Take $E\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $p_0\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ by Axiom 4, Definition 1, Definition 245.
$G$ is inhabited by Proposition 235, Proposition 348.
$G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Axiom 6, Definition 1, Proposition 235, Proposition 349.
Let $W = \inters{G}$.
$W$ is open in $X$ with respect to $T$ by Definition 103, Lemma 124.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ there exists $E\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $(E,U)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$.
Follows by Proposition 235.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Follows by Axiom 6, Definition 1, Proposition 22, Proposition 114, Proposition 121, Proposition 235, Proposition 349.
$x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ by Proposition 31.
Claim: For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} W\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in} N$.
Fix $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} W\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$.
Take $x,y$ such that $p = (x,y)$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 121.
$(x_0,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Proposition 115.
Take $E_0\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $(x_0,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} E_0$ by Axiom 4, Definition 1, Definition 245.
Take $E_1,U_1,V_1$ such that $E_1\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ and $V_1\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ and $(E_0,\apply{h}{E_0}) = (E_1,U_1)$ and $E_1 = U_1\class{latex-symbol-tip latex-symbol-id-times}{\times} V_1$ by Proposition 349.
$E_0 = E_1$ and $\apply{h}{E_0} = U_1$ by Axiom 6.
We have $E_0 = U_1\class{latex-symbol-tip latex-symbol-id-times}{\times} V_1$.
$(x_0,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1\class{latex-symbol-tip latex-symbol-id-times}{\times} V_1$.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} V_1$ by Proposition 114.
We have $(E_0,\apply{h}{E_0})\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ and $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ by Axiom 6, Proposition 235, Proposition 348.
$W\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U_1$ by Proposition 35.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1\class{latex-symbol-tip latex-symbol-id-times}{\times} V_1$ by Definition 1, Proposition 115.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} E_0$ and $E_0\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Definition 1.
Take $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ such that $(p_2,E_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Proposition 235.
Take $p_1,B_1$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ and $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $(p_2,E_0) = (p_1,B_1)$ and $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ and $B_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$ by Proposition 349.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} N$ by Axiom 6, Definition 1.
$W\class{latex-symbol-tip latex-symbol-id-times}{\times} Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$ by Definition 1.
$W$ is open in $X$ with respect to $T$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ and $W\class{latex-symbol-tip latex-symbol-id-times}{\times} Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$.
LaTeX source
\begin{byCase}
\caseOf{$Y = \emptyset$.}
Let $W = X$.
We have $W$ is open in $X$ with respect to $T$ and
$x_0\in W$ and
$W\times Y\subseteq N$
by \cref{open_in,topology_on,subseteq_refl,times_empty_right,emptyset_subseteq}.
\caseOf{$Y\neq\emptyset$.}
Take $y_0$ such that $y_0\in Y$ by \cref{nonempty_inhabited}.
We have $x_0\in\{x_0\}$ by \cref{singleton_iff}.
$(x_0,y_0)\in S$ and $S$ is inhabited by \cref{times_tuple_intro}.
$S$ is compact with respect to $T_S$ by \cref{slice_compact}.
Let $B = \productBasis{T}{T_1}{X}{Y}$.
$B$ is a basis on $X\times Y$ by \cref{product_basis_is_basis}.
$T_2$ is a topology on $X\times Y$ by \cref{basis_topology_is_topology,product_topology}.
For all $p$ such that $p\in S$ we have $p\in X\times Y$
by \cref{times_elem_is_tuple,singleton_iff,times_tuple_intro}.
$S$ is a subspace of $X\times Y$ with respect to $T_2$ by \cref{subseteq,subspace_of}.
Let $R = \{w\in S\times B \mid \exists p\in S.\exists B_1\in B. w = (p,B_1) \land p\in B_1 \land B_1\subseteq N\}$.
For all $w$ such that $w\in R$ there exist $p,B_1$ such that $w = (p,B_1)$.
Show that $R$ is a relation and for all $p$ such that $p\in S$ we have $p\in N$.
\begin{subproof}
Follows by \cref{relation,subseteq}.
\end{subproof}
For all $p\in S$ there exists $B_1\in B$ such that $p\in B_1$ and $B_1\subseteq N$
by \cref{open_in,product_topology,topology_generated_by_basis}.
For all $p\in S$ there exists $B_1$ such that $p\mathrel{R} B_1$.
Take $g$ such that $g$ is a function on $S$ and for all $p\in S$ we have $p\mathrel{R}\apply{g}{p}$
by \cref{axiom_of_choice}.
Let $C = \img{g}{S}$.
Show that for all $p$ such that $p\in S$ we have $p\in\unions{C}$.
\begin{subproof}
Follows by \cref{function_apply_iff,pair_eq_iff,function_apply_elim,img_iff,unions_iff}.
\end{subproof}
$C$ is a covering of $S$ by \cref{subseteq,covering}.
Show that for all $U$ such that $U\in C$ we have $U$ is open in $X\times Y$ with respect to $T_2$.
\begin{subproof}
Follows by \cref{img_iff,function_apply_iff,pair_eq_iff,basis_elem_open_in_generated,product_topology,open_in}.
\end{subproof}
Take $F$ such that
$F\subseteq C$ and $F$ is finite and $F$ is a covering of $S$
by \cref{compact_subspace_open_covering}.
Let $R_1 = \{w\in F\times T \mid \exists E\in F.\exists U\in T.\exists V\in T_1. w = (E,U) \land E = U\times V\}$.
For all $w$ such that $w\in R_1$ there exist $E,U$ such that $w = (E,U)$.
$R_1$ is a relation by \cref{relation}.
Show that for all $E$ such that $E\in F$ we have $E\in B$.
\begin{subproof}
Fix $E$ such that $E\in F$.
We have $E\in C$ by \cref{subseteq}.
Take $p$ such that $p\in S$ and $(p,E)\in g$ by \cref{img_iff}.
$E = \apply{g}{p}$ by \cref{function_apply_iff}.
$p\mathrel{R} E$.
$(p,E)\in S\times B$ by \cref{subseteq}.
$E\in B$ by \cref{times_tuple_elim}.
\end{subproof}
Show that for all $E\in F$ there exists $U\in T$ such that there exists $V\in T_1$ such that $E = U\times V$.
\begin{subproof}
Follows by \cref{product_basis}.
\end{subproof}
Show that for all $E\in F$ there exists $U$ such that $E\mathrel{R_1} U$.
\begin{subproof}
Trivial.
\end{subproof}
Take $h$ such that $h$ is a function on $F$ and for all $E\in F$ we have $E\mathrel{R_1}\apply{h}{E}$
by \cref{axiom_of_choice}.
Let $G = \img{h}{F}$.
$G$ is finite by \cref{finite_image_function}.
Take $p_0$ such that $p_0\in S$ by \cref{nonempty_inhabited}.
Take $E\in F$ such that $p_0\in E$ by \cref{covering,subseteq,unions_iff}.
$G$ is inhabited by \cref{function_apply_elim,img_iff}.
$G\subseteq T$ by \cref{img_iff,function_apply_iff,pair_eq_iff,subseteq}.
Let $W = \inters{G}$.
$W$ is open in $X$ with respect to $T$ by \cref{finite_intersections_open_in_topology,open_in}.
Show that for all $U$ such that $U\in G$ there exists $E\in F$ such that $(E,U)\in h$.
\begin{subproof}
Follows by \cref{img_iff}.
\end{subproof}
Show that for all $U$ such that $U\in G$ we have $x_0\in U$.
\begin{subproof}
Follows by \cref{function_apply_iff,subseteq,img_iff,pair_eq_iff,times_elem_is_tuple,singleton_iff,times_tuple_elim}.
\end{subproof}
$x_0\in W$ by \cref{inters_intro}.
Show that for all $p$ such that $p\in W\times Y$ we have $p\in N$.
\begin{subproof}
Fix $p$ such that $p\in W\times Y$.
Take $x,y$ such that $p = (x,y)$ and $x\in W$ and $y\in Y$
by \cref{times_elem_is_tuple}.
$(x_0,y)\in S$ by \cref{times_tuple_intro}.
Take $E_0\in F$ such that $(x_0,y)\in E_0$ by \cref{covering,subseteq,unions_iff}.
Take $E_1,U_1,V_1$ such that $E_1\in F$ and $U_1\in T$ and $V_1\in T_1$ and
$(E_0,\apply{h}{E_0}) = (E_1,U_1)$ and $E_1 = U_1\times V_1$
by \cref{function_apply_iff}.
$E_0 = E_1$ and $\apply{h}{E_0} = U_1$ by \cref{pair_eq_iff}.
We have $E_0 = U_1\times V_1$.
$(x_0,y)\in U_1\times V_1$.
$y\in V_1$ by \cref{times_tuple_elim}.
We have $(E_0,\apply{h}{E_0})\in h$ and $U_1\in G$ by \cref{function_apply_elim,img_iff,pair_eq_iff}.
$W\subseteq U_1$ by \cref{inters_subseteq_elem}.
$p\in U_1\times V_1$ by \cref{subseteq,times_tuple_intro}.
$p\in E_0$ and $E_0\in C$ by \cref{subseteq}.
Take $p_2\in S$ such that $(p_2,E_0)\in g$ by \cref{img_iff}.
Take $p_1,B_1$ such that $p_1\in S$ and $B_1\in B$ and
$(p_2,E_0) = (p_1,B_1)$ and $p_1\in B_1$ and $B_1\subseteq N$
by \cref{function_apply_iff}.
$p\in N$ by \cref{pair_eq_iff,subseteq}.
\end{subproof}
$W\times Y\subseteq N$ by \cref{subseteq}.
$W$ is open in $X$ with respect to $T$ and
$x_0\in W$ and
$W\times Y\subseteq N$.
\end{byCase}
LaTeX source
\begin{proof}
Let $S = \{x_0\}\times Y$.
Let $T_S = \subspaceTopology{T_2}{S}$.
\begin{byCase}
\caseOf{$Y = \emptyset$.}
Let $W = X$.
We have $W$ is open in $X$ with respect to $T$ and
$x_0\in W$ and
$W\times Y\subseteq N$
by \cref{open_in,topology_on,subseteq_refl,times_empty_right,emptyset_subseteq}.
\caseOf{$Y\neq\emptyset$.}
Take $y_0$ such that $y_0\in Y$ by \cref{nonempty_inhabited}.
We have $x_0\in\{x_0\}$ by \cref{singleton_iff}.
$(x_0,y_0)\in S$ and $S$ is inhabited by \cref{times_tuple_intro}.
$S$ is compact with respect to $T_S$ by \cref{slice_compact}.
Let $B = \productBasis{T}{T_1}{X}{Y}$.
$B$ is a basis on $X\times Y$ by \cref{product_basis_is_basis}.
$T_2$ is a topology on $X\times Y$ by \cref{basis_topology_is_topology,product_topology}.
For all $p$ such that $p\in S$ we have $p\in X\times Y$
by \cref{times_elem_is_tuple,singleton_iff,times_tuple_intro}.
$S$ is a subspace of $X\times Y$ with respect to $T_2$ by \cref{subseteq,subspace_of}.
Let $R = \{w\in S\times B \mid \exists p\in S.\exists B_1\in B. w = (p,B_1) \land p\in B_1 \land B_1\subseteq N\}$.
For all $w$ such that $w\in R$ there exist $p,B_1$ such that $w = (p,B_1)$.
Show that $R$ is a relation and for all $p$ such that $p\in S$ we have $p\in N$.
\begin{subproof}
Follows by \cref{relation,subseteq}.
\end{subproof}
For all $p\in S$ there exists $B_1\in B$ such that $p\in B_1$ and $B_1\subseteq N$
by \cref{open_in,product_topology,topology_generated_by_basis}.
For all $p\in S$ there exists $B_1$ such that $p\mathrel{R} B_1$.
Take $g$ such that $g$ is a function on $S$ and for all $p\in S$ we have $p\mathrel{R}\apply{g}{p}$
by \cref{axiom_of_choice}.
Let $C = \img{g}{S}$.
Show that for all $p$ such that $p\in S$ we have $p\in\unions{C}$.
\begin{subproof}
Follows by \cref{function_apply_iff,pair_eq_iff,function_apply_elim,img_iff,unions_iff}.
\end{subproof}
$C$ is a covering of $S$ by \cref{subseteq,covering}.
Show that for all $U$ such that $U\in C$ we have $U$ is open in $X\times Y$ with respect to $T_2$.
\begin{subproof}
Follows by \cref{img_iff,function_apply_iff,pair_eq_iff,basis_elem_open_in_generated,product_topology,open_in}.
\end{subproof}
Take $F$ such that
$F\subseteq C$ and $F$ is finite and $F$ is a covering of $S$
by \cref{compact_subspace_open_covering}.
Let $R_1 = \{w\in F\times T \mid \exists E\in F.\exists U\in T.\exists V\in T_1. w = (E,U) \land E = U\times V\}$.
For all $w$ such that $w\in R_1$ there exist $E,U$ such that $w = (E,U)$.
$R_1$ is a relation by \cref{relation}.
Show that for all $E$ such that $E\in F$ we have $E\in B$.
\begin{subproof}
Fix $E$ such that $E\in F$.
We have $E\in C$ by \cref{subseteq}.
Take $p$ such that $p\in S$ and $(p,E)\in g$ by \cref{img_iff}.
$E = \apply{g}{p}$ by \cref{function_apply_iff}.
$p\mathrel{R} E$.
$(p,E)\in S\times B$ by \cref{subseteq}.
$E\in B$ by \cref{times_tuple_elim}.
\end{subproof}
Show that for all $E\in F$ there exists $U\in T$ such that there exists $V\in T_1$ such that $E = U\times V$.
\begin{subproof}
Follows by \cref{product_basis}.
\end{subproof}
Show that for all $E\in F$ there exists $U$ such that $E\mathrel{R_1} U$.
\begin{subproof}
Trivial.
\end{subproof}
Take $h$ such that $h$ is a function on $F$ and for all $E\in F$ we have $E\mathrel{R_1}\apply{h}{E}$
by \cref{axiom_of_choice}.
Let $G = \img{h}{F}$.
$G$ is finite by \cref{finite_image_function}.
Take $p_0$ such that $p_0\in S$ by \cref{nonempty_inhabited}.
Take $E\in F$ such that $p_0\in E$ by \cref{covering,subseteq,unions_iff}.
$G$ is inhabited by \cref{function_apply_elim,img_iff}.
$G\subseteq T$ by \cref{img_iff,function_apply_iff,pair_eq_iff,subseteq}.
Let $W = \inters{G}$.
$W$ is open in $X$ with respect to $T$ by \cref{finite_intersections_open_in_topology,open_in}.
Show that for all $U$ such that $U\in G$ there exists $E\in F$ such that $(E,U)\in h$.
\begin{subproof}
Follows by \cref{img_iff}.
\end{subproof}
Show that for all $U$ such that $U\in G$ we have $x_0\in U$.
\begin{subproof}
Follows by \cref{function_apply_iff,subseteq,img_iff,pair_eq_iff,times_elem_is_tuple,singleton_iff,times_tuple_elim}.
\end{subproof}
$x_0\in W$ by \cref{inters_intro}.
Show that for all $p$ such that $p\in W\times Y$ we have $p\in N$.
\begin{subproof}
Fix $p$ such that $p\in W\times Y$.
Take $x,y$ such that $p = (x,y)$ and $x\in W$ and $y\in Y$
by \cref{times_elem_is_tuple}.
$(x_0,y)\in S$ by \cref{times_tuple_intro}.
Take $E_0\in F$ such that $(x_0,y)\in E_0$ by \cref{covering,subseteq,unions_iff}.
Take $E_1,U_1,V_1$ such that $E_1\in F$ and $U_1\in T$ and $V_1\in T_1$ and
$(E_0,\apply{h}{E_0}) = (E_1,U_1)$ and $E_1 = U_1\times V_1$
by \cref{function_apply_iff}.
$E_0 = E_1$ and $\apply{h}{E_0} = U_1$ by \cref{pair_eq_iff}.
We have $E_0 = U_1\times V_1$.
$(x_0,y)\in U_1\times V_1$.
$y\in V_1$ by \cref{times_tuple_elim}.
We have $(E_0,\apply{h}{E_0})\in h$ and $U_1\in G$ by \cref{function_apply_elim,img_iff,pair_eq_iff}.
$W\subseteq U_1$ by \cref{inters_subseteq_elem}.
$p\in U_1\times V_1$ by \cref{subseteq,times_tuple_intro}.
$p\in E_0$ and $E_0\in C$ by \cref{subseteq}.
Take $p_2\in S$ such that $(p_2,E_0)\in g$ by \cref{img_iff}.
Take $p_1,B_1$ such that $p_1\in S$ and $B_1\in B$ and
$(p_2,E_0) = (p_1,B_1)$ and $p_1\in B_1$ and $B_1\subseteq N$
by \cref{function_apply_iff}.
$p\in N$ by \cref{pair_eq_iff,subseteq}.
\end{subproof}
$W\times Y\subseteq N$ by \cref{subseteq}.
$W$ is open in $X$ with respect to $T$ and
$x_0\in W$ and
$W\times Y\subseteq N$.
\end{byCase}
\end{proof}
Suppose $F$ is finite.
Suppose for all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $A$ is finite.
Then $\unions{F}$ is finite.
LaTeX source
\begin{lemma}
\label{finite_union_of_finite_family}
Suppose $F$ is finite.
Suppose for all $A$ such that $A\in F$ we have $A$ is finite.
Then $\unions{F}$ is finite.
\end{lemma}
Proof
$\unions{F} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Proposition 28.
$\unions{F}$ is finite by Lemma 35.
Take $F_0$ such that $F_0\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Proposition 10.
Take $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that there exists a bijection from $\initialSegment{k}$ to $F$ by Definition 89.
Take $f$ such that $f$ is a bijection from $\initialSegment{k}$ to $F$.
Let $A = \{ n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{for all $G,g$ such that $g$ is a bijection from $\initialSegment{n}$ to $G$ and for all $B\in G$ we have $B$ is finite we have $\unions{G}$ is finite} \}$.
Claim: For all $G,g$ such that $g$ is a bijection from $\initialSegment{1}$ to $G$ and for all $B\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $B$ is finite we have $\unions{G}$ is finite.
Fix $G$.
Fix $g$ such that $g$ is a bijection from $\initialSegment{1}$ to $G$ and for all $B\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $B$ is finite.
$g$ is a function by Proposition 390.
$\dom{g} = \initialSegment{1}$ by Proposition 391.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ by Lemma 119, Proposition 20.
Let $a = g(1)$.
$(1,a)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Proposition 348.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in}\surj{\initialSegment{1}}{G}$ by Definition 58.
$\ran{g} = G$ by Corollary 7.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ by Proposition 208.
$a$ is finite.
Claim: For all $z\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\{a\}$.
Fix $z\class{latex-symbol-tip latex-symbol-id-in}{\in} G$.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{1}$ such that $g(x)=z$ by Definition 57, Definition 58.
$x = 1$ by Lemma 119, Proposition 22.
$a = z$.
Thus $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\{a\}$ by Proposition 22.
$G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\{a\}$ by Definition 1.
$\{a\}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} G$ by Proposition 25.
$G = \{a\}$ by Proposition 3.
$G = \cons{a}{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}}$.
$\unions{G} = a\union\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Proposition 28, Proposition 56.
$\unions{G} = a$ by Proposition 49.
$\unions{G}$ is finite.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Claim: For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $n + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Fix $n\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
For all $G,g$ such that $g$ is a bijection from $\initialSegment{n}$ to $G$ and for all $B\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $B$ is finite we have $\unions{G}$ is finite.
Claim: For all $G,g$ such that $g$ is a bijection from $\initialSegment{n + 1}$ to $G$ and for all $B\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $B$ is finite we have $\unions{G}$ is finite.
Fix $G$.
Fix $g$ such that $g$ is a bijection from $\initialSegment{n + 1}$ to $G$ and for all $B\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $B$ is finite.
$g$ is a function by Proposition 390.
$\dom{g} = \initialSegment{n + 1}$ by Proposition 391.
$n + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ by Axiom 45, Definition 84.
Let $a = g(n + 1)$.
Let $G_1 = \img{g}{\initialSegment{n}}$.
$\initialSegment{n}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \initialSegment{n + 1}$ by Lemma 121.
$G_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} G$ by Definition 58, Proposition 236, Proposition 238, Proposition 391, Corollary 7.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in}\surj{\initialSegment{n + 1}}{G}$ by Definition 58.
$\ran{g} = G$ by Corollary 7.
$(n + 1,a)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Proposition 348.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ by Definition 58, Proposition 208, Proposition 348, Corollary 7.
$a$ is finite.
Claim: For all $z\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $z\class{latex-symbol-tip latex-symbol-id-in}{\in} G_1\union\{a\}$.
Fix $z\class{latex-symbol-tip latex-symbol-id-in}{\in} G$.
There exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n + 1}$ such that $g(x)=z$ by Definition 57, Definition 58.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ or $x = n + 1$ by Lemma 122.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in} G_1\union\{a\}$ by Proposition 38, Proposition 235, Proposition 348.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in} G_1\union\{a\}$ by Proposition 20, Proposition 39, Proposition 348.
LaTeX source
\begin{byCase}
\caseOf{$x\in\initialSegment{n}$.}
$z\in G_1\union\{a\}$ by \cref{function_apply_elim,img_iff,union_intro_left}.
\caseOf{$x = n + 1$.}
$z\in G_1\union\{a\}$ by \cref{function_apply_elim,union_intro_right,singleton_intro}.
\end{byCase}
Thus $G = G_1\union\{a\}$ by Definition 1, Proposition 3, Proposition 25, Proposition 44.
Claim: For all $B$ such that $B\class{latex-symbol-tip latex-symbol-id-in}{\in} G_1$ we have $B\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ and $B$ is finite.
Follows by Definition 1.
Let $h = \restrl{g}{\initialSegment{n}}$.
$h$ is a function by Proposition 383.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ by Definition 1, Lemma 121, Proposition 391.
$\dom{h} = \initialSegment{n}$ by Definition 1, Proposition 70, Corollary 3.
$h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{G_1}$ by Proposition 4, Proposition 235, Proposition 263, Proposition 348, Proposition 358.
For all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} G_1$ there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ such that $h(x) = y$ by Proposition 235, Proposition 349, Proposition 384.
$h\class{latex-symbol-tip latex-symbol-id-in}{\in}\surj{\initialSegment{n}}{G_1}$ by Definition 57.
For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $h(x) = h(y)$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$.
For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $h(x) = h(y)$ we have $h(x) = g(x)$ and $h(y) = g(y)$ by Proposition 384.
For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $h(x) = h(y)$ we have $g(x) = g(y)$.
For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $h(x) = h(y)$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ by Definition 1.
For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ and $h(x) = h(y)$ we have $x = y$ by Definition 58, Proposition 386.
$h$ is injective by Proposition 386.
$h$ is a bijection from $\initialSegment{n}$ to $G_1$ by Definition 58.
$\unions{G_1}$ is finite.
$a$ is finite.
$\unions{G} = a\union\unions{G_1}$ by Proposition 41 [Commutativity of union], Proposition 56, Proposition 132.
$\unions{G}$ is finite by Lemma 45.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 445.
For all $G,g$ such that $g$ is a bijection from $\initialSegment{k}$ to $G$ and for all $B\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $B$ is finite we have $\unions{G}$ is finite.
$\unions{F}$ is finite.
LaTeX source
\begin{byCase}
\caseOf{$F = \emptyset$.}
$\unions{F} = \emptyset$ by \cref{unions_emptyset}.
$\unions{F}$ is finite by \cref{emptyset_is_finite}.
\caseOf{$F \neq \emptyset$.}
Take $F_0$ such that $F_0\in F$ by \cref{nonempty_inhabited}.
Take $k\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{k}$ to $F$ by \cref{finite}.
Take $f$ such that $f$ is a bijection from $\initialSegment{k}$ to $F$.
Let $A = \{ n\in\naturalsPlus \mid \text{for all $G,g$ such that $g$ is a bijection from $\initialSegment{n}$ to $G$ and for all $B\in G$ we have $B$ is finite we have $\unions{G}$ is finite} \}$.
Show that for all $G,g$ such that $g$ is a bijection from $\initialSegment{1}$ to $G$ and
for all $B\in G$ we have $B$ is finite we have $\unions{G}$ is finite.
\begin{subproof}
Fix $G$.
Fix $g$ such that $g$ is a bijection from $\initialSegment{1}$ to $G$ and for all $B\in G$ we have $B$ is finite.
$g$ is a function by \cref{bijection_is_function}.
$\dom{g} = \initialSegment{1}$ by \cref{bijections_dom}.
$1\in\dom{g}$ by \cref{initial_segment_one,singleton_intro}.
Let $a = g(1)$.
$(1,a)\in g$ by \cref{function_apply_elim}.
$g\in\surj{\initialSegment{1}}{G}$ by \cref{bijections}.
$\ran{g} = G$ by \cref{ran_of_surj}.
$a\in G$ by \cref{ran_iff}.
$a$ is finite.
Show that for all $z\in G$ we have $z\in\{a\}$.
\begin{subproof}
Fix $z\in G$.
Take $x\in\initialSegment{1}$ such that $g(x)=z$ by \cref{bijections,surj}.
$x = 1$ by \cref{initial_segment_one,singleton_iff}.
$a = z$.
Thus $z\in\{a\}$ by \cref{singleton_iff}.
\end{subproof}
$G\subseteq\{a\}$ by \cref{subseteq}.
$\{a\}\subseteq G$ by \cref{singleton_subset_intro}.
$G = \{a\}$ by \cref{subseteq_antisymmetric}.
$G = \cons{a}{\emptyset}$.
$\unions{G} = a\union\emptyset$ by \cref{unions_cons,unions_emptyset}.
$\unions{G} = a$ by \cref{union_emptyset}.
$\unions{G}$ is finite.
\end{subproof}
$1\in A$.
Show that for all $n\in A$ we have $n + 1\in A$.
\begin{subproof}
Fix $n\in A$.
For all $G,g$ such that $g$ is a bijection from $\initialSegment{n}$ to $G$ and
for all $B\in G$ we have $B$ is finite we have $\unions{G}$ is finite.
Show that for all $G,g$ such that $g$ is a bijection from $\initialSegment{n + 1}$ to $G$
and for all $B\in G$ we have $B$ is finite we have $\unions{G}$ is finite.
\begin{subproof}
Fix $G$.
Fix $g$ such that $g$ is a bijection from $\initialSegment{n + 1}$ to $G$ and for all $B\in G$ we have $B$ is finite.
$g$ is a function by \cref{bijection_is_function}.
$\dom{g} = \initialSegment{n + 1}$ by \cref{bijections_dom}.
$n + 1\in\dom{g}$ by \cref{initial_segment_naturalsplus,real_naturals_closed_succ}.
Let $a = g(n + 1)$.
Let $G_1 = \img{g}{\initialSegment{n}}$.
$\initialSegment{n}\subseteq \initialSegment{n + 1}$ by \cref{initial_segment_subset_succ}.
$G_1\subseteq G$ by \cref{img_subseteq,bijections_dom,img_dom,bijections,ran_of_surj}.
$g\in\surj{\initialSegment{n + 1}}{G}$ by \cref{bijections}.
$\ran{g} = G$ by \cref{ran_of_surj}.
$(n + 1,a)\in g$ by \cref{function_apply_elim}.
$a\in G$ by \cref{function_apply_elim,ran_iff,bijections,ran_of_surj}.
$a$ is finite.
Show that for all $z\in G$ we have $z\in G_1\union\{a\}$.
\begin{subproof}
Fix $z\in G$.
There exists $x\in\initialSegment{n + 1}$ such that $g(x)=z$ by \cref{bijections,surj}.
$x\in\initialSegment{n}$ or $x = n + 1$ by \cref{initial_segment_succ_split}.
\begin{byCase}
\caseOf{$x\in\initialSegment{n}$.}
$z\in G_1\union\{a\}$ by \cref{function_apply_elim,img_iff,union_intro_left}.
\caseOf{$x = n + 1$.}
$z\in G_1\union\{a\}$ by \cref{function_apply_elim,union_intro_right,singleton_intro}.
\end{byCase}
\end{subproof}
Thus $G = G_1\union\{a\}$
by \cref{subseteq,singleton_subset_intro,union_subsets_is_subset,subseteq_antisymmetric}.
Show that for all $B$ such that $B\in G_1$ we have $B\in G$ and $B$ is finite.
\begin{subproof}
Follows by \cref{subseteq}.
\end{subproof}
Let $h = \restrl{g}{\initialSegment{n}}$.
$h$ is a function by \cref{restrl_of_function_is_function}.
For all $x\in\initialSegment{n}$ we have $x\in\dom{g}$ by \cref{initial_segment_subset_succ,bijections_dom,subseteq}.
$\dom{h} = \initialSegment{n}$ by \cref{subseteq,dom_of_restrl_eq_inter,inter_absorb_supseteq_left}.
$h\in\funs{\initialSegment{n}}{G_1}$ by \cref{function_apply_elim,restrl_subseteq,elem_subseteq,img_iff,funs_intro}.
For all $y\in G_1$ there exists $x\in\initialSegment{n}$ such that $h(x) = y$
by \cref{img_iff,function_apply_iff,restrl_of_function_apply}.
$h\in\surj{\initialSegment{n}}{G_1}$ by \cref{surj}.
For all $x,y$ such that $x\in\dom{h}$ and $y\in\dom{h}$ and $h(x) = h(y)$ we have $x\in\initialSegment{n}$ and $y\in\initialSegment{n}$.
For all $x,y$ such that $x\in\dom{h}$ and $y\in\dom{h}$ and $h(x) = h(y)$
we have $h(x) = g(x)$ and $h(y) = g(y)$ by \cref{restrl_of_function_apply}.
For all $x,y$ such that $x\in\dom{h}$ and $y\in\dom{h}$ and $h(x) = h(y)$ we have $g(x) = g(y)$.
For all $x,y$ such that $x\in\dom{h}$ and $y\in\dom{h}$ and $h(x) = h(y)$
we have $x\in\dom{g}$ and $y\in\dom{g}$ by \cref{subseteq}.
For all $x,y$ such that $x\in\dom{h}$ and $y\in\dom{h}$ and $h(x) = h(y)$ we have $x = y$
by \cref{bijections,injective_function}.
$h$ is injective by \cref{injective_function}.
$h$ is a bijection from $\initialSegment{n}$ to $G_1$ by \cref{bijections}.
$\unions{G_1}$ is finite.
$a$ is finite.
$\unions{G} = a\union\unions{G_1}$ by \cref{union_comm,union_eq_cons,unions_cons}.
$\unions{G}$ is finite by \cref{union_of_finite_is_finite}.
\end{subproof}
\end{subproof}
$A\subseteq\naturalsPlus$ by \cref{subseteq}.
$k\in A$ by \cref{real_naturals_induction}.
For all $G,g$ such that $g$ is a bijection from $\initialSegment{k}$ to $G$ and for all $B\in G$ we have $B$ is finite
we have $\unions{G}$ is finite.
$\unions{F}$ is finite.
\end{byCase}
LaTeX source
\begin{proof}
\begin{byCase}
\caseOf{$F = \emptyset$.}
$\unions{F} = \emptyset$ by \cref{unions_emptyset}.
$\unions{F}$ is finite by \cref{emptyset_is_finite}.
\caseOf{$F \neq \emptyset$.}
Take $F_0$ such that $F_0\in F$ by \cref{nonempty_inhabited}.
Take $k\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{k}$ to $F$ by \cref{finite}.
Take $f$ such that $f$ is a bijection from $\initialSegment{k}$ to $F$.
Let $A = \{ n\in\naturalsPlus \mid \text{for all $G,g$ such that $g$ is a bijection from $\initialSegment{n}$ to $G$ and for all $B\in G$ we have $B$ is finite we have $\unions{G}$ is finite} \}$.
Show that for all $G,g$ such that $g$ is a bijection from $\initialSegment{1}$ to $G$ and
for all $B\in G$ we have $B$ is finite we have $\unions{G}$ is finite.
\begin{subproof}
Fix $G$.
Fix $g$ such that $g$ is a bijection from $\initialSegment{1}$ to $G$ and for all $B\in G$ we have $B$ is finite.
$g$ is a function by \cref{bijection_is_function}.
$\dom{g} = \initialSegment{1}$ by \cref{bijections_dom}.
$1\in\dom{g}$ by \cref{initial_segment_one,singleton_intro}.
Let $a = g(1)$.
$(1,a)\in g$ by \cref{function_apply_elim}.
$g\in\surj{\initialSegment{1}}{G}$ by \cref{bijections}.
$\ran{g} = G$ by \cref{ran_of_surj}.
$a\in G$ by \cref{ran_iff}.
$a$ is finite.
Show that for all $z\in G$ we have $z\in\{a\}$.
\begin{subproof}
Fix $z\in G$.
Take $x\in\initialSegment{1}$ such that $g(x)=z$ by \cref{bijections,surj}.
$x = 1$ by \cref{initial_segment_one,singleton_iff}.
$a = z$.
Thus $z\in\{a\}$ by \cref{singleton_iff}.
\end{subproof}
$G\subseteq\{a\}$ by \cref{subseteq}.
$\{a\}\subseteq G$ by \cref{singleton_subset_intro}.
$G = \{a\}$ by \cref{subseteq_antisymmetric}.
$G = \cons{a}{\emptyset}$.
$\unions{G} = a\union\emptyset$ by \cref{unions_cons,unions_emptyset}.
$\unions{G} = a$ by \cref{union_emptyset}.
$\unions{G}$ is finite.
\end{subproof}
$1\in A$.
Show that for all $n\in A$ we have $n + 1\in A$.
\begin{subproof}
Fix $n\in A$.
For all $G,g$ such that $g$ is a bijection from $\initialSegment{n}$ to $G$ and
for all $B\in G$ we have $B$ is finite we have $\unions{G}$ is finite.
Show that for all $G,g$ such that $g$ is a bijection from $\initialSegment{n + 1}$ to $G$
and for all $B\in G$ we have $B$ is finite we have $\unions{G}$ is finite.
\begin{subproof}
Fix $G$.
Fix $g$ such that $g$ is a bijection from $\initialSegment{n + 1}$ to $G$ and for all $B\in G$ we have $B$ is finite.
$g$ is a function by \cref{bijection_is_function}.
$\dom{g} = \initialSegment{n + 1}$ by \cref{bijections_dom}.
$n + 1\in\dom{g}$ by \cref{initial_segment_naturalsplus,real_naturals_closed_succ}.
Let $a = g(n + 1)$.
Let $G_1 = \img{g}{\initialSegment{n}}$.
$\initialSegment{n}\subseteq \initialSegment{n + 1}$ by \cref{initial_segment_subset_succ}.
$G_1\subseteq G$ by \cref{img_subseteq,bijections_dom,img_dom,bijections,ran_of_surj}.
$g\in\surj{\initialSegment{n + 1}}{G}$ by \cref{bijections}.
$\ran{g} = G$ by \cref{ran_of_surj}.
$(n + 1,a)\in g$ by \cref{function_apply_elim}.
$a\in G$ by \cref{function_apply_elim,ran_iff,bijections,ran_of_surj}.
$a$ is finite.
Show that for all $z\in G$ we have $z\in G_1\union\{a\}$.
\begin{subproof}
Fix $z\in G$.
There exists $x\in\initialSegment{n + 1}$ such that $g(x)=z$ by \cref{bijections,surj}.
$x\in\initialSegment{n}$ or $x = n + 1$ by \cref{initial_segment_succ_split}.
\begin{byCase}
\caseOf{$x\in\initialSegment{n}$.}
$z\in G_1\union\{a\}$ by \cref{function_apply_elim,img_iff,union_intro_left}.
\caseOf{$x = n + 1$.}
$z\in G_1\union\{a\}$ by \cref{function_apply_elim,union_intro_right,singleton_intro}.
\end{byCase}
\end{subproof}
Thus $G = G_1\union\{a\}$
by \cref{subseteq,singleton_subset_intro,union_subsets_is_subset,subseteq_antisymmetric}.
Show that for all $B$ such that $B\in G_1$ we have $B\in G$ and $B$ is finite.
\begin{subproof}
Follows by \cref{subseteq}.
\end{subproof}
Let $h = \restrl{g}{\initialSegment{n}}$.
$h$ is a function by \cref{restrl_of_function_is_function}.
For all $x\in\initialSegment{n}$ we have $x\in\dom{g}$ by \cref{initial_segment_subset_succ,bijections_dom,subseteq}.
$\dom{h} = \initialSegment{n}$ by \cref{subseteq,dom_of_restrl_eq_inter,inter_absorb_supseteq_left}.
$h\in\funs{\initialSegment{n}}{G_1}$ by \cref{function_apply_elim,restrl_subseteq,elem_subseteq,img_iff,funs_intro}.
For all $y\in G_1$ there exists $x\in\initialSegment{n}$ such that $h(x) = y$
by \cref{img_iff,function_apply_iff,restrl_of_function_apply}.
$h\in\surj{\initialSegment{n}}{G_1}$ by \cref{surj}.
For all $x,y$ such that $x\in\dom{h}$ and $y\in\dom{h}$ and $h(x) = h(y)$ we have $x\in\initialSegment{n}$ and $y\in\initialSegment{n}$.
For all $x,y$ such that $x\in\dom{h}$ and $y\in\dom{h}$ and $h(x) = h(y)$
we have $h(x) = g(x)$ and $h(y) = g(y)$ by \cref{restrl_of_function_apply}.
For all $x,y$ such that $x\in\dom{h}$ and $y\in\dom{h}$ and $h(x) = h(y)$ we have $g(x) = g(y)$.
For all $x,y$ such that $x\in\dom{h}$ and $y\in\dom{h}$ and $h(x) = h(y)$
we have $x\in\dom{g}$ and $y\in\dom{g}$ by \cref{subseteq}.
For all $x,y$ such that $x\in\dom{h}$ and $y\in\dom{h}$ and $h(x) = h(y)$ we have $x = y$
by \cref{bijections,injective_function}.
$h$ is injective by \cref{injective_function}.
$h$ is a bijection from $\initialSegment{n}$ to $G_1$ by \cref{bijections}.
$\unions{G_1}$ is finite.
$a$ is finite.
$\unions{G} = a\union\unions{G_1}$ by \cref{union_comm,union_eq_cons,unions_cons}.
$\unions{G}$ is finite by \cref{union_of_finite_is_finite}.
\end{subproof}
\end{subproof}
$A\subseteq\naturalsPlus$ by \cref{subseteq}.
$k\in A$ by \cref{real_naturals_induction}.
For all $G,g$ such that $g$ is a bijection from $\initialSegment{k}$ to $G$ and for all $B\in G$ we have $B$ is finite
we have $\unions{G}$ is finite.
$\unions{F}$ is finite.
\end{byCase}
\end{proof}
Assume $T$ is a topology on $X$.
Assume $T_1$ is a topology on $Y$.
Assume $X$ is compact with respect to $T$.
Assume $Y$ is compact with respect to $T_1$.
Let $T_2 = \productTopology{T}{T_1}{X}{Y}$.
Then $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ is compact with respect to $T_2$.
LaTeX source
\begin{theorem}
\label{product_compact}
Assume $T$ is a topology on $X$.
Assume $T_1$ is a topology on $Y$.
Assume $X$ is compact with respect to $T$.
Assume $Y$ is compact with respect to $T_1$.
Let $T_2 = \productTopology{T}{T_1}{X}{Y}$.
Then $X\times Y$ is compact with respect to $T_2$.
\end{theorem}
Proof
$T_2$ is a topology on $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Definition 141, Lemma 76, Lemma 126.
It suffices to show that for all $A$ such that $A$ is an open covering of $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$ 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 $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Definition 247.
Fix $A$ such that $A$ is an open covering of $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$.
Let $C = \{W\class{latex-symbol-tip latex-symbol-id-in}{\in} T \mid \text{there exists $B\subseteq A$ such that $B$ is finite and $W\times Y\subseteq \unions{B}$}\}$.
Claim: For all $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ and $W$ is open in $X$ with respect to $T$.
Follows by Definition 103.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{C}$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $S = \{x\}\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$.
Let $T_S = \subspaceTopology{T_2}{S}$.
$S$ is compact with respect to $T_S$ by Lemma 358.
For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 22, Proposition 115, Proposition 121.
$S$ is a subspace of $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$ by Definition 1, Definition 147.
$A$ is a covering of $S$ by Definition 1, Definition 245, Definition 246.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $U$ is open in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$.
Follows by Definition 246.
Take $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $B$ is finite and $B$ is a covering of $S$ by Lemma 356.
Let $N = \unions{B}$.
$N$ is open in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$ by Definition 1, Definition 101, Definition 103, Definition 246.
Take $W$ such that $W$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ and $W\class{latex-symbol-tip latex-symbol-id-times}{\times} Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$ by Definition 245, Lemma 359.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{C}$ by Axiom 4, Definition 103.
Claim: $C$ is an open covering of $X$ with respect to $T$.
Follows by Definition 1, Definition 245, Definition 246.
Take $F$ such that $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ and $F$ is finite and $F$ is a covering of $X$ by Definition 247.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} F\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{A} \mid \text{there exists $W\in F$ such that there exists $B\subseteq A$ such that $w = (W,B)$ and $B$ is finite and $W\times Y\subseteq \unions{B}$}\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ there exist $W,B$ such that $w = (W,B)$.
$R$ is a relation by Definition 12.
Claim: For all $W\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ such that $B$ is finite and $W\class{latex-symbol-tip latex-symbol-id-times}{\times} Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \unions{B}$.
Follows by Definition 1.
Claim: For all $W\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $B$ such that $(W,B)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$.
Fix $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
Take $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ such that $B$ is finite and $W\class{latex-symbol-tip latex-symbol-id-times}{\times} Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \unions{B}$.
$B\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{A}$ by Proposition 155.
$(W,B)\class{latex-symbol-tip latex-symbol-id-in}{\in} F\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{A}$ by Proposition 115.
$(W,B)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Proposition 115, Proposition 155.
For all $W\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $B$ such that $W\mathrel{R} B$.
Take $h$ such that $h$ is a function on $F$ and for all $W\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $W\mathrel{R}\apply{h}{W}$ by Axiom 54.
Let $H = \img{h}{F}$.
Claim: For all $B$ such that $B\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ we have $B$ is finite.
Follows by Axiom 6, Proposition 235, Proposition 349.
Let $B = \unions{H}$.
$B$ is finite by Lemma 192, Lemma 360.
$B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Axiom 6, Definition 1, Proposition 155, Proposition 159, Proposition 235, Proposition 349.
Claim: For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{B}$.
Fix $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$.
Take $x,y$ such that $p = (x,y)$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 121.
Take $W\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ by Axiom 4, Definition 1, Definition 245.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} W\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
Take $W_1,B_1$ such that $W_1\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $B_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $(W,\apply{h}{W}) = (W_1,B_1)$ and $B_1$ is finite and $W_1\class{latex-symbol-tip latex-symbol-id-times}{\times} Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \unions{B_1}$ by Proposition 349.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{h}{W}$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 4, Axiom 6, Definition 1.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{B}$ by Axiom 4, Proposition 235, Proposition 348.
$B$ is a covering of $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Definition 1, Definition 245.
LaTeX source
\begin{proof}
$T_2$ is a topology on $X\times Y$ by \cref{product_basis_is_basis,basis_topology_is_topology,product_topology}.
It suffices to show that for all $A$ such that $A$ is an open covering of $X\times Y$ with respect to $T_2$
there exists $B$ such that
$B\subseteq A$ and
$B$ is finite and
$B$ is a covering of $X\times Y$
by \cref{compact}.
Fix $A$ such that $A$ is an open covering of $X\times Y$ with respect to $T_2$.
Let $C = \{W\in T \mid \text{there exists $B\subseteq A$ such that $B$ is finite and $W\times Y\subseteq \unions{B}$}\}$.
Show that for all $W$ such that $W\in C$ we have $W\in T$ and $W$ is open in $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{open_in}.
\end{subproof}
Show that for all $x$ such that $x\in X$ we have $x\in\unions{C}$.
\begin{subproof}
Fix $x$ such that $x\in X$.
Let $S = \{x\}\times Y$.
Let $T_S = \subspaceTopology{T_2}{S}$.
$S$ is compact with respect to $T_S$ by \cref{slice_compact}.
For all $p$ such that $p\in S$ we have $p\in X\times Y$
by \cref{times_elem_is_tuple,singleton_iff,times_tuple_intro}.
$S$ is a subspace of $X\times Y$ with respect to $T_2$ by \cref{subseteq,subspace_of}.
$A$ is a covering of $S$ by \cref{open_covering,covering,subseteq}.
Show that for all $U$ such that $U\in A$ we have $U$ is open in $X\times Y$ with respect to $T_2$.
\begin{subproof}
Follows by \cref{open_covering}.
\end{subproof}
Take $B$ such that
$B\subseteq A$ and $B$ is finite and $B$ is a covering of $S$
by \cref{compact_subspace_open_covering}.
Let $N = \unions{B}$.
$N$ is open in $X\times Y$ with respect to $T_2$ by \cref{subseteq,open_covering,open_in,topology_on}.
Take $W$ such that
$W$ is open in $X$ with respect to $T$ and
$x\in W$ and
$W\times Y\subseteq N$ by \cref{covering,tube_lemma_helper}.
$x\in\unions{C}$ by \cref{open_in,unions_iff}.
\end{subproof}
Show that $C$ is an open covering of $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{subseteq,covering,open_covering}.
\end{subproof}
Take $F$ such that
$F\subseteq C$ and $F$ is finite and $F$ is a covering of $X$
by \cref{compact}.
Let $R = \{w\in F\times\pow{A} \mid \text{there exists $W\in F$ such that there exists $B\subseteq A$ such that $w = (W,B)$ and $B$ is finite and $W\times Y\subseteq \unions{B}$}\}$.
For all $w$ such that $w\in R$ there exist $W,B$ such that $w = (W,B)$.
$R$ is a relation by \cref{relation}.
Show that for all $W\in F$ there exists $B\subseteq A$ such that $B$ is finite and $W\times Y\subseteq \unions{B}$.
\begin{subproof}
Follows by \cref{subseteq}.
\end{subproof}
Show that for all $W\in F$ there exists $B$ such that $(W,B)\in R$.
\begin{subproof}
Fix $W$ such that $W\in F$.
Take $B\subseteq A$ such that $B$ is finite and $W\times Y\subseteq \unions{B}$.
$B\in\pow{A}$ by \cref{powerset_intro}.
$(W,B)\in F\times\pow{A}$ by \cref{times_tuple_intro}.
$(W,B)\in R$ by \cref{times_tuple_intro,powerset_intro}.
\end{subproof}
For all $W\in F$ there exists $B$ such that $W\mathrel{R} B$.
Take $h$ such that $h$ is a function on $F$ and for all $W\in F$ we have $W\mathrel{R}\apply{h}{W}$
by \cref{axiom_of_choice}.
Let $H = \img{h}{F}$.
Show that for all $B$ such that $B\in H$ we have $B$ is finite.
\begin{subproof}
Follows by \cref{img_iff,function_apply_iff,pair_eq_iff}.
\end{subproof}
Let $B = \unions{H}$.
$B$ is finite by \cref{finite_image_function,finite_union_of_finite_family}.
$B\subseteq A$ by \cref{img_iff,function_apply_iff,pair_eq_iff,subseteq,powerset_intro,unions_subseteq_of_powerset_is_subseteq}.
Show that for all $p$ such that $p\in X\times Y$ we have $p\in\unions{B}$.
\begin{subproof}
Fix $p$ such that $p\in X\times Y$.
Take $x,y$ such that $p = (x,y)$ and $x\in X$ and $y\in Y$
by \cref{times_elem_is_tuple}.
Take $W\in F$ such that $x\in W$ by \cref{covering,subseteq,unions_iff}.
$p\in W\times Y$ by \cref{times_tuple_intro}.
Take $W_1,B_1$ such that $W_1\in F$ and $B_1\subseteq A$ and
$(W,\apply{h}{W}) = (W_1,B_1)$ and $B_1$ is finite and $W_1\times Y\subseteq \unions{B_1}$
by \cref{function_apply_iff}.
Take $U\in\apply{h}{W}$ such that $p\in U$ by \cref{pair_eq_iff,subseteq,unions_iff}.
$p\in\unions{B}$ by \cref{function_apply_elim,img_iff,unions_iff}.
\end{subproof}
$B$ is a covering of $X\times Y$ by \cref{subseteq,covering}.
\end{proof}
Assume $T$ is a topology on $X$.
Assume $T_1$ is a topology on $Y$.
Assume $Y$ is compact with respect to $T_1$.
Let $T_2 = \productTopology{T}{T_1}{X}{Y}$.
Assume $N$ is open in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ with respect to $T_2$.
Assume $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $\{x_0\}\class{latex-symbol-tip latex-symbol-id-times}{\times} Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$.
Then there exists $W$ such that $W$ is open in $X$ with respect to $T$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ and $W\class{latex-symbol-tip latex-symbol-id-times}{\times} Y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$.
LaTeX source
\begin{lemma}
\label{tube_lemma}
Assume $T$ is a topology on $X$.
Assume $T_1$ is a topology on $Y$.
Assume $Y$ is compact with respect to $T_1$.
Let $T_2 = \productTopology{T}{T_1}{X}{Y}$.
Assume $N$ is open in $X\times Y$ with respect to $T_2$.
Assume $x_0\in X$.
Suppose $\{x_0\}\times Y\subseteq N$.
Then there exists $W$ such that
$W$ is open in $X$ with respect to $T$ and
$x_0\in W$ and
$W\times Y\subseteq N$.
\end{lemma}
Proof
Follows by Lemma 359.
LaTeX source
\begin{proof}
Follows by \cref{tube_lemma_helper}.
\end{proof}
Assume $T$ is a topology on $X$.
Then $X$ is compact with respect to $T$ iff for all $C$ if $C$ has the finite intersection property and for all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $A$ is closed in $X$ with respect to $T$ then $\inters{C}\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
LaTeX source
\begin{theorem}
\label{compact_iff_finite_intersection_property}
Assume $T$ is a topology on $X$.
Then $X$ is compact with respect to $T$ iff
for all $C$ if
$C$ has the finite intersection property and
for all $A$ such that $A\in C$ we have $A$ is closed in $X$ with respect to $T$
then $\inters{C}\neq\emptyset$.
\end{theorem}
Proof
Claim: If $X$ is compact with respect to $T$ then for all $C$ if $C$ has the finite intersection property and for all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $A$ is closed in $X$ with respect to $T$ then $\inters{C}\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Assume $X$ is compact with respect to $T$.
Fix $C$ such that $C$ has the finite intersection property and for all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $A$ is closed in $X$ with respect to $T$.
Suppose not.
$\inters{C} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2.
Take $A_0$ such that $A_0\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Definition 91.
Let $F_0 = \{A_0\}$.
We have $F_0$ is finite and $F_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Lemma 40, Lemma 44, Proposition 16, Proposition 25.
$F_0$ is inhabited.
$\inters{F_0}\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Definition 91.
$A_0\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Proposition 36.
Let $A = \{U \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} D\class{latex-symbol-tip latex-symbol-id-in}{\in} C. U = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D\}$.
Claim: $A$ is an open covering of $X$ with respect to $T$.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $U$ is open in $X$ with respect to $T$.
Follows by Definition 149.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$.
Trivial.
Claim: $X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{A}$ and $A$ is a covering of $X$.
Follows by Definition 1, Definition 245.
Claim: $A$ is an open covering of $X$ with respect to $T$.
Follows by Definition 246.
Take $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $B$ is finite and $B$ is a covering of $X$ by Definition 247.
$B$ is inhabited by Axiom 4, Definition 1, Definition 149, Definition 245, Proposition 10.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} C \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in} B.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} D\class{latex-symbol-tip latex-symbol-id-in}{\in} C. w = (U,D) \class{latex-symbol-tip latex-symbol-id-land}{\land} U = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ there exist $U,D$ such that $w = (U,D)$ and $R$ is a relation by Definition 12, Proposition 121.
Claim: For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $D\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $U = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D$.
Follows by Definition 1.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $D$ such that $U\mathrel{R} D$.
Take $h$ such that $h$ is a function on $B$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $U\mathrel{R}\apply{h}{U}$ by Axiom 54.
Let $F = \img{h}{B}$.
$F$ is inhabited and $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Axiom 6, Definition 1, Proposition 10, Proposition 235, Proposition 348, Proposition 349.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$.
Follows by Axiom 4, Axiom 6, Proposition 31, Proposition 85, Proposition 86, Proposition 87, Proposition 235, Proposition 349.
$X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\inters{F}$ by Definition 1.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B}$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1, Definition 149, Proposition 10, Proposition 32.
Suppose not.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{B}$.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 4.
$U\mathrel{R}\apply{h}{U}$.
$(U,\apply{h}{U})\class{latex-symbol-tip latex-symbol-id-in}{\in} R$.
Take $U_1,D_1$ such that $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $D_1\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $(U,\apply{h}{U}) = (U_1,D_1)$ and $U_1 = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D_1$ by Definition 1.
We have $U = U_1$ and $\apply{h}{U} = D_1$ by Axiom 6.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} D_1$ by Proposition 32, Proposition 235, Proposition 348.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D_1$ by Axiom 6.
$x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} D_1$ by Proposition 87.
Contradiction.
$\inters{F}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B}$ by Definition 1.
Claim: $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B} = \inters{F}$.
Follows by Proposition 3.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
$X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Definition 1, Definition 245, Proposition 3, Proposition 90, Proposition 155, Proposition 159.
$\inters{F} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Proposition 2, Proposition 3.
We have $\inters{F}\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Definition 91, Lemma 192.
Contradiction.
Claim: If for all $C$ if $C$ has the finite intersection property and for all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $A$ is closed in $X$ with respect to $T$ then $\inters{C}\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ then $X$ is compact with respect to $T$.
Assume for all $C$ if $C$ has the finite intersection property and for all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $A$ is closed in $X$ with respect to $T$ then $\inters{C}\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Claim: For all $A$ such that $A$ is an open covering of $X$ 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 $X$.
Fix $A$ such that $A$ is an open covering of $X$ 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 $X$ by Definition 245, Lemma 35, Proposition 2, Proposition 11, Proposition 28.
$B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $B$ is finite and $B$ is a covering of $X$.
Claim: 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 $X$.
Suppose not.
For all $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $B$ is finite we have $B$ is not a covering of $X$.
Let $C = \{D \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in} A. D = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U\}$.
Claim: For all $D$ such that $D\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $D$ is closed in $X$ with respect to $T$.
Follows by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 149, Definition 246, Proposition 92, Proposition 97.
Claim: $C$ has the finite intersection property.
Take $x_0,U_1$ such that $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $U_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1$ by Axiom 4, Definition 1, Definition 245, Definition 246, Proposition 10.
$C$ is inhabited.
Claim: For all $F$ such that $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ and $F$ is finite and inhabited we have $\inters{F}\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Fix $F$ such that $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ and $F$ is finite and inhabited.
Suppose not.
$\inters{F} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2.
Let $R_0 = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} F\class{latex-symbol-tip latex-symbol-id-times}{\times} A \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} D\class{latex-symbol-tip latex-symbol-id-in}{\in} F.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in} A. w = (D,U) \class{latex-symbol-tip latex-symbol-id-land}{\land} D = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R_0$ there exist $D,U$ such that $w = (D,U)$ and $R_0$ is a relation by Definition 12, Proposition 121.
Claim: For all $D\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $D = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U$.
Follows by Definition 1.
For all $D\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $U$ such that $D\mathrel{R_0} U$.
Take $h$ such that $h$ is a function on $F$ and for all $D\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $D\mathrel{R_0}\apply{h}{D}$ by Axiom 54.
Let $B = \img{h}{F}$.
$B$ is finite and $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Axiom 6, Definition 1, Lemma 192, Proposition 235, Proposition 349.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin}\unions{B}$.
Follows by Proposition 86, Proposition 87.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$.
Follows by Axiom 4, Axiom 6, Proposition 31, Proposition 85, Proposition 235, Proposition 348, Proposition 349.
$X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\inters{F}$ by Definition 1.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B}$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1, Definition 149, Proposition 10, Proposition 32.
Suppose not.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{B}$.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 4.
Take $D\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $(D,U)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ by Proposition 235.
$D\mathrel{R_0} U$ by Proposition 349.
Take $D_1,U_2$ such that $D_1\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $U_2\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $(D,U) = (D_1,U_2)$ and $D_1 = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} U_2$.
We have $D = D_1$ and $U = U_2$ by Axiom 6.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D$ by Axiom 6, Axiom 12, Definition 1, Definition 101, Definition 103, Definition 246, Proposition 92.
$x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} D$ by Proposition 87.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Proposition 32.
Contradiction.
$\inters{F}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B}$ by Definition 1.
Claim: $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B} = \inters{F}$.
Follows by Proposition 3.
$X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{B} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
$B$ is a covering of $X$ by Definition 245, Proposition 101.
Contradiction.
Claim: $C$ has the finite intersection property.
Follows by Definition 91.
$\inters{C}\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{A}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{C}$.
Trivial.
$X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{A}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\inters{C}$ by Definition 1.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{C}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{A}$.
Trivial.
$\inters{C}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{A}$ by Definition 1.
Claim: $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{A} = \inters{C}$.
Follows by Proposition 3.
$X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{A} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 245, Definition 246, Proposition 3, Proposition 90, Proposition 155, Proposition 159.
$\inters{C} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Proposition 2, Proposition 3.
Contradiction.
LaTeX source
\begin{byCase}
\caseOf{$X = \emptyset$.}
Let $B = \emptyset$.
We have $B\subseteq A$ and $B$ is finite and $B$ is a covering of $X$
by \cref{emptyset_subseteq,emptyset_is_finite,unions_emptyset,subseteq_refl,covering}.
$B\subseteq A$ and $B$ is finite and $B$ is a covering of $X$.
\caseOf{$X \neq \emptyset$.}
Show that there exists $B$ such that
$B\subseteq A$ and $B$ is finite and $B$ is a covering of $X$.
\begin{subproof}
Suppose not.
For all $B$ such that $B\subseteq A$ and $B$ is finite we have
$B$ is not a covering of $X$.
Let $C = \{D \mid \exists U\in A. D = X\setminus U\}$.
Show that for all $D$ such that $D\in C$ we have $D$ is closed in $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{open_covering,open_in,topology_on,subseteq,pow_iff,double_relative_complement,setminus_subseteq,closed_in}.
\end{subproof}
Show that $C$ has the finite intersection property.
\begin{subproof}
Take $x_0,U_1$ such that $x_0\in X$ and $U_1\in A$ and $x_0\in U_1$
by \cref{open_covering,nonempty_inhabited,covering,subseteq,unions_iff}.
$C$ is inhabited.
Show that for all $F$ such that $F\subseteq C$ and $F$ is finite and inhabited
we have $\inters{F}\neq\emptyset$.
\begin{subproof}
Fix $F$ such that $F\subseteq C$ and $F$ is finite and inhabited.
Suppose not.
$\inters{F} = \emptyset$ by \cref{emptyset}.
Let $R_0 = \{w\in F\times A \mid \exists D\in F.\exists U\in A. w = (D,U) \land D = X\setminus U\}$.
For all $w$ such that $w\in R_0$ there exist $D,U$ such that $w = (D,U)$ and
$R_0$ is a relation by \cref{times_elem_is_tuple,relation}.
Show that for all $D\in F$ there exists $U\in A$ such that $D = X\setminus U$.
\begin{subproof}
Follows by \cref{subseteq}.
\end{subproof}
For all $D\in F$ there exists $U$ such that $D\mathrel{R_0} U$.
Take $h$ such that $h$ is a function on $F$ and for all $D\in F$ we have $D\mathrel{R_0}\apply{h}{D}$
by \cref{axiom_of_choice}.
Let $B = \img{h}{F}$.
$B$ is finite and $B\subseteq A$
by \cref{finite_image_function,img_iff,function_apply_iff,pair_eq_iff,subseteq}.
Show that for all $x$ such that $x\in X\setminus\unions{B}$ we have $x\in X$ and $x\notin\unions{B}$.
\begin{subproof}
Follows by \cref{setminus_elim_left,setminus_elim_right}.
\end{subproof}
Show that for all $x$ such that $x\in X\setminus\unions{B}$ we have $x\in\inters{F}$.
\begin{subproof}
Follows by \cref{pair_eq_iff,setminus_intro,function_apply_iff,function_apply_elim,img_iff,unions_iff,inters_intro}.
\end{subproof}
$X\setminus\unions{B}\subseteq\inters{F}$ by \cref{subseteq}.
Show that for all $x$ such that $x\in\inters{F}$ we have $x\in X\setminus\unions{B}$.
\begin{subproof}
Fix $x$ such that $x\in\inters{F}$.
We have $x\in X$ by \cref{nonempty_inhabited,inters_destr,subseteq,closed_in}.
Suppose not.
$x\in\unions{B}$.
Take $U\in B$ such that $x\in U$ by \cref{unions_iff}.
Take $D\in F$ such that $(D,U)\in h$ by \cref{img_iff}.
$D\mathrel{R_0} U$ by \cref{function_apply_iff}.
Take $D_1,U_2$ such that $D_1\in F$ and $U_2\in A$ and
$(D,U) = (D_1,U_2)$ and $D_1 = X\setminus U_2$.
We have $D = D_1$ and $U = U_2$ by \cref{pair_eq_iff}.
$x\in X\setminus D$ by \cref{open_covering,open_in,topology_on,subseteq,pow_iff,double_relative_complement,pair_eq_iff}.
$x\notin D$ by \cref{setminus_elim_right}.
$x\in D$ by \cref{inters_destr}.
Contradiction.
\end{subproof}
$\inters{F}\subseteq X\setminus\unions{B}$ by \cref{subseteq}.
Show that $X\setminus\unions{B} = \inters{F}$.
\begin{subproof}
Follows by \cref{subseteq_antisymmetric}.
\end{subproof}
$X\setminus\unions{B} = \emptyset$.
$B$ is a covering of $X$ by \cref{setminus_eq_emptyset_iff_subseteq,covering}.
Contradiction.
\end{subproof}
Show that $C$ has the finite intersection property.
\begin{subproof}
Follows by \cref{finite_intersection_property}.
\end{subproof}
\end{subproof}
$\inters{C}\neq\emptyset$.
Show that for all $x$ such that $x\in X\setminus\unions{A}$ we have $x\in\inters{C}$.
\begin{subproof}
Trivial.
\end{subproof}
$X\setminus\unions{A}\subseteq\inters{C}$ by \cref{subseteq}.
Show that for all $x$ such that $x\in\inters{C}$ we have $x\in X\setminus\unions{A}$.
\begin{subproof}
Trivial.
\end{subproof}
$\inters{C}\subseteq X\setminus\unions{A}$ by \cref{subseteq}.
Show that $X\setminus\unions{A} = \inters{C}$.
\begin{subproof}
Follows by \cref{subseteq_antisymmetric}.
\end{subproof}
$X\setminus\unions{A} = \emptyset$
by \cref{covering,powerset_intro,open_covering,open_in,topology_on,subseteq,pow_iff,unions_subseteq_of_powerset_is_subseteq,subseteq_antisymmetric,setminus_self}.
$\inters{C} = \emptyset$ by \cref{subseteq_antisymmetric,subseteq_refl}.
Contradiction.
\end{subproof}
\end{byCase}
$X$ is compact with respect to $T$ by Definition 247.
LaTeX source
\begin{proof}
Show that if $X$ is compact with respect to $T$ then
for all $C$ if
$C$ has the finite intersection property and
for all $A$ such that $A\in C$ we have $A$ is closed in $X$ with respect to $T$
then $\inters{C}\neq\emptyset$.
\begin{subproof}
Assume $X$ is compact with respect to $T$.
Fix $C$ such that $C$ has the finite intersection property and
for all $A$ such that $A\in C$ we have $A$ is closed in $X$ with respect to $T$.
Suppose not.
$\inters{C} = \emptyset$ by \cref{emptyset}.
Take $A_0$ such that $A_0\in C$ by \cref{finite_intersection_property}.
Let $F_0 = \{A_0\}$.
We have $F_0$ is finite and $F_0\subseteq C$
by \cref{pair_is_finite,upair_intro_left,singleton_subset_intro,subseteq_finite_is_finite}.
$F_0$ is inhabited.
$\inters{F_0}\neq\emptyset$ by \cref{finite_intersection_property}.
$A_0\neq\emptyset$ by \cref{inters_singleton,emptyset}.
Let $A = \{U \mid \exists D\in C. U = X\setminus D\}$.
Show that $A$ is an open covering of $X$ with respect to $T$.
\begin{subproof}
Show that for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{closed_in}.
\end{subproof}
Show that for all $x$ such that $x\in X$ we have $x\in\unions{A}$.
\begin{subproof}
Trivial.
\end{subproof}
Show that $X\subseteq\unions{A}$ and $A$ is a covering of $X$.
\begin{subproof}
Follows by \cref{subseteq,covering}.
\end{subproof}
Show that $A$ is an open covering of $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{open_covering}.
\end{subproof}
\end{subproof}
Take $B$ such that $B\subseteq A$ and $B$ is finite and $B$ is a covering of $X$
by \cref{compact}.
$B$ is inhabited by \cref{closed_in,subseteq,nonempty_inhabited,covering,unions_iff}.
Let $R = \{w\in B\times C \mid \exists U\in B.\exists D\in C. w = (U,D) \land U = X\setminus D\}$.
For all $w$ such that $w\in R$ there exist $U,D$ such that $w = (U,D)$ and
$R$ is a relation by \cref{times_elem_is_tuple,relation}.
Show that for all $U\in B$ there exists $D\in C$ such that $U = X\setminus D$.
\begin{subproof}
Follows by \cref{subseteq}.
\end{subproof}
For all $U\in B$ there exists $D$ such that $U\mathrel{R} D$.
Take $h$ such that $h$ is a function on $B$ and for all $U\in B$ we have $U\mathrel{R}\apply{h}{U}$
by \cref{axiom_of_choice}.
Let $F = \img{h}{B}$.
$F$ is inhabited and $F\subseteq C$
by \cref{nonempty_inhabited,function_apply_elim,img_iff,function_apply_iff,pair_eq_iff,subseteq}.
Show that for all $x$ such that $x\in X\setminus\unions{B}$ we have $x\in\inters{F}$.
\begin{subproof}
Follows by \cref{img_iff,function_apply_iff,setminus_elim_left,setminus_elim_right,pair_eq_iff,setminus_intro,unions_iff,inters_intro}.
\end{subproof}
$X\setminus\unions{B}\subseteq\inters{F}$ by \cref{subseteq}.
Show that for all $x$ such that $x\in\inters{F}$ we have $x\in X\setminus\unions{B}$.
\begin{subproof}
Fix $x$ such that $x\in\inters{F}$.
We have $x\in X$ by \cref{nonempty_inhabited,inters_destr,subseteq,closed_in}.
Suppose not.
$x\in\unions{B}$.
Take $U\in B$ such that $x\in U$ by \cref{unions_iff}.
$U\mathrel{R}\apply{h}{U}$.
$(U,\apply{h}{U})\in R$.
Take $U_1,D_1$ such that $U_1\in B$ and $D_1\in C$ and
$(U,\apply{h}{U}) = (U_1,D_1)$ and $U_1 = X\setminus D_1$
by \cref{subseteq}.
We have $U = U_1$ and $\apply{h}{U} = D_1$ by \cref{pair_eq_iff}.
$x\in D_1$ by \cref{img_iff,function_apply_elim,inters_destr}.
$x\in X\setminus D_1$ by \cref{pair_eq_iff}.
$x\notin D_1$ by \cref{setminus_elim_right}.
Contradiction.
\end{subproof}
$\inters{F}\subseteq X\setminus\unions{B}$ by \cref{subseteq}.
Show that $X\setminus\unions{B} = \inters{F}$.
\begin{subproof}
Follows by \cref{subseteq_antisymmetric}.
\end{subproof}
For all $U$ such that $U\in B$ we have $U\subseteq X$.
$X\setminus\unions{B} = \emptyset$
by \cref{covering,powerset_intro,subseteq,unions_subseteq_of_powerset_is_subseteq,subseteq_antisymmetric,setminus_self}.
$\inters{F} = \emptyset$ by \cref{subseteq_antisymmetric,subseteq_refl}.
We have $\inters{F}\neq\emptyset$ by \cref{finite_image_function,finite_intersection_property}.
Contradiction.
\end{subproof}
Show that if
for all $C$ if
$C$ has the finite intersection property and
for all $A$ such that $A\in C$ we have $A$ is closed in $X$ with respect to $T$
then $\inters{C}\neq\emptyset$
then $X$ is compact with respect to $T$.
\begin{subproof}
Assume for all $C$ if
$C$ has the finite intersection property and
for all $A$ such that $A\in C$ we have $A$ is closed in $X$ with respect to $T$
then $\inters{C}\neq\emptyset$.
Show that for all $A$ such that $A$ is an open covering of $X$ with respect to $T$
there exists $B$ such that
$B\subseteq A$ and
$B$ is finite and
$B$ is a covering of $X$.
\begin{subproof}
Fix $A$ such that $A$ is an open covering of $X$ with respect to $T$.
\begin{byCase}
\caseOf{$X = \emptyset$.}
Let $B = \emptyset$.
We have $B\subseteq A$ and $B$ is finite and $B$ is a covering of $X$
by \cref{emptyset_subseteq,emptyset_is_finite,unions_emptyset,subseteq_refl,covering}.
$B\subseteq A$ and $B$ is finite and $B$ is a covering of $X$.
\caseOf{$X \neq \emptyset$.}
Show that there exists $B$ such that
$B\subseteq A$ and $B$ is finite and $B$ is a covering of $X$.
\begin{subproof}
Suppose not.
For all $B$ such that $B\subseteq A$ and $B$ is finite we have
$B$ is not a covering of $X$.
Let $C = \{D \mid \exists U\in A. D = X\setminus U\}$.
Show that for all $D$ such that $D\in C$ we have $D$ is closed in $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{open_covering,open_in,topology_on,subseteq,pow_iff,double_relative_complement,setminus_subseteq,closed_in}.
\end{subproof}
Show that $C$ has the finite intersection property.
\begin{subproof}
Take $x_0,U_1$ such that $x_0\in X$ and $U_1\in A$ and $x_0\in U_1$
by \cref{open_covering,nonempty_inhabited,covering,subseteq,unions_iff}.
$C$ is inhabited.
Show that for all $F$ such that $F\subseteq C$ and $F$ is finite and inhabited
we have $\inters{F}\neq\emptyset$.
\begin{subproof}
Fix $F$ such that $F\subseteq C$ and $F$ is finite and inhabited.
Suppose not.
$\inters{F} = \emptyset$ by \cref{emptyset}.
Let $R_0 = \{w\in F\times A \mid \exists D\in F.\exists U\in A. w = (D,U) \land D = X\setminus U\}$.
For all $w$ such that $w\in R_0$ there exist $D,U$ such that $w = (D,U)$ and
$R_0$ is a relation by \cref{times_elem_is_tuple,relation}.
Show that for all $D\in F$ there exists $U\in A$ such that $D = X\setminus U$.
\begin{subproof}
Follows by \cref{subseteq}.
\end{subproof}
For all $D\in F$ there exists $U$ such that $D\mathrel{R_0} U$.
Take $h$ such that $h$ is a function on $F$ and for all $D\in F$ we have $D\mathrel{R_0}\apply{h}{D}$
by \cref{axiom_of_choice}.
Let $B = \img{h}{F}$.
$B$ is finite and $B\subseteq A$
by \cref{finite_image_function,img_iff,function_apply_iff,pair_eq_iff,subseteq}.
Show that for all $x$ such that $x\in X\setminus\unions{B}$ we have $x\in X$ and $x\notin\unions{B}$.
\begin{subproof}
Follows by \cref{setminus_elim_left,setminus_elim_right}.
\end{subproof}
Show that for all $x$ such that $x\in X\setminus\unions{B}$ we have $x\in\inters{F}$.
\begin{subproof}
Follows by \cref{pair_eq_iff,setminus_intro,function_apply_iff,function_apply_elim,img_iff,unions_iff,inters_intro}.
\end{subproof}
$X\setminus\unions{B}\subseteq\inters{F}$ by \cref{subseteq}.
Show that for all $x$ such that $x\in\inters{F}$ we have $x\in X\setminus\unions{B}$.
\begin{subproof}
Fix $x$ such that $x\in\inters{F}$.
We have $x\in X$ by \cref{nonempty_inhabited,inters_destr,subseteq,closed_in}.
Suppose not.
$x\in\unions{B}$.
Take $U\in B$ such that $x\in U$ by \cref{unions_iff}.
Take $D\in F$ such that $(D,U)\in h$ by \cref{img_iff}.
$D\mathrel{R_0} U$ by \cref{function_apply_iff}.
Take $D_1,U_2$ such that $D_1\in F$ and $U_2\in A$ and
$(D,U) = (D_1,U_2)$ and $D_1 = X\setminus U_2$.
We have $D = D_1$ and $U = U_2$ by \cref{pair_eq_iff}.
$x\in X\setminus D$ by \cref{open_covering,open_in,topology_on,subseteq,pow_iff,double_relative_complement,pair_eq_iff}.
$x\notin D$ by \cref{setminus_elim_right}.
$x\in D$ by \cref{inters_destr}.
Contradiction.
\end{subproof}
$\inters{F}\subseteq X\setminus\unions{B}$ by \cref{subseteq}.
Show that $X\setminus\unions{B} = \inters{F}$.
\begin{subproof}
Follows by \cref{subseteq_antisymmetric}.
\end{subproof}
$X\setminus\unions{B} = \emptyset$.
$B$ is a covering of $X$ by \cref{setminus_eq_emptyset_iff_subseteq,covering}.
Contradiction.
\end{subproof}
Show that $C$ has the finite intersection property.
\begin{subproof}
Follows by \cref{finite_intersection_property}.
\end{subproof}
\end{subproof}
$\inters{C}\neq\emptyset$.
Show that for all $x$ such that $x\in X\setminus\unions{A}$ we have $x\in\inters{C}$.
\begin{subproof}
Trivial.
\end{subproof}
$X\setminus\unions{A}\subseteq\inters{C}$ by \cref{subseteq}.
Show that for all $x$ such that $x\in\inters{C}$ we have $x\in X\setminus\unions{A}$.
\begin{subproof}
Trivial.
\end{subproof}
$\inters{C}\subseteq X\setminus\unions{A}$ by \cref{subseteq}.
Show that $X\setminus\unions{A} = \inters{C}$.
\begin{subproof}
Follows by \cref{subseteq_antisymmetric}.
\end{subproof}
$X\setminus\unions{A} = \emptyset$
by \cref{covering,powerset_intro,open_covering,open_in,topology_on,subseteq,pow_iff,unions_subseteq_of_powerset_is_subseteq,subseteq_antisymmetric,setminus_self}.
$\inters{C} = \emptyset$ by \cref{subseteq_antisymmetric,subseteq_refl}.
Contradiction.
\end{subproof}
\end{byCase}
\end{subproof}
$X$ is compact with respect to $T$ by \cref{compact}.
\end{subproof}
\end{proof}