A space with an infinite closed set of isolated points is not pseudocompact

See it in Lean

Axioms
ZFC only
Concerns
Pseudocompact

Statement

Let \(X\) be a space and let \(S \subseteq X\) be an infinite closed set each point of which is isolated in \(X\): \(\{s\}\) is open for every \(s \in S\). Then \(X\) is not pseudocompact.

Proof

We construct an unbounded continuous function \(f : X \to \mathbb{R}\). Since \(S\) is infinite, there are distinct points \(s_0, s_1, s_2, \dots\) in \(S\); let \(D = \{s_n : n \in \mathbb{N}\}\).

\(D\) is closed. Let \(x \notin D\). If \(x \in S\), then \(\{x\}\) is an open set containing \(x\) and disjoint from \(D\). If \(x \notin S\), then \(X \setminus S\) is an open set containing \(x\) and disjoint from \(D\), since \(S\) is closed and \(D \subseteq S\). So \(X \setminus D\) is open.

Define \(f(s_n) = n\) for every \(n\) and \(f(x) = 0\) for \(x \notin D\); this is well defined since the \(s_n\) are distinct. Every point has an open neighbourhood on which \(f\) is constant: \(\{s_n\}\) for the point \(s_n\), and the open set \(X \setminus D\) for a point outside \(D\). So \(f\) is continuous. It takes the value \(n\) for every \(n \in \mathbb{N}\), so it is unbounded. \(\blacksquare\)

Where it is used

Cited on space pages