{
  "id": "4395",
  "ident": "NS.04395",
  "slug": "millennium-riemannhypothesis",
  "title": "Riemann Hypothesis and its generalizations",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "The **Riemann Hypothesis**: all non-trivial zeros of the Riemann zeta function have real\npart $\\frac{1}{2}$. That is, if $\\zeta(s) = 0$, $s \\neq 1$, and $s$ is not a trivial zero\n$-2(n+1)$ for some $n \\in \\mathbb{N}$, then $\\operatorname{Re}(s) = \\frac{1}{2}$.\n\nThis is the official Millennium Prize Problem as posed by the\n[Clay Mathematics Institute](https://www.claymath.org/wp-content/uploads/2022/05/riemann.pdf).\n\nThis uses the `RiemannHypothesis` type from Mathlib, which is defined as\n`∀ (s : ℂ), riemannZeta s = 0 → (¬∃ n : ℕ, s = -2 * (n + 1)) → s ≠ 1 → s.re = 1 / 2`.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "millennium",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "RiemannHypothesis.riemannHypothesis",
  "statement_lean": "theorem riemannHypothesis : RiemannHypothesis",
  "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-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Riemann Hypothesis and its generalizations\n\nThe Riemann Hypothesis asserts that all non-trivial zeros of the Riemann zeta function\n$\\zeta(s)$ have real part $\\frac{1}{2}$. The trivial zeros are the negative even integers\n$-2, -4, -6, \\ldots$. The hypothesis is one of the seven Millennium Prize Problems\nposed by the Clay Mathematics Institute.\n\nThe Generalized Riemann Hypothesis extends this to Dirichlet $L$-functions of primitive\nDirichlet characters.\n\nNote: the **Extended Riemann Hypothesis** (ERH) for Dedekind zeta functions is intentionally\n**not** stated here. Mathlib's `NumberField.dedekindZeta` is the naive Dirichlet series\n(`LSeries`), not a meromorphic continuation; outside the region of absolute convergence\n`tsum` returns junk `0`, producing spurious zeros that make the naive foramlisation of the\nconjecture provably false. The ERH should be added once Mathlib provides a meromorphic\ncontinuation of the Dedekind zeta function.\n\n*References:*\n- [The Clay Institute](https://www.claymath.org/wp-content/uploads/2022/05/riemann.pdf)\n- [Wikipedia: Riemann hypothesis](https://en.wikipedia.org/wiki/Riemann_hypothesis)\n- [Wikipedia: Generalized Riemann hypothesis](https://en.wikipedia.org/wiki/Generalized_Riemann_hypothesis)\n- [Wikipedia: Dedekind zeta function](https://en.wikipedia.org/wiki/Dedekind_zeta_function)\n- J. Neukirch, *Algebraic Number Theory*, Springer (Grundlehren 322), 1999, Chapter VII, §5.\n- D. A. Marcus, *Number Fields*, Springer (GTM 81), 1977, Chapter VII.\n-/\n\n@[expose] public section\n\nnamespace RiemannHypothesis\n\n/-- The **Riemann Hypothesis**: all non-trivial zeros of the Riemann zeta function have real\npart $\\frac{1}{2}$. That is, if $\\zeta(s) = 0$, $s \\neq 1$, and $s$ is not a trivial zero\n$-2(n+1)$ for some $n \\in \\mathbb{N}$, then $\\operatorname{Re}(s) = \\frac{1}{2}$.\n\nThis is the official Millennium Prize Problem as posed by the\n[Clay Mathematics Institute](https://www.claymath.org/wp-content/uploads/2022/05/riemann.pdf).\n\nThis uses the `RiemannHypothesis` type from Mathlib, which is defined as\n`∀ (s : ℂ), riemannZeta s = 0 → (¬∃ n : ℕ, s = -2 * (n + 1)) → s ≠ 1 → s.re = 1 / 2`. -/\n@[category research open, AMS 11]\ntheorem riemannHypothesis : RiemannHypothesis := by\n  sorry\n\nend RiemannHypothesis\n\nnamespace GRH\n\n/-- Let $\\chi$ be a Dirichlet character, `trivialZeros` is the set of trivial zeros of the\nDirichlet $L$-function of $\\chi$ which is always a set of non-positive integers.\n- $\\chi = 1$ then the Dirichlet $L$-function is the Riemann zeta function, having trivial\n  zeroes at all negative even integers (exclude $0$).\n- $\\chi$ is odd, then the trivial zeroes are the negative odd integers.\n- $\\chi \\neq 1$ is even, then the trivial zeroes are the non-positive even integers. -/\ndef trivialZeros {q : ℕ} (χ : DirichletCharacter ℂ q) : Set ℤ :=\n  if q = 1 then {-2 * (n + 1) | (n : ℕ) } else\n    if χ.Odd then { -2 * n - 1 | (n : ℕ) } else\n      { - 2 * n | (n : ℕ) }\n\n/-- The **Generalized Riemann Hypothesis** asserts that all the non-trivial zeros of the\nDirichlet $L$-function $L(\\chi, s)$ of a primitive Dirichlet character $\\chi$ have real part\n$\\frac{1}{2}$. -/\n@[category research open, AMS 11]\ntheorem generalized_riemann_hypothesis (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q)\n    (hχ : χ.IsPrimitive) (s : ℂ) (hs : χ.LFunction s = 0)\n    (hs_nontrivial : s ∉ Int.cast '' trivialZeros χ) :\n    s.re = 1 / 2 := by\n  sorry\n\n/-- GRH for $\\chi = 1$ is `RiemannHypothesis`. -/\n@[category test, AMS 11]\ntheorem implies_riemannHypothesis :\n    type_of% (generalized_riemann_hypothesis 1 1) ↔ RiemannHypothesis := by\n  aesop (add simp [DirichletCharacter.isPrimitive_one_level_one, trivialZeros,\n    RiemannHypothesis, riemannZeta_one_ne_zero])\n\nend GRH\n\n/- NOTE: Extended Riemann Hypothesis\n## Extended Riemann Hypothesis\n\nThe ERH for Dedekind zeta functions **cannot** currently be stated correctly because\n`NumberField.dedekindZeta` in Mathlib is the naive `LSeries`, not the meromorphic\ncontinuation.  Outside the region of absolute convergence (`re s > 1`), `tsum` returns\njunk `0` for non-summable series.  A statement using the raw `dedekindZeta` therefore has\nspurious \"zeros\" that make the conjecture provably **false**.\n\nA correct formalisation requires a meromorphic continuation of the Dedekind zeta function\n(analogous to how `ZMod.LFunction` extends the Dirichlet L-series).  Once Mathlib provides\nthis, the ERH should be added back here.\n-/\n",
  "statement_hash": "db04f2f25a73fb0fc473843227fb3a28bca6ef1808e222e2d365f97120c46f67",
  "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."
}