Harmonic upper comparison (Lagarias Lemma 3.2)
ProvedLeanEval.NumberTheory.lagarias_harmonic_upper_boundlagariasnumber-theoryriemann-hypothesis
Let be Euler's constant. For every natural number ,
This unconditional upper estimate retains both the source's numerical constant and its threshold; neither is an assumed asymptotic placeholder.
Preamble
import Mathlib.NumberTheory.ArithmeticFunction.Misc import Mathlib.NumberTheory.Harmonic.Defs import Mathlib.NumberTheory.LSeries.RiemannZeta import Mathlib.NumberTheory.Harmonic.EulerMascheroni open scoped ArithmeticFunction.sigma
Formal statement
namespace LeanEval.NumberTheory
theorem lagarias_harmonic_upper_bound (n : ℕ) (hn : 20 ≤ n) :
(harmonic n : ℝ) +
Real.exp (harmonic n : ℝ) * Real.log (harmonic n : ℝ) ≤
Real.exp Real.eulerMascheroniConstant * (n : ℝ) * Real.log (Real.log (n : ℝ)) +
7 * (n : ℝ) / Real.log (n : ℝ) := by sorry
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. 7, Lemma 3.2, equation (3.7).
Read-back
What the Lean code literally says, in plain math · gpt-6-astra
For every natural number with , let , regarded as a real number, and let be the Euler–Mascheroni constant. Then , where denotes the natural logarithm. The hypothesis excludes and ensures that all logarithm arguments and the denominator in this inequality are positive.
Human review
Confirmed by the mission captain (proposal self-audit).