Zulip Chat Archive

Stream: new members

Topic: Formalizing a telescoping Sum of Prime gaps.


Kajani Kaunda (Mar 17 2025 at 18:55):

Hello,
How would one formalize the following telescoping sum of prime gaps?

pmpn=k=nm1(pk+1pk)p_{m} - p_{n}=\sum_{k=n}^{m-1} (p_{k+1} - p_{k})

where the expression is valid for all n ≥ 1 and m > n and p is a prime number.

Regards,
Kajani

Yaël Dillies (Mar 17 2025 at 18:57):

docs#Finset.sum_range_sub is the closest we've got in mathlib

Kajani Kaunda (Mar 17 2025 at 18:58):

Yaël Dillies said:

docs#Finset.sum_range_sub is the closest we've got in mathlib

Ah, Ok will check it out thank you.

Eric Wieser (Mar 17 2025 at 18:58):

Can we do better than an Icc version for Nat, Int, PNat, ...?

Eric Wieser (Mar 17 2025 at 18:58):

Maybe one with Order.succ?


Last updated: May 02 2025 at 03:31 UTC