Skip to content

Commit abb7548

Browse files
committed
Second
1 parent ee8e9d8 commit abb7548

3 files changed

Lines changed: 18 additions & 15 deletions

File tree

Mathlib/MeasureTheory/Integral/RieszMarkovKakutani/NNReal.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ theorem eq_of_integral_eq_on_Cc {μ ν : Measure X} [Measure.Regular μ] [Measur
8181
apply integral_eq_integral_pos_part_sub_integral_neg_part
8282
exact Continuous.integrable_of_hasCompactSupport f.1.2 f.2
8383

84-
/-Let μ be a measure that is finite on compact sets. Then μ induces a linear functional on
85-
`C_c(X, ℝ≥0)`.-/
84+
/-- Let μ be a measure that is finite on compact sets. Then μ induces a linear functional on
85+
`C_c(X, ℝ≥0)`. -/
8686
noncomputable def integralLinearMap (μ : Measure X) [OpensMeasurableSpace X]
8787
[MeasureTheory.IsFiniteMeasureOnCompacts μ] :
8888
C_c(X, ℝ≥0) →ₗ[ℝ≥0] ℝ≥0 :=

Mathlib/MeasureTheory/Integral/RieszMarkovKakutani/Real.lean

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,11 @@ lemma compare_measure_of_compact_sets {μ ν : Measure X} [Measure.OuterRegular
363363
· rw [WithTop.add_lt_top]; constructor
364364
· exact hν
365365
· exact ENNReal.coe_lt_top
366-
have hf : ∃ (f : C_c(X, ℝ)), Set.EqOn (⇑f) 1 K ∧ tsupport ⇑f ⊆ V
366+
have hf : ∃ f : C_c(X, ℝ), Set.EqOn (⇑f) 1 K ∧ tsupport ⇑f ⊆ V
367367
∧ ∀ (x : X), f x ∈ Set.Icc 0 1 := by
368-
exact exists_continuous_one_of_compact_subset_open hK pV2 pV1
368+
rcases exists_continuous_one_of_compact_subset_open hK pV2 pV1 with ⟨f, hf1, hf2, hf3⟩
369+
use ⟨f, hasCompactSupport_def.mpr hf2⟩
370+
exact ⟨hf1, hf3⟩
369371
rcases hf with ⟨f, pf1, pf2, pf3⟩
370372
calc
371373
(μ K).toReal

Mathlib/Topology/UrysohnsLemma.lean

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ Copyright (c) 2021 Yury Kudryashov. All rights reserved.
33
Released under Apache 2.0 license as described in the file LICENSE.
44
Authors: Yury Kudryashov
55
-/
6+
import Mathlib.Algebra.Order.Group.Indicator
67
import Mathlib.Analysis.Normed.Affine.AddTorsor
8+
import Mathlib.Analysis.Normed.Order.Lattice
79
import Mathlib.Analysis.NormedSpace.FunctionSeries
810
import Mathlib.Analysis.SpecificLimits.Basic
911
import Mathlib.LinearAlgebra.AffineSpace.Ordered
1012
import Mathlib.Topology.ContinuousMap.Algebra
11-
import Mathlib.Topology.ContinuousMap.CompactlySupported
1213
import Mathlib.Topology.GDelta.Basic
1314

1415
/-!
@@ -82,7 +83,7 @@ Urysohn's lemma, normal topological space, locally compact topological space
8283

8384
variable {X : Type*} [TopologicalSpace X]
8485

85-
open Set Filter TopologicalSpace Topology Filter CompactlySupported
86+
open Set Filter TopologicalSpace Topology Filter
8687
open scoped Pointwise
8788

8889
namespace 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`. -/
528529
lemma 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

Comments
 (0)