Lean / senamakel/li-criterion-rh / Statement.lean
Lean reader

LiCriterion/Statement.lean

55 lines6 declarationsno sorryimports Mathlib
  1. import Mathlib
  2. /-!
  3. # Li's criterion (target statements — do not change the definitions)
  4. Copied word for word from google-deepmind/formal-conjectures,
  5. [`FormalConjectures/Paper/RiemannHypothesisEquivalents.lean`](https://github.com/google-deepmind/formal-conjectures/blob/86a2f58a4d7a3a0637d15d5b2ce627592b54b956/FormalConjectures/Paper/RiemannHypothesisEquivalents.lean)
  6. at commit `86a2f58a4d7a3a0637d15d5b2ce627592b54b956` (Apache-2.0, © 2026 The Formal Conjectures
  7. Authors). Only the file header changes: `module` / `public import FormalConjecturesUtil` /
  8. `@[expose] public section` become `import Mathlib`, and the `@[category …]` attributes, which
  9. come from `FormalConjecturesUtil`, are dropped. The two theorems there,
  10. ```
  11. theorem li_criterion : RiemannHypothesis ↔ ∀ n > 0, 0 < lambda n
  12. theorem li_criterion_rhs {n : ℕ} (hn : 0 < n) : 0 < lambda n
  13. ```
  14. are recorded below as the `Prop`s `LiCriterion` and `LiCriterionRHS` (same statements, bound
  15. `n` universally quantified). The deliverable is `RiemannHypothesis.li_criterion_rhs_of_RH`
  16. (`LiCriterion/Main.lean`), i.e. `RiemannHypothesis → LiCriterionRHS`, the forward direction of
  17. `li_criterion`.
  18. `RiemannHypothesis` is Mathlib's statement.
  19. -/
  20. open Real
  21. namespace RiemannHypothesis
  22. /-- The nontrivial zeros of the Riemann zeta function with positive imaginary part. Since the
  23. nontrivial zeros are closed under complex conjugation, these determine all nontrivial zeros. -/
  24. def nontrivialPosZeros : Set ℂ := {z | 0 < z.re ∧ z.re < 1 ∧ 0 < z.im ∧ riemannZeta z = 0}
  25. /-- The numbers
  26. $$
  27. \lambda_n := \sum_{\rho}\left(1 - \left(1 - \frac{1}{\rho}\right)^n\right)
  28. $$
  29. appearing in Li's criterion, summing over the nontrivial zeros $\rho$ of the
  30. Riemann zeta function.
  31. This is a real number because nontrivial zeros always come in conjugate pairs.
  32. Note that, as stated, the sum is only conditionally convergent, however it is absolutely convergent
  33. when taken in conjugate pairs, since $1/\rho + 1/\bar\rho = 2\Re\rho/|\rho|^2$. Hence we sum
  34. over the zeros with positive imaginary part with summand `2 * (_).re`, which makes the unordered
  35. sum `∑'` meaningful. -/
  36. noncomputable def lambda (n : ℕ) : ℝ := ∑' ρ : nontrivialPosZeros, 2 * (1 - (1 - 1 / ρ.1) ^ n).re
  37. /-- formal-conjectures `li_criterion` (`research solved`), as a `Prop`. -/
  38. def LiCriterion : Prop := RiemannHypothesis ↔ ∀ n > 0, 0 < lambda n
  39. /-- formal-conjectures `li_criterion_rhs` (`research open`), as a `Prop`. -/
  40. def LiCriterionRHS : Prop := ∀ {n : ℕ} (_hn : 0 < n), 0 < lambda n
  41. end RiemannHypothesis