Urysohn's lemma

See it in Lean

Axioms
ZFC only
Concerns
Normal

Statement

Let \(X\) be a normal space and let \(A, B \subseteq X\) be disjoint closed sets. Then there is a continuous function \(f : X \to \mathbb{R}\) with values in \([0, 1]\) such that \(f(a) = 0\) for every \(a \in A\) and \(f(b) = 1\) for every \(b \in B\).

Proof

We first choose a family of open sets indexed by the dyadic rationals, then define \(f\) from it and check continuity. We use normality in the equivalent form: for every closed set \(C\) and open set \(W \supseteq C\) there is an open set \(U\) with \(C \subseteq U \subseteq \overline{U} \subseteq W\).

Step 1: there are open sets \(U_r\) satisfying \((*)\). Let \(D_n = \{k / 2^n : 0 \le k \le 2^n\}\) and let \(D = \bigcup_n D_n\) be the set of dyadic rationals in \([0, 1]\). We choose open sets \(U_r\), \(r \in D\), such that \[A \subseteq U_0, \qquad U_1 = X \setminus B, \qquad \overline{U_r} \subseteq U_s \text{ whenever } r < s \text{ in } D. \tag{$*$}\] Put \(U_1 = X \setminus B\), an open set containing the closed set \(A\), and choose an open \(U_0\) with \(A \subseteq U_0 \subseteq \overline{U_0} \subseteq U_1\). This gives \((*)\) on \(D_0 = \{0, 1\}\). Suppose that \(U_r\) has been chosen for \(r \in D_n\) satisfying \((*)\) on \(D_n\). Each \(r \in D_{n+1} \setminus D_n\) is \(r = (2k + 1)/2^{n+1}\), between the consecutive points \(k/2^n < (k+1)/2^n\) of \(D_n\); choose an open \(U_r\) with \(\overline{U_{k/2^n}} \subseteq U_r \subseteq \overline{U_r} \subseteq U_{(k+1)/2^n}\). Then \(\overline{U_t} \subseteq U_{t'}\) for any two consecutive points \(t < t'\) of \(D_{n+1}\), since one of them is new and the other is its neighbour in \(D_n\). If \(r < s\) in \(D_{n+1}\), list the points of \(D_{n+1}\) from \(r\) to \(s\) as \(r = t_0 < t_1 < \dots < t_m = s\); then \(\overline{U_{t_0}} \subseteq U_{t_1} \subseteq \overline{U_{t_1}} \subseteq \dots \subseteq U_{t_m}\), which is \((*)\) on \(D_{n+1}\). By induction the sets \(U_r\), \(r \in D\), satisfy \((*)\).

Step 2: the function \(f\). For \(x \in X\) let \(f(x)\) be the infimum of \(\{r \in D : x \in U_r\}\), and \(f(x) = 1\) if this set is empty. Then \(f(x) \in [0, 1]\), \(f = 0\) on \(A \subseteq U_0\), and \(f = 1\) on \(B\), since \(B\) is disjoint from \(U_1\) and so, by \((*)\), from every \(U_r\). Two observations, for \(r \in D\):

  1. If \(x \in \overline{U_r}\), then \(f(x) \le r\). Indeed \(x \in U_s\) for every \(s \in D\) with \(s > r\), by \((*)\), and such \(s\) come arbitrarily close to \(r\) when \(r < 1\); when \(r = 1\) there is nothing to prove.
  2. If \(x \notin U_r\), then \(f(x) \ge r\). Indeed, if \(x \in U_s\) with \(s \in D\), then \(s > r\): \(s = r\) is excluded, and \(s < r\) would give \(x \in U_s \subseteq \overline{U_s} \subseteq U_r\). So every element of \(\{s \in D : x \in U_s\}\) exceeds \(r\), and \(f(x) \ge r\) also when this set is empty, since then \(f(x) = 1\).

Step 3: \(f\) is continuous. The sets \([0, a)\) with \(0 < a \le 1\) and \((b, 1]\) with \(0 \le b < 1\) form a subbase of the topology of \([0, 1]\), so it suffices to show that their preimages are open.

  • \(f^{-1}([0, a)) = \bigcup \{U_r : r \in D, r < a\}\). If \(f(x) < a \le 1\), the set \(\{r \in D : x \in U_r\}\) is nonempty with infimum below \(a\), so \(x \in U_r\) for some \(r < a\). Conversely, \(x \in U_r\) gives \(f(x) \le r\) by observation 1.
  • \(f^{-1}((b, 1]) = \bigcup \{X \setminus \overline{U_s} : s \in D, s > b\}\). If \(f(x) > b\), choose \(s \in D\) with \(b < s < f(x)\); then \(x \notin \overline{U_s}\) by observation 1. Conversely, if \(x \notin \overline{U_s}\) with \(s > b\), then \(x \notin U_s\), so \(f(x) \ge s > b\) by observation 2.

Both are unions of open sets. So \(f\) is continuous, and by Step 2 it has the required values. \(\blacksquare\)

Where it is used

Cited in proofs of other theorems

Cited elsewhere

References

  • Willard, General Topology (2004), 15.6 (Urysohn's lemma)