Let AβX be closed, and assume that X is compact. By Compact Subset Criterion via Open Covers in the Ambient Space, it is enough to prove that every open cover of A in X has a finite subcover.
Let I be a set, and let (Uiβ)iβIβ be an open cover of A in X. By Open Cover and Subcover of a Subset of a Topological Space, each Uiβ is an open subset of X and
AβiβIββUiβ.
Since A is closed in X, the complement XβA is open in X.
Choose a symbol β not belonging to I, and set
J=Iβͺ{β}.
Define a family (Vjβ)jβJβ of subsets of X by
Vjβ=UjβforΒ jβI,Vββ=XβA.
Then every Vjβ is open in X. We claim that (Vjβ)jβJβ is an open cover of X in X. Let xβX. If xβA, then since (Uiβ)iβIβ covers A, there exists iβI such that xβUiβ=Viβ. If xβ/A, then by the definition of complement one has xβXβA=Vββ. Hence
XβjβJββVjβ.
So (Vjβ)jβJβ is an open cover of X in X.
Apply Compact Subset Criterion via Open Covers in the Ambient Space with the subset XβX. Since X is compact, there exist a natural number nβN and elements j1β,β¦,jnββJ such that
XβVj1βββͺβ―βͺVjnββ.
Discard every index equal to β. The remaining sets are some Ui1ββ,β¦,Uimββ with mβN, and we still have
AβUi1βββͺβ―βͺUimββ,
since points of A do not lie in XβA=Vββ. Therefore (Ui1ββ,β¦,Uimββ) is a finite subcover of A.
We have shown that every open cover of A in X has a finite subcover. By Compact Subset Criterion via Open Covers in the Ambient Space, the subset A is compact in X.