Skip to content

Commit 163c192

Browse files
Urysohn Normal of_separating
1 parent 19d0290 commit 163c192

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Mathlib/Topology/UrysohnsLemma.lean

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,25 @@ end CU
315315

316316
end Urysohns
317317

318+
319+
/-- Urysohn's lemma: a topological space `X` is normal if for any two disjoint closed sets `s` and
320+
`t` there exists a continuous function `f : X → ℝ` such that
321+
322+
* `f` equals zero on `s`;
323+
* `f` equals one on `t`.
324+
-/
325+
lemma NormalSpace.of_separating {X} [TopologicalSpace X]
326+
(sep : {U V : Set X} → IsClosed U → IsClosed V → Disjoint U V →
327+
{ f : C(X, ℝ) // EqOn f 0 U ∧ EqOn f 1 V }) : NormalSpace X where
328+
normal {s t} sC tC disj := by
329+
obtain ⟨f, hf₀, hf₁⟩ := sep sC tC disj
330+
use f ⁻¹' (Iio 0.5), f ⁻¹' (Ioi 0.5), isOpen_Iio.preimage f.continuous,
331+
isOpen_Ioi.preimage f.continuous
332+
split_ands
333+
· intro x hxs; simp [hf₀ hxs]; linarith
334+
· intro x hxt; simp [hf₁ hxt]; linarith
335+
· apply Disjoint.preimage; simp
336+
318337
/-- Urysohn's lemma: if `s` and `t` are two disjoint closed sets in a normal topological space `X`,
319338
then there exists a continuous function `f : X → ℝ` such that
320339

0 commit comments

Comments
 (0)