Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Ramanujan's Lost Notebook Part IV, Ch. 11: logIntegral

Definition
RamanujanLostNotebook_PartIV_ch11_logIntegral

by FormallyCorrect · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

number-theoryramanujan-lost-notebook

The logarithmic integral Li(y), the Cauchy principal value of ∫₀^y dt / log t, for y > 0, y ≠ 1, through the closed form Li(y) = γ + log |log y| + ∫₀^{log y} (e^u - 1)/u du (reference values: Li(2) = 1.04516378…, Li(1000) = 177.60965799…). The integrand is bounded near u = 0; its junk value at u = 0 sits on a null set.

Definition code
import Mathlib

namespace RamanujanLostNotebook.PartIV

/-- The logarithmic integral `Li(y)`, the Cauchy principal value of `∫₀^y dt / log t`,
for `y > 0`, `y ≠ 1`, through the closed form
`Li(y) = γ + log |log y| + ∫₀^{log y} (e^u - 1)/u du`
(reference values: `Li(2) = 1.04516378…`, `Li(1000) = 177.60965799…`).
The integrand is bounded near `u = 0`; its junk value at `u = 0` sits on a null set. -/
noncomputable def logIntegral (y : ℝ) : ℝ :=
  Real.eulerMascheroniConstant + Real.log |Real.log y|
    + ∫ u in (0 : ℝ)..Real.log y, (Real.exp u - 1) / u

end RamanujanLostNotebook.PartIV
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part IV, Springer 2013, Chapter 11.

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