Zulip Chat Archive
Stream: mathlib4
Topic: Is Stolz–Cesàro theorem formalized in mathlib?
Planck Anderson (Jul 15 2025 at 07:26):
Hi all,
I was wondering whether the Stolz–Cesàro theorem has been formalized in mathlib4 yet. I searched but couldn't find anything like stolz, cesaro, or relevant lemmas involving difference quotients of sequences.
To clarify, I’m referring to the version that says:
If is strictly increasing and tends to , and if
then
Has this been proven or is anyone working on it?
Sébastien Gouëzel (Jul 15 2025 at 07:30):
We have docs#Filter.Tendsto.cesaro and docs#Filter.Tendsto.cesaro_smul (which are the classical version for b_n = n), but probably not the version you're mentioning (although the proof won't be really different).
Sébastien Gouëzel (Jul 15 2025 at 07:31):
(The main lemma in our proof is docs#Asymptotics.IsLittleO.sum_range, which is also suitable for your statement)
Planck Anderson (Jul 15 2025 at 08:12):
Hi Sébastien, thanks a lot for the detailed response!
My math background is still not very strong, and I'm not yet familiar with how to use the tools you mentioned to prove this version of the theorem.
So far I only know how to prove the Stolz–Cesàro theorem using the classical – language, i.e.,
But I’ll try to understand how to approach it using the Filter framework now — really appreciate the guidance!
Sébastien Gouëzel (Jul 15 2025 at 08:18):
The approach is exactly what is done in the proof of docs#Asymptotics.IsLittleO.sum_range, there's no way around it in this proof. But it has already been done for you there, you just need to apply the lemma now.
Planck Anderson (Jul 15 2025 at 08:23):
Thanks for the reply!
How about the version of the Stolz–Cesàro theorem I’m referring to is the one usually proven in undergraduate real analysis using an ε–N argument. Below is the version and proof I mean, presented in full detail:
Let be a strictly increasing sequence tending to , and suppose
then we have
The proof I’m following goes like this:
• First prove the case :
For any , there exists such that for all ,
Summing up, we get:
Dividing both sides by and letting gives:
Hence .
• For general , let . Then
and we reduce to the case again.
• For , one shows that
for any , eventually in , which implies is also strictly increasing and diverges to .
I will try to read docs#Asymptotics.IsLittleO.sum_range and prove it. And I also wanna try something like I mentioned~
Kenny Lau (Jul 15 2025 at 08:36):
@Planck Anderson well if there's a relevant lemma then you should always use it, in mathlib you shouldn't have to prove a lot of things from scratch
Planck Anderson (Jul 15 2025 at 08:47):
thanks a lot, I just found that docs#Asymptotics.IsLittleO.sum_range was really useful!!
Last updated: Dec 20 2025 at 21:32 UTC