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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Ramanujan τ-function

Source:Wikipedia lists of open problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

The Ramanujan-Petersson conjecture: ∣τ(p)∣≤2p11/2|\tau(p)| \le 2 p^{11/2} for primes pp.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.08338 [math.NT] · NS.08338v1 for this version
Declaration:RamanujanTau.ramanujan_petersson
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:244c3ff758f92dc238473ac991e812e9320a712befe1d6f2b373d5f0a59f1767
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/RamanujanTau.lean

Formal statement

theorem ramanujan_petersson : ∀ p : ℕ, Prime p → abs (τ p) ≤ 2 * (p : ℝ) ^ ((11 : ℝ) / 2)
Show the full Challenge.lean (74 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Ramanujan τ-function

There are two conjectures related to the Ramanujan τ-function:

- Ramanujan-Petersson conjecture: For every prime `p`, the absolute value of the
  Ramanujan τ-function at `p` is bounded by `2 * p^(11/2)`.
- Lehmer's conjecture: The Ramanujan τ-function is never zero for any positive integer `n`.

*References:*
- [Ramanujan-Petersson conjecture](https://en.wikipedia.org/wiki/Ramanujan%E2%80%93Petersson_conjecture)
- [Lehmer's conjecture](https://en.wikipedia.org/wiki/Ramanujan_tau_function#Conjectures_on_the_tau_function)
-/

@[expose] public section

namespace RamanujanTau

open PowerSeries PowerSeries.WithPiTopology

noncomputable def Δ : PowerSeries ℤ := X * ∏' (n : ℕ+), (1 - X ^ (n : ℕ)) ^ 24

noncomputable def τ (n : ℕ) : ℤ := PowerSeries.coeff n Δ


@[category API, AMS 11]
lemma multipliable : Multipliable fun n : ℕ+ ↦ ((1 - X ^ (n : ℕ)) ^ 24 : PowerSeries ℤ) :=
  multipliable_pnat_iff_multipliable_succ (f := fun n : ℕ ↦ ((1 - X ^ n) ^ 24 : PowerSeries ℤ))
    |>.mpr ((multipliable_one_sub_X_pow ℤ).pow 24)

@[category test, AMS 11]
lemma τ_zero : τ 0 = 0 := by simp [τ, Δ]

@[category test, AMS 11]
lemma τ_one : τ 1 = 1 := by
  obtain ⟨i, hi⟩ := by simpa using ((continuous_constantCoeff ℤ).tendsto _).comp multipliable.hasProd
  simp [τ, Δ, hi i]

@[category test, AMS 11]
lemma τ_two : τ 2 = -24 := by
  sorry


/-- The Ramanujan-Petersson conjecture: $|\tau(p)| \le 2 p^{11/2}$ for primes $p$. -/
@[category research solved, AMS 11]
theorem ramanujan_petersson : ∀ p : ℕ, Prime p → abs (τ p) ≤ 2 * (p : ℝ) ^ ((11 : ℝ) / 2) := by
  sorry

/-- Lehmer's conjecture: $\tau(n) \ne 0$ for all $n > 0$. -/
@[category research open, AMS 11]
theorem lehmer_ramanujan_tau : ∀ n > 0, τ n ≠ 0 := by
  sorry

end RamanujanTau

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

nosorry desk wikipedia-ramanujantau      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch wikipedia-ramanujantau
nosorry submit wikipedia-ramanujantau nosorry/wikipedia-ramanujantau/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.