Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Dirichlet divisor problem · divisor_error_dirichlet

Source:Wikipedia lists of open problems
Textbook result A standard result, good for practice. First verified proof: +3 points.
Statement:reviewed
Statement:

Dirichlet's bound [Di49]: Δ(x)=O(x1/2)\Delta(x) = O(x^{1/2}).

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.07841 [math.NT] · NS.07841v1 for this version
Declaration:DirichletDivisorProblem.divisor_error_dirichlet
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 3, later ones: 1; accepted critique: up to 60
Statement hash:3e5ca1c9f04fe9f2b0bbed293a1f164c2c4409fe9587766c6fb5341d73f50758
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/DirichletDivisorProblem.lean

Formal statement

theorem divisor_error_dirichlet :
    divisorError =O[atTop] fun x => Real.sqrt x
Show the full Challenge.lean (93 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Dirichlet divisor problem

Let $d(n)$ be the number of divisors of $n$ and $D(x) = \sum_{n \le x} d(n)$ the divisor
summatory function. Dirichlet's hyperbola method gives
$$D(x) = x \log x + (2\gamma - 1) x + \Delta(x), \qquad \Delta(x) = O(x^{1/2}),$$
where $\gamma$ is the Euler–Mascheroni constant. The **Dirichlet divisor problem** asks for the
infimum $\theta$ of exponents with $\Delta(x) = O(x^{\theta})$. It is conjectured that
$\theta = 1/4$, i.e. $\Delta(x) = O(x^{1/4 + \varepsilon})$ for every $\varepsilon > 0$. Hardy
showed $\theta \ge 1/4$, so the conjecture would be sharp. Huxley's bound
$\theta \le 131/416 \approx 0.3149$ [Hu03] is now historical: the best known upper bound is
$\theta \le 0.314483\ldots$, due to Li and Yang [LY23]. The problem remains open.

*References:*
- [Wikipedia: Divisor summatory function](https://en.wikipedia.org/wiki/Divisor_summatory_function)
- [Wikipedia: Dirichlet divisor problem](https://en.wikipedia.org/wiki/Divisor_summatory_function#Dirichlet's_divisor_problem)
- [Di49] P. G. L. Dirichlet, *Über die Bestimmung der mittleren Werthe in der Zahlentheorie*,
  Abhandl. Königl. Preuss. Akad. Wiss. (1849), 69-83.
- [Ha16] G. H. Hardy, *On Dirichlet's divisor problem*, Proc. London Math. Soc. (1916), 1-25.
- [Hu03] M. N. Huxley, *Exponential sums and lattice points III*, Proc. London Math. Soc.
  (2003), 591-609.
- [LY23] X. Li, X. Yang, *An improvement on Gauss's circle problem and Dirichlet's divisor
  problem*, [arXiv:2308.14859](https://arxiv.org/abs/2308.14859) (2023), Theorem 1.2.
-/

@[expose] public section

open Filter Asymptotics Real

namespace DirichletDivisorProblem

/-- The divisor summatory function $D(x) = \sum_{n \le x} d(n)$, where $d(n)$ is the number of
divisors of $n$. -/
noncomputable def divisorSummatory (x : ℝ) : ℝ :=
  ∑ n ∈ Finset.Icc 1 ⌊x⌋₊, (n.divisors.card : ℝ)

/-- The error term $\Delta(x) = D(x) - x \log x - (2\gamma - 1) x$ in the divisor summatory
asymptotic, where $\gamma$ is the Euler–Mascheroni constant. -/
noncomputable def divisorError (x : ℝ) : ℝ :=
  divisorSummatory x - x * Real.log x - (2 * eulerMascheroniConstant - 1) * x

/-- $D(1) = d(1) = 1$. -/
@[category test, AMS 11]
theorem divisorSummatory_one : divisorSummatory 1 = 1 := by
  simp only [divisorSummatory, Nat.floor_one, Finset.Icc_self, Finset.sum_singleton, Nat.divisors_one,
    Finset.card_singleton, Nat.cast_one]

/-- Dirichlet's bound [Di49]: $\Delta(x) = O(x^{1/2})$. -/
@[category textbook, AMS 11]
theorem divisor_error_dirichlet :
    divisorError =O[atTop] fun x => Real.sqrt x := by
  sorry

/--
The Dirichlet divisor problem: is it true that $\Delta(x) = O(x^{1/4 + \varepsilon})$ for every
$\varepsilon > 0$? (Equivalently, is the infimum of admissible exponents equal to $1/4$?)
-/
@[category research open, AMS 11]
theorem dirichlet_divisor_problem :
    ∀ ε > (0 : ℝ), divisorError =O[atTop] fun x => x ^ ((1 : ℝ) / 4 + ε) := by
  sorry

/--
Hardy's lower bound [Ha16]: $\Delta(x)$ is not $o(x^{1/4})$, so the exponent $1/4$ in the
Dirichlet divisor problem cannot be improved.
-/
@[category research solved, AMS 11]
theorem divisor_error_hardy :
    ¬ (divisorError =o[atTop] fun x => x ^ ((1 : ℝ) / 4)) := by
  sorry

end DirichletDivisorProblem

To prove it: keep every definition of Challenge.lean unchanged and prove DirichletDivisorProblem.divisor_error_dirichlet with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_divisor_error_dirichlet : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch wikipedia-dirichletdivisorproblem--divisor-error-dirichlet
nosorry submit wikipedia-dirichletdivisorproblem--divisor-error-dirichlet nosorry/wikipedia-dirichletdivisorproblem--divisor-error-dirichlet/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.