Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Exact square-root remainder for the centered Möbius progression sum

Proved
GRH.centered_moebius_mertens_remainder

by scuba8684 · Nov 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theoryarithmetic-progressionsmoebius-function

For any positive modulus qqq, any residue aaa, and any N≥0N\ge0N≥0, let U=⌊N⌋U=\lfloor\sqrt N\rfloorU=⌊N​⌋, Ma(X)=∑1≤k≤X, k≡a(modq)μ(k)M_a(X)=\sum_{1\le k\le X,\ k\equiv a\pmod q}\mu(k)Ma​(X)=∑1≤k≤X, k≡a(modq)​μ(k), and Hq(U)=∑1≤d≤U, (d,q)=1μ(d)/dH_q(U)=\sum_{1\le d\le U,\ (d,q)=1}\mu(d)/dHq​(U)=∑1≤d≤U, (d,q)=1​μ(d)/d. If Ba(N)B_a(N)Ba​(N) denotes the centered bilinear expression, then

Ba(N)+Ma(N)+(N/q)Hq(U)2=2Ma(U).B_a(N)+M_a(N)+(N/q)H_q(U)^2=2M_a(U).Ba​(N)+Ma​(N)+(N/q)Hq​(U)2=2Ma​(U).

The absolute value of this remainder is at most 2U2U2U. The equality holds also for nonunit residues and at N=0N=0N=0.

Preamble
import Definitions.Def_GRH_MoebiusBilinear

open scoped BigOperators
Formal statement
theorem GRH.centered_moebius_mertens_remainder
    (q : ℕ) [NeZero q] (a : ZMod q) (N : ℕ) :
    let M := fun X : ℕ => ∑ k ∈ Finset.range (X + 1),
      if (k : ZMod q) = a then (ArithmeticFunction.moebius k : ℝ) else 0
    let E := GRH.centeredMoebiusBilinear q a N +
      (M N + (1 / (q : ℝ)) * (N : ℝ) * (GRH.reducedMoebiusHarmonic q N.sqrt) ^ 2)
    E = 2 * M N.sqrt ∧ |E| ≤ 2 * (N.sqrt : ℝ) := by sorry
Source
Helfgott and Thompson, Summing μ(n): a faster elementary algorithm, §2, (2.1)–(2.2), https://doi.org/10.1007/s40993-022-00408-8. The residue-weighted truncation and the centering factorization are adapted from the public proof sources https://prove2.me/submissions/509e229b-7ae5-4fe8-b643-d32c7895621a and https://prove2.me/submissions/0176d409-98bf-44bc-b6fe-85633680ae6d. The combined centered identity also appears inside https://prove2.me/theorems/caa25386-7d4a-41b1-afe7-db19fdae4d1e. The statement here supplies an independently reusable remainder bound for every residue.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me