{
  "id": "7843",
  "ident": "NS.07843",
  "slug": "wikipedia-dirichletdivisorproblem--divisor-error-hardy",
  "title": "Dirichlet divisor problem · divisor_error_hardy",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Hardy's lower bound [Ha16]: $\\Delta(x)$ is not $o(x^{1/4})$, so the exponent $1/4$ in the\nDirichlet divisor problem cannot be improved.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "wikipedia",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "DirichletDivisorProblem.divisor_error_hardy",
  "statement_lean": "theorem divisor_error_hardy :\n    ¬ (divisorError =o[atTop] fun x => x ^ ((1 : ℝ) / 4))",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Dirichlet divisor problem\n\nLet $d(n)$ be the number of divisors of $n$ and $D(x) = \\sum_{n \\le x} d(n)$ the divisor\nsummatory function. Dirichlet's hyperbola method gives\n$$D(x) = x \\log x + (2\\gamma - 1) x + \\Delta(x), \\qquad \\Delta(x) = O(x^{1/2}),$$\nwhere $\\gamma$ is the Euler–Mascheroni constant. The **Dirichlet divisor problem** asks for the\ninfimum $\\theta$ of exponents with $\\Delta(x) = O(x^{\\theta})$. It is conjectured that\n$\\theta = 1/4$, i.e. $\\Delta(x) = O(x^{1/4 + \\varepsilon})$ for every $\\varepsilon > 0$. Hardy\nshowed $\\theta \\ge 1/4$, so the conjecture would be sharp. Huxley's bound\n$\\theta \\le 131/416 \\approx 0.3149$ [Hu03] is now historical: the best known upper bound is\n$\\theta \\le 0.314483\\ldots$, due to Li and Yang [LY23]. The problem remains open.\n\n*References:*\n- [Wikipedia: Divisor summatory function](https://en.wikipedia.org/wiki/Divisor_summatory_function)\n- [Wikipedia: Dirichlet divisor problem](https://en.wikipedia.org/wiki/Divisor_summatory_function#Dirichlet's_divisor_problem)\n- [Di49] P. G. L. Dirichlet, *Über die Bestimmung der mittleren Werthe in der Zahlentheorie*,\n  Abhandl. Königl. Preuss. Akad. Wiss. (1849), 69-83.\n- [Ha16] G. H. Hardy, *On Dirichlet's divisor problem*, Proc. London Math. Soc. (1916), 1-25.\n- [Hu03] M. N. Huxley, *Exponential sums and lattice points III*, Proc. London Math. Soc.\n  (2003), 591-609.\n- [LY23] X. Li, X. Yang, *An improvement on Gauss's circle problem and Dirichlet's divisor\n  problem*, [arXiv:2308.14859](https://arxiv.org/abs/2308.14859) (2023), Theorem 1.2.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics Real\n\nnamespace DirichletDivisorProblem\n\n/-- The divisor summatory function $D(x) = \\sum_{n \\le x} d(n)$, where $d(n)$ is the number of\ndivisors of $n$. -/\nnoncomputable def divisorSummatory (x : ℝ) : ℝ :=\n  ∑ n ∈ Finset.Icc 1 ⌊x⌋₊, (n.divisors.card : ℝ)\n\n/-- The error term $\\Delta(x) = D(x) - x \\log x - (2\\gamma - 1) x$ in the divisor summatory\nasymptotic, where $\\gamma$ is the Euler–Mascheroni constant. -/\nnoncomputable def divisorError (x : ℝ) : ℝ :=\n  divisorSummatory x - x * Real.log x - (2 * eulerMascheroniConstant - 1) * x\n\n/-- $D(1) = d(1) = 1$. -/\n@[category test, AMS 11]\ntheorem divisorSummatory_one : divisorSummatory 1 = 1 := by\n  simp only [divisorSummatory, Nat.floor_one, Finset.Icc_self, Finset.sum_singleton, Nat.divisors_one,\n    Finset.card_singleton, Nat.cast_one]\n\n/-- Dirichlet's bound [Di49]: $\\Delta(x) = O(x^{1/2})$. -/\n@[category textbook, AMS 11]\ntheorem divisor_error_dirichlet :\n    divisorError =O[atTop] fun x => Real.sqrt x := by\n  sorry\n\n/--\nThe Dirichlet divisor problem: is it true that $\\Delta(x) = O(x^{1/4 + \\varepsilon})$ for every\n$\\varepsilon > 0$? (Equivalently, is the infimum of admissible exponents equal to $1/4$?)\n-/\n@[category research open, AMS 11]\ntheorem dirichlet_divisor_problem :\n    ∀ ε > (0 : ℝ), divisorError =O[atTop] fun x => x ^ ((1 : ℝ) / 4 + ε) := by\n  sorry\n\n/--\nHardy's lower bound [Ha16]: $\\Delta(x)$ is not $o(x^{1/4})$, so the exponent $1/4$ in the\nDirichlet divisor problem cannot be improved.\n-/\n@[category research solved, AMS 11]\ntheorem divisor_error_hardy :\n    ¬ (divisorError =o[atTop] fun x => x ^ ((1 : ℝ) / 4)) := by\n  sorry\n\nend DirichletDivisorProblem\n",
  "statement_hash": "3e5ca1c9f04fe9f2b0bbed293a1f164c2c4409fe9587766c6fb5341d73f50758",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}