Skip to content

Commit 0fd5c83

Browse files
committed
feat(MeasureTheory/Function/LocallyIntegrable): add ContinuousOn.integrableOn_of_subset_isCompact; golf ContinuousOn.integrableOn_compact'
1 parent f5d2189 commit 0fd5c83

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

Mathlib/MeasureTheory/Function/LocallyIntegrable.lean

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -482,19 +482,31 @@ theorem ContinuousOn.locallyIntegrableOn [IsLocallyFiniteMeasure μ]
482482
(hK : MeasurableSet K) : LocallyIntegrableOn f K μ := fun _x hx =>
483483
hf.integrableAt_nhdsWithin hK hx
484484

485+
/-- If `f` is continuous on a compact set `K`, then it is integrable on any measurable subset
486+
`s ⊆ K` of finite measure. -/
487+
theorem ContinuousOn.integrableOn_of_subset_isCompact (hf : ContinuousOn f K)
488+
(hK : IsCompact K) (hs : MeasurableSet s) (h's : s ⊆ K) (mus : μ s ≠ ∞) :
489+
IntegrableOn f s μ := by
490+
constructor
491+
· borelize E
492+
rw [aestronglyMeasurable_iff_aemeasurable_separable]
493+
refine ⟨(hf.mono h's).aemeasurable hs, f '' s, ?_, ?_⟩
494+
· exact (hK.image_of_continuousOn hf).isSeparable.mono (image_mono h's)
495+
· filter_upwards [ae_restrict_mem hs] with a ha using mem_image_of_mem f ha
496+
· have : Fact (μ s < ∞) := ⟨mus.lt_top⟩
497+
obtain ⟨C, hC⟩ : ∃ C, ∀ x ∈ f '' K, ‖x‖ ≤ C :=
498+
IsBounded.exists_norm_le (hK.image_of_continuousOn hf).isBounded
499+
apply HasFiniteIntegral.of_bounded (C := C)
500+
filter_upwards [ae_restrict_mem hs] with a ha using hC _ (mem_image_of_mem f (h's ha))
501+
485502
variable [IsFiniteMeasureOnCompacts μ]
486503

487504
/-- A function `f` continuous on a compact set `K` is integrable on this set with respect to any
488505
locally finite measure. -/
489506
theorem ContinuousOn.integrableOn_compact'
490507
(hK : IsCompact K) (h'K : MeasurableSet K) (hf : ContinuousOn f K) :
491508
IntegrableOn f K μ := by
492-
refine ⟨ContinuousOn.aestronglyMeasurable_of_isCompact hf hK h'K, ?_⟩
493-
have : Fact (μ K < ∞) := ⟨hK.measure_lt_top⟩
494-
obtain ⟨C, hC⟩ : ∃ C, ∀ x ∈ f '' K, ‖x‖ ≤ C :=
495-
IsBounded.exists_norm_le (hK.image_of_continuousOn hf).isBounded
496-
apply HasFiniteIntegral.of_bounded (C := C)
497-
filter_upwards [ae_restrict_mem h'K] with x hx using hC _ (mem_image_of_mem f hx)
509+
exact hf.integrableOn_of_subset_isCompact hK h'K Subset.rfl hK.measure_ne_top
498510

499511
theorem ContinuousOn.integrableOn_compact [T2Space X]
500512
(hK : IsCompact K) (hf : ContinuousOn f K) : IntegrableOn f K μ :=

0 commit comments

Comments
 (0)