Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Main series representation.

Proved
EulerMascheroni.hasSum_gterm

by raver1975 · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogmachinelearning

Main series representation. The Euler–Mascheroni constant is the sum of the positive series ∑ gterm.

theorem EulerMascheroni.hasSum_gterm: HasSum gterm Real.eulerMascheroniConstant := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/EulerMascheroni/SeriesRepresentation.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from MachineLearning/EulerMascheroni/SeriesRepresentation.lean
import Mathlib
import Definitions.Def_MachineLearning_EulerMascheroni_SeriesRepresentation

/-!
# A positive-term series representation of the Euler–Mascheroni constant

This file establishes the classical *series acceleration* of the
Euler–Mascheroni constant `γ = eulerMascheroniConstant`:
```
γ = ∑_{k=0}^∞ ( 1/(k+1) − [log(k+2) − log(k+1)] ).
```
Every term `gterm k = 1/(k+1) − log((k+2)/(k+1))` is **strictly positive**
(because `log(1+x) < x`), so the partial sums increase monotonically to `γ`.
The `n`-th partial sum is *exactly* `eulerMascheroniSeq n = H_n − log(n+1)`, the
lower approximant from Mathlib, which makes this the "Apéry-like" monotone
rational-driven approximation to `γ`: the rational engine is the harmonic
number `H_n`, corrected by `log(n+1)`.

-- !-- Lab Notes -- !--
HYPOTHESIS.  `γ`, defined as `lim (H_n − log n)`, should equal a convergent
series of *positive* terms.  Telescoping `log(n+1) = ∑_{k<n}(log(k+2)−log(k+1))`
turns `H_n − log(n+1)` into a partial sum of `gterm`.

EXPERIMENT.  `gterm_partial` (induction + `harmonic_succ`) proves the partial-sum
identity.  `gterm_pos` derives positivity from `Real.log_lt_sub_one_of_pos`.
`hasSum_gterm` upgrades the convergence `eulerMascheroniSeq → γ` to a `HasSum`
statement using `summable_of_sum_range_le` (terms are nonnegative and partial
sums are bounded by `γ`) and uniqueness of limits.

ANALYSIS.  The representation is genuine but converges only like `1/k` (the term
`gterm k ~ 1/(2(k+1)^2)`, summable but slow).  The monotone lower approximants
`eulerMascheroniSeq n` are `H_n − log(n+1)`; their *rational* part `H_n` is the
Apéry-like data, but the additive logarithm prevents a purely rational sandwich
— this is the structural obstruction to an elementary irrationality proof.

CRITIQUE.  `hasSum_gterm` is not vacuous: it pins the sum to the specific value
`γ`, not merely "some real".  Positivity (`gterm_pos`) and strict monotonicity
(`strictMono_eulerMascheroniSeq`) are quantitative and use real inequalities.

SYNTHESIS.  We obtain a clean positive-term series for `γ`, the exact
identification of its partial sums with Mathlib's lower approximant, and strict
monotonicity of that approximant.
-/

open Filter Topology Real

open EulerMascheroni
Formal statement
theorem EulerMascheroni.hasSum_gterm: HasSum gterm Real.eulerMascheroniConstant := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/MachineLearning/EulerMascheroni/SeriesRepresentation.lean#L75

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