Two subsets A {\displaystyle A} and B {\displaystyle B} of a topological space X {\displaystyle X} are said to be separated by neighbourhoods if there are neighbourhoods U {\displaystyle U} of A {\displaystyle A} and V {\displaystyle V} of B {\displaystyle B} that are disjoint. In particular A {\displaystyle A} and B {\displaystyle B} are necessarily disjoint.
Two plain subsets A {\displaystyle A} and B {\displaystyle B} are said to be separated by a continuous function if there exists a continuous function f : X → [ 0 , 1 ] {\displaystyle f:X\to [0,1]} from X {\displaystyle X} into the unit interval [ 0 , 1 ] {\displaystyle [0,1]} such that f ( a ) = 0 {\displaystyle f(a)=0} for all a ∈ A {\displaystyle a\in A} and f ( b ) = 1 {\displaystyle f(b)=1} for all b ∈ B . {\displaystyle b\in B.} Any such function is called a Urysohn function for A {\displaystyle A} and B . {\displaystyle B.} In particular A {\displaystyle A} and B {\displaystyle B} are necessarily disjoint.
It follows that if two subsets A {\displaystyle A} and B {\displaystyle B} are separated by a function then so are their closures. Also it follows that if two subsets A {\displaystyle A} and B {\displaystyle B} are separated by a function then A {\displaystyle A} and B {\displaystyle B} are separated by neighbourhoods.
A normal space is a topological space in which any two disjoint closed sets can be separated by neighbourhoods. Urysohn's lemma states that a topological space is normal if and only if any two disjoint closed sets can be separated by a continuous function.
The sets A {\displaystyle A} and B {\displaystyle B} need not be precisely separated by f {\displaystyle f} , i.e., it is not necessary and guaranteed that f ( x ) ≠ 0 {\displaystyle f(x)\neq 0} and ≠ 1 {\displaystyle \neq 1} for x {\displaystyle x} outside A {\displaystyle A} and B . {\displaystyle B.} A topological space X {\displaystyle X} in which every two disjoint closed subsets A {\displaystyle A} and B {\displaystyle B} are precisely separated by a continuous function is perfectly normal.
Urysohn's lemma has led to the formulation of other topological properties such as the 'Tychonoff property' and 'completely Hausdorff spaces'. For example, a corollary of the lemma is that normal T1 spaces are Tychonoff.
A topological space X {\displaystyle X} is normal if and only if, for any two non-empty closed disjoint subsets A {\displaystyle A} and B {\displaystyle B} of X , {\displaystyle X,} there exists a continuous map f : X → [ 0 , 1 ] {\displaystyle f:X\to [0,1]} such that f ( A ) = { 0 } {\displaystyle f(A)=\{0\}} and f ( B ) = { 1 } . {\displaystyle f(B)=\{1\}.}
The proof proceeds by repeatedly applying the following alternate characterization of normality. If X {\displaystyle X} is a normal space, Z {\displaystyle Z} is an open subset of X {\displaystyle X} , and Y ⊆ Z {\displaystyle Y\subseteq Z} is closed, then there exists an open U {\displaystyle U} and a closed V {\displaystyle V} such that Y ⊆ U ⊆ V ⊆ Z {\displaystyle Y\subseteq U\subseteq V\subseteq Z} .
Let A {\displaystyle A} and B {\displaystyle B} be disjoint closed subsets of X {\displaystyle X} . The main idea of the proof is to repeatedly apply this characterization of normality to A {\displaystyle A} and B ∁ {\displaystyle B^{\complement }} , continuing with the new sets built on every step.
The sets we build are indexed by dyadic fractions. For every dyadic fraction r ∈ ( 0 , 1 ) {\displaystyle r\in (0,1)} , we construct an open subset U ( r ) {\displaystyle U(r)} and a closed subset V ( r ) {\displaystyle V(r)} of X {\displaystyle X} such that:
Intuitively, the sets U ( r ) {\displaystyle U(r)} and V ( r ) {\displaystyle V(r)} expand outwards in layers from A {\displaystyle A} :
This construction proceeds by mathematical induction. For the base step, we define two extra sets U ( 1 ) = B ∁ {\displaystyle U(1)=B^{\complement }} and V ( 0 ) = A {\displaystyle V(0)=A} .
Now assume that n ≥ 0 {\displaystyle n\geq 0} and that the sets U ( k / 2 n ) {\displaystyle U\left(k/2^{n}\right)} and V ( k / 2 n ) {\displaystyle V\left(k/2^{n}\right)} have already been constructed for k ∈ { 1 , … , 2 n − 1 } {\displaystyle k\in \{1,\ldots ,2^{n}-1\}} . Note that this is vacuously satisfied for n = 0 {\displaystyle n=0} . Since X {\displaystyle X} is normal, for any a ∈ { 0 , 1 , … , 2 n − 1 } {\displaystyle a\in \left\{0,1,\ldots ,2^{n}-1\right\}} , we can find an open set and a closed set such that
The above three conditions are then verified.
Once we have these sets, we define f ( x ) = 1 {\displaystyle f(x)=1} if x ∉ U ( r ) {\displaystyle x\not \in U(r)} for any r {\displaystyle r} ; otherwise f ( x ) = inf { r : x ∈ U ( r ) } {\displaystyle f(x)=\inf\{r:x\in U(r)\}} for every x ∈ X {\displaystyle x\in X} , where inf {\displaystyle \inf } denotes the infimum. Using the fact that the dyadic rationals are dense, it is then not too hard to show that f {\displaystyle f} is continuous and has the property f ( A ) ⊆ { 0 } {\displaystyle f(A)\subseteq \{0\}} and f ( B ) ⊆ { 1 } . {\displaystyle f(B)\subseteq \{1\}.} This step requires the V ( r ) {\displaystyle V(r)} sets in order to work.
The Mizar project has completely formalised and automatically checked a proof of Urysohn's lemma in the URYSOHN3 file.
Willard 1970 Section 15. - Willard, Stephen (1970). General Topology. Dover Publications. ISBN 0-486-43479-6. ↩