Proposition (Sequential characterization of closed sets, proof II). Let (X,d)(X,d) be a and let A⊂XA\subset X. Then AA is if and only if whenever (an)(a_n) is a sequence in AA and an→aa_n\to a, we have a∈Aa\in A.

Remarks

Proof sketch (using openness of the complement).

  • If AA is closed and an∈Aa_n\in A with an→aa_n\to a, suppose a∉Aa\notin A. Then a∈Aca\in A^c, and AcA^c is open, so some ball B(a;ε)⊂AcB(a;\varepsilon)\subset A^c. For large nn, an∈B(a;ε)a_n\in B(a;\varepsilon), contradicting an∈Aa_n\in A.
  • Conversely, assume the "contains limits" property and suppose AcA^c is not open. Then there exists a∈Aca\in A^c such that every ball around aa meets AA. Choose an∈A∩B(a;1/n)a_n\in A\cap B(a;1/n), so an→aa_n\to a but a∉Aa\notin A, a contradiction. Hence AcA^c is open and AA is closed.