Skip to content

Commit b9f6f5a

Browse files
committed
feat(MeasureTheory/Integral): add IntegrableOn.tendsto_integral_Ioi
1 parent 43127ac commit b9f6f5a

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Mathlib/MeasureTheory/Integral/IntegralEqImproper.lean

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,32 @@ theorem intervalIntegral_tendsto_integral_Ioi (a : ℝ) (hfi : IntegrableOn f (I
623623

624624
end IntegralOfIntervalIntegral
625625

626+
theorem IntegrableOn.tendsto_integral_Ioi {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
627+
{a : ℝ} {g : ℝ → E} (hg : IntegrableOn g (Ioi a)) :
628+
Tendsto (fun ε : ℝ ↦ ∫ x in Ioi ε, g x) (𝓝[>] a) (𝓝 (∫ x in Ioi a, g x)) := by
629+
have hg' : IntervalIntegrable g volume a (a + 1) := by
630+
rw [intervalIntegrable_iff_integrableOn_Ioc_of_le (by linarith)]
631+
exact hg.mono_set Ioc_subset_Ioi_self
632+
have h_lim_zero : Tendsto (fun ε ↦ ∫ x in a..ε, g x) (𝓝[>] a) (𝓝 0) := by
633+
have hcont : ContinuousWithinAt (fun ε ↦ ∫ x in a..ε, g x) (Icc a (a + 1)) a :=
634+
intervalIntegral.continuousWithinAt_primitive (by simp) (by simpa using hg')
635+
have hge : Tendsto (fun ε ↦ ∫ x in a..ε, g x) (𝓝[≥] a) (𝓝 0) := by
636+
simpa [ContinuousWithinAt] using hcont
637+
exact hge.mono_left (nhdsWithin_mono a Ioi_subset_Ici_self)
638+
have hε_split (ε : ℝ) (hε : a < ε) :
639+
∫ x in Ioi ε, g x = (∫ x in Ioi a, g x) - ∫ x in a..ε, g x := by
640+
have hdiff : Ioi a \ Ioc a ε = Ioi ε := by simp [hε, max_eq_right_of_lt]
641+
calc
642+
_ = ∫ x in Ioi a \ Ioc a ε, g x := by rw [hdiff]
643+
_ = (∫ x in Ioi a, g x) - ∫ x in Ioc a ε, g x :=
644+
integral_diff measurableSet_Ioc hg Ioc_subset_Ioi_self
645+
_ = (∫ x in Ioi a, g x) - ∫ x in a..ε, g x := by rw [intervalIntegral.integral_of_le hε.le]
646+
have hev_eq : (fun ε ↦ ∫ x in Ioi ε, g x) =ᶠ[𝓝[>] a]
647+
(fun ε ↦ (∫ x in Ioi a, g x) - ∫ x in a..ε, g x) :=
648+
eventually_of_mem (self_mem_nhdsWithin : Ioi a ∈ 𝓝[>] a) hε_split
649+
rw [tendsto_congr' hev_eq]
650+
simpa using tendsto_const_nhds.sub h_lim_zero
651+
626652
open Real
627653

628654
open scoped Interval

0 commit comments

Comments
 (0)