Urysohn's lemma
ProvedFamousTheorems.urysohn_lemmaUrysohn's lemma. Let be a normal topological space and disjoint closed sets. There is a continuous function with on and on .
It is the fundamental link between the separation axioms and real-valued functions. It is the key step in the Tietze extension theorem, in Urysohn's metrization theorem, and in constructing partitions of unity.
Formalization note. Mathlib's exists_continuous_zero_one_of_isClosed. C(X, ℝ) is the type of continuous real functions on X. The range condition is stated pointwise as f x ∈ Set.Icc 0 1.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem urysohn_lemma {X : Type*} [TopologicalSpace X] [NormalSpace X] {s t : Set X} (hs : IsClosed s) (ht : IsClosed t)
(hd : Disjoint s t) : ∃ f : C(X, ℝ), Set.EqOn f 0 s ∧ Set.EqOn f 1 t ∧ ∀ x, f x ∈ Set.Icc (0 : ℝ) 1 := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `exists_continuous_zero_one_of_isClosed`. Proof here reduces to that Mathlib result.