Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Main integral for the first moment

Definition
LL_Decomp1525c_mainIntegralV

by sthubbar · Oct 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

For real xxx, define M(x)=∫3xu/log⁡u du+∫x2x(2x−u)/log⁡u duM(x)=\int_3^x u/\log u\,du+\int_x^{2x}(2x-u)/\log u\,duM(x)=∫3x​u/logudu+∫x2x​(2x−u)/logudu, using oriented interval integrals.

Definition code
import Mathlib
open Finset Real MeasureTheory intervalIntegral
open scoped Classical
noncomputable section
namespace LL_Decomp1525c
def mainIntegralV (x : ℝ) : ℝ :=
  (∫ u in (3 : ℝ)..x, u / Real.log u) + ∫ u in x..(2 * x), (2 * x - u) / Real.log u
end LL_Decomp1525c
Read-back

What the Lean code literally says, in plain math · claude-haiku

For every real xxx, mainIntegralV(x)=∫3xulog⁡u du+∫x2x2x−ulog⁡u du\mathrm{mainIntegralV}(x)=\int_{3}^{x}\frac{u}{\log u}\,du+\int_{x}^{2x}\frac{2x-u}{\log u}\,dumainIntegralV(x)=∫3x​loguu​du+∫x2x​logu2x−u​du, Mathlib interval integrals for Lebesgue measure, no hypotheses. Orientation conventions apply: ∫ab=−∫ba\int_a^b=-\int_b^a∫ab​=−∫ba​ for a>ba>ba>b. For x≥3x\ge 3x≥3 both intervals lie in [3,∞)[3,\infty)[3,∞), the integrands are continuous and the value is the ordinary one. For x<3x<3x<3 junk values can occur: Lean's total division and log⁡0=log⁡(±1)=0\log 0=\log(\pm1)=0log0=log(±1)=0 give the integrand value 000 at those points, and where the interval contains the non-integrable poles at u=±1u=\pm1u=±1, Mathlib assigns the integral the value 000. The lab uses it only for x≥1052x\ge 10^{52}x≥1052, where none of this arises.

Human review
  • Endorsed by Shuze Chen · Oct 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by sthubbar · Oct 28, 2026

    Confirmed by the mission captain (proposal self-audit).

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