Skip to content

Commit 01773e7

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

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Mathlib/MeasureTheory/Integral/IntegralEqImproper.lean

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,33 @@ 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+
have hdiff : Ioi a \ Ioc a ε = Ioi ε := by simp [hε]
640+
calc
641+
_ = ∫ x in Ioi a \ Ioc a ε, f x := by rw [hdiff]
642+
_ = (∫ x in Ioi a, f x) - ∫ x in Ioc a ε, f x :=
643+
integral_diff measurableSet_Ioc hf Ioc_subset_Ioi_self
644+
_ = (∫ x in Ioi a, f x) - ∫ x in a..ε, f x := by rw [intervalIntegral.integral_of_le hε]
645+
have hev_eq : (fun i ↦ ∫ x in Ioi (b i), f x) =ᶠ[l]
646+
(fun i ↦ (∫ x in Ioi a, f x) - ∫ x in a..b i, f x) := by
647+
apply (hb.eventually self_mem_nhdsWithin).mono
648+
intro i hi
649+
exact hε_split (b i) hi
650+
rw [tendsto_congr' hev_eq]
651+
simpa using tendsto_const_nhds.sub (h_lim_zero.comp hb)
652+
626653
open Real
627654

628655
open scoped Interval

0 commit comments

Comments
 (0)