Skip to content

Commit 7c81d6f

Browse files
committed
feat(MeasureTheory/Integral/IntegralEqImproper): add IntegrableOn.tendsto_integral_Ioi
1 parent d661927 commit 7c81d6f

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 : ℝ} {f : ℝ → E} (hf : IntegrableOn f (Ioi a)) {b : ι → ℝ} {l : Filter ι}
628+
(hb : Tendsto b l (𝓝[≥] a)) :
629+
Tendsto (fun i ↦ ∫ x in Ioi (b i), f x) l (𝓝 (∫ x in Ioi a, f x)) := by
630+
have hf' : IntervalIntegrable f volume a (a + 1) := by
631+
rw [intervalIntegrable_iff_integrableOn_Ioc_of_le (by linarith)]
632+
exact hf.mono_set Ioc_subset_Ioi_self
633+
have h_lim_zero : Tendsto (fun ε ↦ ∫ x in a..ε, f x) (𝓝[≥] a) (𝓝 0) := by
634+
have hcont : ContinuousWithinAt (fun ε ↦ ∫ x in a..ε, f x) (Icc a (a + 1)) a :=
635+
intervalIntegral.continuousWithinAt_primitive (by simp) (by simpa using hf')
636+
simpa [ContinuousWithinAt] using hcont
637+
have hε_split (ε : ℝ) (hε : a ≤ ε) :
638+
∫ x in Ioi ε, f x = (∫ x in Ioi a, f x) - ∫ x in a..ε, f x := by
639+
calc
640+
_ = ∫ x in Ioi a \ Ioc a ε, f x := by simp [hε]
641+
_ = (∫ x in Ioi a, f x) - ∫ x in Ioc a ε, f x :=
642+
integral_diff measurableSet_Ioc hf Ioc_subset_Ioi_self
643+
_ = _ := by rw [intervalIntegral.integral_of_le hε]
644+
have hev_eq : (fun i ↦ ∫ x in Ioi (b i), f x) =ᶠ[l]
645+
(fun i ↦ (∫ x in Ioi a, f x) - ∫ x in a..b i, f x) := by
646+
apply (hb.eventually self_mem_nhdsWithin).mono
647+
intro i hi
648+
exact hε_split (b i) hi
649+
rw [tendsto_congr' hev_eq]
650+
simpa using tendsto_const_nhds.sub (h_lim_zero.comp hb)
651+
626652
open Real
627653

628654
open scoped Interval

0 commit comments

Comments
 (0)