Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Sondow harmonic sums, logarithmic forms and double integrals

Definition
eulerMascheroni_sondow

by Yuxuan Xu · Sep 14, 2026 · Mathlib 0df444a (Lean v4.33.1)

euler-mascheroniirrationalitysondow

Let dn=lcm⁡(1,…,n)d_n=\operatorname{lcm}(1,\ldots,n)dn​=lcm(1,…,n) and Hm=∑j=1m1/jH_m=\sum_{j=1}^m1/jHm​=∑j=1m​1/j. Define

An=∑i=0n(ni)2Hn+i,A_n=\sum_{i=0}^n\binom ni^2H_{n+i},An​=i=0∑n​(in​)2Hn+i​, Ln=∑k=1n∑i=0min⁡(k−1,n−k)∑j=i+1n−i2(ni)2jlog⁡(n+k),L_n=\sum_{k=1}^n\sum_{i=0}^{\min(k-1,n-k)}\sum_{j=i+1}^{n-i}\frac{2\binom ni^2}{j}\log(n+k),Ln​=k=1∑n​i=0∑min(k−1,n−k)​j=i+1∑n−i​j2(in​)2​log(n+k), In=∫01∫01[x(1−x)y(1−y)]n(1−xy)(−log⁡(xy)) dy dx.I_n=\int_0^1\int_0^1\frac{[x(1-x)y(1-y)]^n}{(1-xy)(-\log(xy))}\,dy\,dx.In​=∫01​∫01​(1−xy)(−log(xy))[x(1−x)y(1−y)]n​dydx.

These are Sondow's explicit quantities. His identity d2nLn=log⁡Snd_{2n}L_n=\log S_nd2n​Ln​=logSn​ allows the criterion to use d2nLnd_{2n}L_nd2n​Ln​ directly, without constructing the large integer product SnS_nSn​. Results using the integral require n>0n>0n>0.

Definition code
import Mathlib.Algebra.GCDMonoid.Finset
import Mathlib.NumberTheory.Harmonic.Defs
import Mathlib.NumberTheory.Harmonic.EulerMascheroni
import Mathlib.MeasureTheory.Integral.IntervalIntegral.Basic
import Mathlib.Algebra.Order.Floor.Ring

noncomputable section
namespace EulerMascheroni.Sondow
open Finset

def d (n : ℕ) : ℕ := (Icc 1 n).lcm id

def A (n : ℕ) : ℚ :=
  ∑ i ∈ range (n + 1), (n.choose i : ℚ)^2 * harmonic (n + i)

-- Sondow (2002), equation (8); all three summation ranges are inclusive.
def L (n : ℕ) : ℝ :=
  ∑ k ∈ Icc 1 n, ∑ i ∈ Icc 0 (min (k - 1) (n - k)),
    ∑ j ∈ Icc (i + 1) (n - i),
      2 * (n.choose i : ℝ)^2 / (j : ℝ) * Real.log (n + k : ℕ)

def I (n : ℕ) : ℝ :=
  ∫ x in (0 : ℝ)..1, ∫ y in (0 : ℝ)..1,
    (x * (1 - x) * y * (1 - y))^n / ((1 - x*y) * (-Real.log (x*y)))

end EulerMascheroni.Sondow
Source
Jonathan Sondow, Criteria for Irrationality of Euler's Constant, https://arxiv.org/pdf/math/0209070 (v2, 4 October 2002). Equations (2), (6), (8), pp. 2, 3, 6; Lemma 2, p. 9.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me