Zulip Chat Archive
Stream: Is there code for X?
Topic: Summable if partial sums tend to zero
Xavier Roblot (Dec 08 2024 at 14:34):
I am looking for a statement that says that f : ℕ → ℝ
is summable iff the partial sum tends to zero whenever . I am not even sure on how to state it:
import Mathlib
example (f : ℕ → ℝ) :
Tendsto (fun (n, m) ↦ ∑ k in Finset.Ico n m, f k) atTop (𝓝 0) ↔ Summable f := by
sorry
example (f : ℕ → ℝ) :
∀ m, Tendsto (fun n ↦ ∑ k in Finset.Ico n (n + m), f k) atTop (𝓝 0) ↔ Summable f := by
sorry
We have some close results with Finset
but I really need to have interval instead.
Sébastien Gouëzel (Dec 08 2024 at 14:52):
Are you sure this is true? If you take 1
, then -1
, then 1/2
, then -1/2
, then 1/3
, then -1/3
and so on, then the sequence is not summable, but the partial sums along intervals tend to zero if I'm not mistaken.
Kevin Buzzard (Dec 08 2024 at 15:02):
Yeah, "summable" in Lean means "absolutely convergent" for sequences of reals.
Xavier Roblot (Dec 08 2024 at 15:05):
Yeah, I see. That might be a problem for what I want to prove...
Jireh Loreaux (Dec 08 2024 at 15:16):
If your series is nonnegative, then checking intervals would be sufficient. But otherwise, docs#summable_iff_vanishing_norm is the best you can do.
Xavier Roblot (Dec 08 2024 at 15:27):
Let me #xy for you so you see what the problem is. Consider a : ℕ → ℂ
and assume that is in for some . Then the Dirichlet series converges for . This is proved in Marcus, Number Fields, p. 129 and the way to prove it is to estimate the partial sums and prove that they tends to zero whenever .
Xavier Roblot (Dec 08 2024 at 15:31):
So I guess, unless a : ℕ → ℝ≥0
, I don't get absolute convergence and thus I have to assume that if I want to have docs#LSeriesSummable
Kevin Buzzard (Dec 08 2024 at 15:37):
Surely you mean something like Re(s)>r or something? If a_n=n then the sum is O(t^2) but this is zeta(s+1). (edit: now fixed)
Do you care about convergence which isn't absolute? e.g. are you summing Dirichlet series with nontrivial characters and 0<Re(s)<1 for example? Do these sums converge to functions which are holomorphic in s? (showing my ignorance of what happens beyond Re(s)=1)
Xavier Roblot (Dec 08 2024 at 15:37):
Right. Sorry. Let me fix that.
Kevin Buzzard (Dec 08 2024 at 15:42):
Concrete maths question to make my ignorance clear: the sum converges absolutely for with Re(s)>1 to a holomorphic function (n^s is defined to be exp(s.log(n)) for n a positive integer so there's no branch cuts involved). It also converges, non-absolutely, for Re(s)>0. Presumably the sum is still holomorphic as a function of s but I've realised I'm not entirely sure why.
Xavier Roblot (Dec 08 2024 at 15:44):
I am far from an expert on this topic. I am trying to formalize the result at https://mathoverflow.net/questions/482347/residue-of-dirichlet-series-at-s-1 (second answer) and I need summability to make things works...
Xavier Roblot (Dec 08 2024 at 15:46):
And I don't know how to get it...
Mitchell Lee (Dec 08 2024 at 16:32):
Kevin Buzzard said:
Concrete maths question to make my ignorance clear: the sum converges absolutely for with Re(s)>1 to a holomorphic function (n^s is defined to be exp(s.log(n)) for n a positive integer so there's no branch cuts involved). It also converges, non-absolutely, for Re(s)>0. Presumably the sum is still holomorphic as a function of s but I've realised I'm not entirely sure why.
I don't know a counterexample off the top of my head, but I don't think absolute convergence is enough to imply that a series of holomorphic functions is holomorphic. However, locally uniform convergence is sufficient (https://proofwiki.org/wiki/Uniform_Limit_of_Analytic_Functions_is_Analytic). You can do that particular sum for Re(s) > 0 by pairing adjacent summands to get
which is absolutely and locally uniformly convergent on {Re(s) > 0}.
Mitchell Lee (Dec 08 2024 at 16:38):
Conditional convergence for series tends to be written out explicitly in mathlib. So the equation
would be written simply as HasSum f L
if the series is unconditionally convergent, but it would need to be written as Filter.Tendsto (fun (n : ℕ) => ∑ i ∈ Finset.range n, f i) Filter.atTop (nhds L)
if the series is only conditionally convergent. For example, see HasSum.tendsto_sum_nat. This should probably be considered a gap in the library.
Michael Stoll (Dec 08 2024 at 16:39):
For L-series, it is generally true that if it converges (conditionally) at some point , then it is holomorphic on the half-plane . However, this is not available in Mathlib (yet), basically because of Mathlib's equating convergence with absolute convergence.
Michael Stoll (Dec 08 2024 at 16:40):
It would make sense to develop some theory and API for conditionally converging series (at least when the domain of summation is Nat
, but possibly in larger generality, if it makes sense).
Michael Stoll (Dec 08 2024 at 16:41):
@Xavier Roblot Are you thinking of Dedekind zeta functions? Maybe @David Loeffler has some ideas how to prove analytic continuation for them.
Mitchell Lee (Dec 08 2024 at 16:43):
Conditionally convergent series can be defined for functions on a locally finite preorder; I am not sure if this is the correct amount of generality.
Yakov Pechersky (Dec 08 2024 at 16:48):
If you phrase is using cofinite
instead of atTop
, does that help with generality?
Xavier Roblot (Dec 08 2024 at 16:49):
Michael Stoll said:
Xavier Roblot Are you thinking of Dedekind zeta functions? Maybe David Loeffler has some ideas how to prove analytic continuation for them.
Well, I need the result I quoted above for the analytic class number formula. Of course, in this case, the coefficients are Nat
, so conditional convergence and absolute convergence are the same. Still, since I had to formalize the result I wanted to prove it in the most general version (the one given on MathOverflow) and for that I need to prove the L-series is summable for when its coefficients satisfies is in which is not true in general. So I'll have to prove a weaker version.
Michael Stoll (Dec 08 2024 at 16:56):
Maybe you can state the result in such a way that it refers to a function that is complex differentiable on some right half-plane and agrees with the L-series on the (possibly smaller) half-plane where it converges absolutely? (With a special case lemma when both are the same). Then your result can be used in its intended generality when somebody adds results on conditional convergence of L-series at some later point.
Mitchell Lee (Dec 08 2024 at 16:59):
Mitchell Lee said:
Conditionally convergent series can be defined for functions on a locally finite preorder; I am not sure if this is the correct amount of generality.
Explicitly:
import Mathlib
open Filter
def HasConditionalSum {α β : Type*} [Preorder β] [LocallyFiniteOrder β]
[AddCommMonoid α] [TopologicalSpace α] (f : β → α) (a : α) : Prop :=
Tendsto (fun ⟨l, u⟩ ↦ ∑ i ∈ LocallyFiniteOrder.finsetIcc l u, f i)
(atBot ×ˢ atTop) (nhds a)
Xavier Roblot (Dec 08 2024 at 17:03):
Michael Stoll said:
Maybe you can state the result in such a way that it refers to a function that is complex differentiable on some right half-plane and agrees with the L-series on the (possibly smaller) half-plane where it converges absolutely? (With a special case lemma when both are the same). Then your result can be used in its intended generality when somebody adds results on conditional convergence of L-series at some later point.
Yes, that may be the best solution
David Loeffler (Dec 08 2024 at 17:06):
Alternatively, maybe it might make sense to work with the hypothesis that ? This would still cover Xavier's intended use case.
David Loeffler (Dec 08 2024 at 17:13):
By the way, I feel I should issue a public apology here. Several weeks ago I reviewed one of Xavier PR's (intended as part of a chain of PR's leading to the analytic class number formula), and expressed the view that some results about convergence of L-series were being done in too specific a way, and should be formulated more generally. It seems that the generalisation is far, far harder and more involved than I realised.
Xavier: please allow me to offer my sincere apologies for all the extra work I have imposed on you!
Xavier Roblot (Dec 08 2024 at 17:18):
@David Loeffler , don’t worry about that! That’s actually what I like the most about Mathlib development: starting on some proof and on the way finding yourself working on something else totally different. I have discovered a lot of parts of Mathlib very different from my domain this way and learned a lot.
Xavier Roblot (Dec 08 2024 at 17:20):
And it’s fun too
Last updated: May 02 2025 at 03:31 UTC