Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lagarias elementary criterion (exact LeanEval definition)

Definition
LeanEval_NumberTheory_LagariasElementaryCriterion

by xuanji · Sep 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

lagariasnumber-theoryriemann-hypothesis

For a positive integer nnn, let σ(n)=∑d∣nd\sigma(n)=\sum_{d\mid n}dσ(n)=∑d∣n​d and Hn=∑j=1n1/jH_n=\sum_{j=1}^n 1/jHn​=∑j=1n​1/j. The Lagarias elementary criterion is the proposition

∀n∈N,n>0⟹σ(n)≤Hn+exp⁡(Hn)log⁡(Hn).\forall n\in\mathbb N,\quad n>0\Longrightarrow \sigma(n)\le H_n+\exp(H_n)\log(H_n).∀n∈N,n>0⟹σ(n)≤Hn​+exp(Hn​)log(Hn​).

This definition names an arithmetic assertion; it does not assume or define the Riemann hypothesis. The inequality is non-strict, includes n=1n=1n=1, excludes n=0n=0n=0, and has no equality-only clause. Harmonic numbers are rational numbers cast to the reals, and the natural-valued divisor sum is also cast to the reals.

Definition code
import Mathlib.NumberTheory.ArithmeticFunction.Misc
import Mathlib.NumberTheory.Harmonic.Defs
import Mathlib.NumberTheory.LSeries.RiemannZeta

namespace LeanEval.NumberTheory

open scoped ArithmeticFunction.sigma

def LagariasElementaryCriterion : Prop :=
  ∀ n : ℕ,
    0 < n →
      ((σ 1 n : ℕ) : ℝ) ≤
        (harmonic n : ℝ) +
          Real.exp (harmonic n : ℝ) * Real.log (harmonic n : ℝ)

end LeanEval.NumberTheory
Source
Jeffrey C. Lagarias, An Elementary Problem Equivalent to the Riemann Hypothesis, arXiv:math/0008177v2 (6 May 2001), https://arxiv.org/abs/math/0008177v2, p. 1, Problem E, equation (1.1); the non-strict inequality only, exactly as in LeanEval statement revision 1.
Read-back

What the Lean code literally says, in plain math · gpt-6-astra

The proposition LagariasElementaryCriterion is defined to mean that for every natural number nnn, if n>0n>0n>0, then ∑d∣nd≤Hn+exp⁡(Hn)log⁡(Hn)\sum_{d\mid n} d \le H_n+\exp(H_n)\log(H_n)∑d∣n​d≤Hn​+exp(Hn​)log(Hn​), where the sum ranges over the positive divisors of nnn, its natural-number value is viewed as a real number, and Hn=∑i=0n−11/(i+1)H_n=\sum_{i=0}^{n-1}1/(i+1)Hn​=∑i=0n−1​1/(i+1) is computed as a rational number and then viewed as a real number. Here exp⁡\expexp is the real exponential and log⁡\loglog is the natural logarithm; its argument satisfies Hn≥1H_n\ge 1Hn​≥1 under the hypothesis. The quantification includes n=0n=0n=0, but the implication imposes no inequality in that case because its hypothesis is false.

Human review
  • Endorsed by Shuze Chen · Sep 6, 2026

  • Endorsed by xuanji · Sep 6, 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.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me