@@ -3,12 +3,13 @@ Copyright (c) 2021 Yury Kudryashov. All rights reserved.
33Released under Apache 2.0 license as described in the file LICENSE.
44Authors: Yury Kudryashov
55-/
6+ import Mathlib.Algebra.Order.Group.Indicator
67import Mathlib.Analysis.Normed.Affine.AddTorsor
8+ import Mathlib.Analysis.Normed.Order.Lattice
79import Mathlib.Analysis.NormedSpace.FunctionSeries
810import Mathlib.Analysis.SpecificLimits.Basic
911import Mathlib.LinearAlgebra.AffineSpace.Ordered
1012import Mathlib.Topology.ContinuousMap.Algebra
11- import Mathlib.Topology.ContinuousMap.CompactlySupported
1213import Mathlib.Topology.GDelta.Basic
1314
1415/-!
@@ -82,7 +83,7 @@ Urysohn's lemma, normal topological space, locally compact topological space
8283
8384variable {X : Type *} [TopologicalSpace X]
8485
85- open Set Filter TopologicalSpace Topology Filter CompactlySupported
86+ open Set Filter TopologicalSpace Topology Filter
8687open scoped Pointwise
8788
8889namespace Urysohns
@@ -527,22 +528,22 @@ contained in an open set `V`, there exists a compactly supported continuous func
527528`0 ≤ f ≤ 1`, `f = 1` on K and the support of `f` is contained in `V`. -/
528529lemma exists_continuous_one_of_compact_subset_open [T2Space X] [LocallyCompactSpace X]
529530 {K V : Set X} (hK : IsCompact K) (hV : IsOpen V) (hKV : K ⊆ V) :
530- ∃ (f : C_c(X, ℝ)), Set.EqOn (⇑f) 1 K ∧ tsupport ⇑f ⊆ V ∧ ∀ (x : X), f x ∈ Set.Icc 0 1 := by
531+ ∃ f : C(X, ℝ), Set.EqOn (⇑f) 1 K ∧ IsCompact (tsupport ⇑f)
532+ ∧ tsupport ⇑f ⊆ V ∧ ∀ (x : X), f x ∈ Set.Icc 0 1 := by
531533 rcases exists_open_between_and_isCompact_closure hK hV hKV with ⟨U, hU1, hU2, hU3, hU4⟩
532534 rcases exists_tsupport_one_of_isOpen_isClosed hU1 hU4 (IsCompact.isClosed hK) hU2
533535 with ⟨f, hf1, hf2, hf3⟩
534- have : IsCompact (tsupport ⇑f) := by
535- refine IsCompact.of_isClosed_subset hU4 ?_ ?_
536+ use f
537+ simp only [Set.mem_Icc]
538+ refine ⟨?_, ?_, ?_, ?_⟩
539+ · intro x hx
540+ simp only [Pi.one_apply]
541+ exact hf2 hx
542+ · refine IsCompact.of_isClosed_subset hU4 ?_ ?_
536543 · apply isClosed_closure
537544 · trans U
538545 · exact hf1
539546 · apply subset_closure
540- use ⟨f, by apply hasCompactSupport_def.mpr this⟩
541- simp only [CompactlySupportedContinuousMap.coe_mk, Set.mem_Icc]
542- constructor <;> try constructor
543- · intro x hx
544- simp only [Pi.one_apply]
545- exact hf2 hx
546547 · trans U
547548 · exact hf1
548549 · trans closure U
0 commit comments