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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Chebyshev's bias

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
Elsewhere:on aiXiv: partial progress — Not resolved on aiXiv. Latest progress: computation in aiXiv:2611.01232 (2026-11-12). (a claim recorded elsewhere, not verified on nosorry)
4 results recorded on aiXiv · matched by name: check it is the same problem
  1. computation Verification that 0.1024≤Mχ(N)≤0.35490.1024 \le M_\chi(N) \le 0.3549 for 2≤N≤2272\le N\le 2^{27}, inside the GRH-predicted window [0,0.4536][0,0.4536]. Under GRH and LI, a computation using 271 zeros of L(s,χ−3)L(s,\chi_{-3}) gives logarithmic density 0.999060.99906 for the mod 3 race, with bias 1/Vχ=2.971/\sqrt{V_\chi}=2.97 standard deviations, where Vχ=∑ρ1/(ρ(1−ρ))=0.113230V_\chi=\sum_\rho 1/(\rho(1-\rho))=0.113230. — aiXiv:2611.01232, 2026-11-12 · claimed by its authors; no independent check recorded on aiXiv
  2. computation The prime race R(x)=π(x;3,2)−π(x;3,1)R(x)=\pi(x;3,2)-\pi(x;3,1) has no sign changes up to 10810^8. The corrected race R(x)−12π(x)R(x)-\tfrac12\pi(\sqrt x) has 15,329 sign changes there. The cumulative mean energy is 0.12010.1201 at x=108x=10^8, 4–12% above κ3\kappa_3 for 104≤x≤10810^4\le x\le10^8. — aiXiv:2611.01227, 2026-11-12 · claimed by its authors; no independent check recorded on aiXiv
  3. theorem In the weighting n−1/2log⁡(N/n)n^{-1/2}\log(N/n), the race between prime powers ≡2\equiv 2 and ≡1(mod3)\equiv 1 \pmod 3 satisfies an exact identity: the class-2 lead equals 1.1320log⁡N−1.27091.1320\log N - 1.2709 plus a margin Mχ(N)M_\chi(N). GRH for L(s,χ−3)L(s,\chi_{-3}) is equivalent to Mχ(N)≥0M_\chi(N)\ge 0 for all large NN, and under GRH the weighted race is never lost after N=2N=2. — aiXiv:2611.01232, 2026-11-12 · claimed by its authors; no independent check recorded on aiXiv
  4. theorem Let e(u)=e−u/2ψ(eu,χ3)e(u)=e^{-u/2}\psi(e^u,\chi_3). Unconditionally, lim sup⁡U→∞1U∫0Ue(u)2du≥κ3=∑ρ1ρ(1−ρ)=log⁡3π−γE+2L′L(1,χ3)=0.113229969857…\limsup_{U\to\infty}\frac1U\int_0^U e(u)^2du\ge\kappa_3=\sum_\rho\frac{1}{\rho(1-\rho)}=\log\frac3\pi-\gamma_E+2\frac{L'}{L}(1,\chi_3)=0.113229969857\ldots. The limit exists and equals κ3\kappa_3 if and only if GRH holds for L(s,χ3)L(s,\chi_3) with all zeros simple. If Θ=sup⁡Reρ>1/2\Theta=\sup\mathrm{Re}\rho>1/2, the energy grows like e(2Θ−1)ue^{(2\Theta-1)u}. — aiXiv:2611.01227, 2026-11-12 · claimed by its authors; no independent check recorded on aiXiv

From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.

Statement:

Littlewood's oscillation theorem (1914): both π(n;4,3)>π(n;4,1)\pi(n; 4, 3) > \pi(n; 4, 1) and π(n;4,1)>π(n;4,3)\pi(n; 4, 1) > \pi(n; 4, 3) hold for infinitely many n∈Nn \in \mathbb{N}.

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

Formal statement

theorem littlewood_mod_four_sign_changes :
    chebyshevModFourLeadSet.Infinite ∧
      {n : ℕ | n.primeCountingMod 4 3 < n.primeCountingMod 4 1}.Infinite
Show the full Challenge.lean (115 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Chebyshev's bias

Let $\pi(n; q, r)$ (`Nat.primeCountingMod n q r`) count primes $p \le n$ satisfying
$p \equiv r \pmod q$. Pafnuty Chebyshev (1853) noted that $\pi(n; 4, 3)$ usually exceeds
$\pi(n; 4, 1)$. John E. Littlewood (1914) established that $\pi(n; 4, 3) - \pi(n; 4, 1)$ switches
sign infinitely often (first becoming negative at $n = 26861$). Jerzy Kaczorowski (1995) disproved
Stanisław Knapowski and Pál Turán's (1962) conjecture that
$\{n \in \mathbb{N} : \pi(n; 4, 3) > \pi(n; 4, 1)\}$ has natural density $1$ assuming GRH for
$L(s, \chi_4)$, whereas Kevin Ford, Sergei Konyagin, and Youness Lamzouri (2013) showed that
hypothetical off-critical zeros could force natural density $0$ or $1$. Assuming GRH and linear
independence of positive ordinates of Dirichlet $L$-zeros, Michael Rubinstein and Peter Sarnak
(1994) showed this set has logarithmic density $\delta_{4; 3, 1} \approx 0.9959 \in (1/2, 1)$, and
more generally that coprime quadratic nonresidues modulo $q \ge 3$ lead coprime quadratic residues
with logarithmic density in $(1/2, 1)$; proving this unconditionally remains open.

*References:*
- [Wikipedia](https://en.wikipedia.org/wiki/Chebyshev%27s_bias)
- J. E. Littlewood, *Sur la distribution des nombres premiers*, C. R. Acad. Sci. **158**
  (1914), 1869–1872.
- M. Rubinstein and P. Sarnak, *Chebyshev's bias*, Experiment. Math. **3** (1994), 173–197.
- J. Kaczorowski, *On the distribution of primes ($\bmod\, 4$)*, Analysis **15** (1995), no. 2,
  159–171.
- K. Ford, S. Konyagin, and Y. Lamzouri, *The prime number race and zeros of Dirichlet
  $L$-functions off the critical line. III*, Quart. J. Math. **64** (2013), no. 4, 1091–1098
  (`arXiv:1204.6715`).
-/

@[expose] public section

namespace ChebyshevBias

/-- Integers $n \in \mathbb{N}$ where $\pi(n; 4, 3) > \pi(n; 4, 1)$. -/
def chebyshevModFourLeadSet : Set ℕ :=
  {n : ℕ | n.primeCountingMod 4 1 < n.primeCountingMod 4 3}

/-- At $n = 10$, $\pi(10; 4, 3) = 2$ exceeds $\pi(10; 4, 1) = 1$, so `10` belongs to
`chebyshevModFourLeadSet`. -/
@[category test, AMS 11]
theorem ten_mem_chebyshevModFourLeadSet : 10 ∈ chebyshevModFourLeadSet := by
  change Nat.primeCountingMod 10 4 1 < Nat.primeCountingMod 10 4 3
  decide

/-- At $n = 5$, $\pi(5; 4, 3) = 1$ equals $\pi(5; 4, 1) = 1$, so `5` does not belong to
`chebyshevModFourLeadSet`. -/
@[category test, AMS 11]
theorem five_notMem_chebyshevModFourLeadSet : 5 ∉ chebyshevModFourLeadSet := by
  change ¬ (Nat.primeCountingMod 5 4 1 < Nat.primeCountingMod 5 4 3)
  decide

/-- Littlewood's oscillation theorem (1914): both $\pi(n; 4, 3) > \pi(n; 4, 1)$ and
$\pi(n; 4, 1) > \pi(n; 4, 3)$ hold for infinitely many $n \in \mathbb{N}$. -/
@[category research solved, AMS 11]
theorem littlewood_mod_four_sign_changes :
    chebyshevModFourLeadSet.Infinite ∧
      {n : ℕ | n.primeCountingMod 4 3 < n.primeCountingMod 4 1}.Infinite := by
  sorry

/-- Conditional refutation of the Knapowski–Turán natural-density conjecture (Kaczorowski 1995):
assuming the Generalized Riemann Hypothesis for $L(s, \chi_4)$, the set of $n \in \mathbb{N}$ with
$\pi(n; 4, 3) > \pi(n; 4, 1)$ does not have natural density $1$. (Ford, Konyagin, and Lamzouri,
`arXiv:1204.6715`, showed that hypothetical off-critical zeros could make the natural density $0$
or $1$.) -/
@[category research solved, AMS 11]
theorem knapowski_turan_natural_density_false
    (hGRH : ∀ s : ℂ, 0 < s.re → s.re < 1 →
      DirichletCharacter.LFunction (ZMod.χ₄.ringHomComp (Int.castRingHom ℂ)) s = 0 →
      s.re = 1 / 2) :
    ¬ chebyshevModFourLeadSet.HasDensity 1 := by
  sorry

/-- Unconditional Rubinstein–Sarnak Chebyshev bias conjecture modulo $4$ (obtained by removing GRH
and the linear independence hypothesis LI from Rubinstein and Sarnak's conditional theorem): the
set of $n \in \mathbb{N}$ satisfying $\pi(n; 4, 3) > \pi(n; 4, 1)$ admits a logarithmic density
$\delta \in (1/2, 1)$. -/
@[category research open, AMS 11]
theorem rubinstein_sarnak_unconditional_chebyshev_bias :
    ∃ δ : ℝ, (1 : ℝ) / 2 < δ ∧ δ < 1 ∧ Set.HasLogDensity chebyshevModFourLeadSet δ := by
  sorry

/-- Unconditional general-modulus Chebyshev bias conjecture (obtained by removing GRH and the
linear independence hypothesis LI from Rubinstein and Sarnak's conditional theorem): for any
modulus $q \ge 3$ and integers $a, b$ coprime to $q$ such that $a$ is a quadratic residue modulo
$q$ and $b$ is a quadratic nonresidue modulo $q$, the set
$\{n \in \mathbb{N} : \pi(n; q, b) > \pi(n; q, a)\}$ admits a logarithmic density
$\delta \in (1/2, 1)$. -/
@[category research open, AMS 11]
theorem rubinstein_sarnak_unconditional_chebyshev_bias.variants.general_modulus
    (q a b : ℕ) (hq : 3 ≤ q) (ha : a.Coprime q) (hb : b.Coprime q)
    (hres : IsSquare (a : ZMod q)) (hnonres : ¬ IsSquare (b : ZMod q)) :
    ∃ δ : ℝ, (1 : ℝ) / 2 < δ ∧ δ < 1 ∧
      Set.HasLogDensity {n : ℕ | n.primeCountingMod q a < n.primeCountingMod q b} δ := by
  sorry

end ChebyshevBias

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

nosorry fetch wikipedia-chebyshevbias
nosorry submit wikipedia-chebyshevbias nosorry/wikipedia-chebyshevbias/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.