Zulip Chat Archive
Stream: Is there code for X?
Topic: Converting infinite sums to integrals
Cookie Guy (Feb 24 2026 at 20:51):
Is there a way for me to argue about a sum by noticing it is in the form of a reimann integral?
Like something like.
(hf : ContinuousOn f (Set.Icc a b)) : Filter.Tendsto (fun (n : ℕ) => ((b - a) / n : ℝ) * ∑ k ∈ Finset.Icc 1 n, f (a + k * (b - a) / n : ℝ)) Filter.atTop (nhds (∫ x in a..b, f x))
I cant find a theorem in athlib for me to argue about things like this
Weiyi Wang (Feb 24 2026 at 21:17):
I would start by looking into files around https://leanprover-community.github.io/mathlib4_docs/Mathlib/Analysis/BoxIntegral/Basic.html
Weiyi Wang (Feb 24 2026 at 21:23):
Them there is docs#MeasureTheory.ContinuousOn.hasBoxIntegral that connects two notion of integral
Cookie Guy (Feb 25 2026 at 15:14):
Yes, but I still do not know how to convert this box integral into a sum. My best guess is BoxIntegral.HasIntegral.sum, but im still not sure how to use it to prove this.
Weiyi Wang (Feb 25 2026 at 15:41):
I think it is docs#BoxIntegral.HasIntegral.tendsto
Last updated: Feb 28 2026 at 14:05 UTC