Mathlib theorem · Existing formal mathematics

Existing in Mathlib · Topology

Urysohn's Lemma

Two disjoint closed sets in a normal topological space can be separated continuously: a function takes the value zero on one set, one on the other, and stays between those values everywhere.

Exact theorem

Exact Mathlib statement

theorem exists_continuous_zero_one_of_isClosed {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

The theorem at a glance

Urysohn's Lemma at a glance

A visual guide to the theorem's hypotheses, structure, and conclusion; the exact statement gives the formal detail.

Normality supplies a continuous [0,1]-valued function that is zero on one closed set and one on the other. Explanatory diagram.
Detailed visual description

The poster makes the disjoint closed sets, normal-space shrinking step, recursive nested neighborhoods, continuous limit, and exact endpoint values visible. The separating field is a function, not a metric distance or a homeomorphism.

Statement structure

From hypotheses to conclusion

Statement map for Urysohn's LemmaDisjoint closed sets in a normal topological space are separated by a continuous real-valued function taking values in [0,1]. The pinned upstream declaration is exists_continuous_zero_one_of_isClosed. The exact checked statement is theorem exists_continuous_zero_one_of_isClosed {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.Mathematical readingDisjoint closed sets ina normal topologicalspace are separated by acontinuous real-valuedfunction taking valuesin [0,1].Pinned declarationmathlib ·exists_continuous_zero_one_of_isClosedExact checked formtheoremexists_continuous_zero_one_of_isClosed{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 : ℝ) 1Statement map for Urysohn's LemmaDisjoint closed sets in a normal topological space are separated by a continuous real-valued function taking values in [0,1]. The pinned upstream declaration is exists_continuous_zero_one_of_isClosed. The exact checked statement is theorem exists_continuous_zero_one_of_isClosed {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.Mathematical readingDisjoint closed sets ina normal topologicalspace are separated by acontinuous real-valuedfunction taking valuesin [0,1].Pinned declarationmathlib ·exists_continuous_zero_one_of_isClosedExact checked formtheoremexists_continuous_zero_one_of_isClosed{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

This map summarizes the statement's structure; the exact Mathlib declaration remains authoritative.

A continuous [0,1]-valued field separates the two closed sets exactly. Explanatory diagram.
Detailed visual description

A text-free topological landscape contains two closed regions with a clear gap. Successive nested contour bands create a smooth scalar ramp between them, flat on each endpoint set and bounded throughout.

Why it matters

A mathematical landmark

Urysohn's lemma is a central separation theorem and a gateway from abstract topology to continuous real-valued functions. It underlies metrization, embedding, and extension arguments.

ProofAtlas record

What has been checked

Upstream indexedPinned source bytes verified locally
Locally reproducedExact upstream declaration replayed
Reviewed pageCurrent public presentation reviewed
Accepted Atlas resultNot recorded for the preferred artifact

Mathlib is the source of the theorem; the local Lean replay and page review are separate.

Claim boundary

No new theorem is claimed

This page indexes Mathlib's Urysohn lemma for two disjoint closed subsets of a normal topological space. It produces a continuous real-valued function equal to zero on the first set, equal to one on the second, and valued in the closed interval [0,1]. It does not assert that the sets are nonempty, that the separator is unique, that it is a homeomorphism, or that the space is metrizable.

Source and local evidence

Where the theorem comes from

Existing declaration
exists_continuous_zero_one_of_isClosed in mathlib
Relationship
The checked artifact is the upstream declaration itself
Local Lean evidence
artifact.library.mathlib.urysohn-lemma.v001
Source
Open the pinned upstream reference