Let be compact Hausdorff, let , and let be a neighbourhood of . Choose an open with . Apply the separation result from part (a) to the disjoint closed sets and . There is an open whose closure lies in . Then
is compact, contains the neighbourhood of , and lies in . Thus is locally compact.
Conversely, suppose is locally compact Hausdorff and is closed in every compact . For , choose a compact neighbourhood of and an open set with
Since is closed in , there is an open set such that
Then is an open neighbourhood of disjoint from . Thus is open and
This is the compactly detected closed-set theorem in a locally compact Hausdorff space.