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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 981

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let ϵ>0\epsilon > 0 and fϵ(p)f_\epsilon(p) be the smallest integer mm such that ∑n≤N(np)<ϵN\sum_{n\leq N} \left(\frac{n}{p}\right)<\epsilon N for all N≥mN\geq m. Prove that ∑p<xfϵ(p)∼cϵxlog⁡x\sum_{p<x}f_\epsilon(p)\sim c_\epsilon \frac{x}{\log x} for some cϵ>0c_\epsilon > 0.

Proved by Elliott [El69].

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:formal_proof
Cite as:NS.03859 [math.NT] · NS.03859v1 for this version
Declaration:Erdos981.erdos_981
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:ef9b583d9ef7c23370d8d32b8e40dfd983f3d22f767b26112cd62ff7adce1f31
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/981.lean

Formal statement

theorem erdos_981 (ε : ℝ) (hε : 0 < ε) :
    ∃ c > (0 : ℝ), Tendsto (fun x ↦ (∑ p : Nat.primesBelow ⌈x⌉₊, f ε p) * log x / x) atTop (𝓝 c)
Show the full Challenge.lean (88 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 981

*References:*
- [erdosproblems.com/981](https://www.erdosproblems.com/981)
- [El69] Elliott, P. D. T. A., *A conjecture of Erdős concerning character sums*.
  Indag. Math. 31 (1969), 164–171.
- [TaZh25] [arxiv/2512.24631](https://arxiv.org/abs/2512.24631)
  **Average first-passage times for character sums** by *Quanyu Tang and Hao Zhang*
-/

@[expose] public section

open Filter Real
open scoped Topology

namespace Erdos981

/--
Property of a natural $N$ to satisfy $\sum_{n\leq N} \left(\frac{n}{p}\right)<\epsilon N$,
where $\left(\frac{n}{p}\right)$ is the Jacobi symbol. The theorem statement mentions Legendre symbol,
however in formalization we use Jacobi symbol to avoid problem with passing the fact that $p$ is prime.
For prime $p$ `jacobiSym n p = legendreSym p n`.
-/
def Erdos981Property (ε : ℝ) (p : ℕ) (N : ℕ) : Prop :=
   (∑ n ≤ N, jacobiSym n p) < ε * N

/--
The smallest integer $m$ such that
$\sum_{n\leq N} \left(\frac{n}{p}\right)<\epsilon N$ for all $N\geq m$.
-/
noncomputable def f (ε : ℝ) (p : ℕ) : ℕ :=
  sInf { m | ∀ N ≥ m, Erdos981Property ε p N }

/--
The smallest integer $m$ such that $\sum_{n\leq m} \left(\frac{n}{p}\right)<\epsilon m$
-/
noncomputable def f' (ε : ℝ) (p : ℕ) : ℕ :=
  sInf { m | Erdos981Property ε p m }

set_option linter.style.formal_proof_palomar false in
/--
Let $\epsilon > 0$ and $f_\epsilon(p)$ be the smallest integer $m$
such that $\sum_{n\leq N} \left(\frac{n}{p}\right)<\epsilon N$ for all $N\geq m$. Prove that
$$\sum_{p<x}f_\epsilon(p)\sim c_\epsilon \frac{x}{\log x}$$
for some $c_\epsilon > 0$.

Proved by Elliott [El69].
-/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos981.lean#L42"]
theorem erdos_981 (ε : ℝ) (hε : 0 < ε) :
    ∃ c > (0 : ℝ), Tendsto (fun x ↦ (∑ p : Nat.primesBelow ⌈x⌉₊, f ε p) * log x / x) atTop (𝓝 c) := by
  sorry

/--
Let $\epsilon > 0$ and $f_\epsilon(p)$ be the smallest integer $m$ such that $\sum_{n\leq m} \left(\frac{n}{p}\right)<\epsilon m$. Prove that
$$\sum_{p<x}f_\epsilon(p)\sim c_\epsilon \frac{x}{\log x}$$
for some $c_\epsilon > 0$.

Proved by Tang and Zhang [TaZh25].
-/
@[category research solved, AMS 11]
theorem erdos_981.variants.first_time (ε : ℝ) (hε : 0 < ε) :
    ∃ c > (0 : ℝ), Tendsto (fun x ↦ (∑ p : Nat.primesBelow ⌈x⌉₊, f' ε p) * log x / x) atTop (𝓝 c) := by
  sorry

end Erdos981

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

nosorry fetch erdos-981
nosorry submit erdos-981 nosorry/erdos-981/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.