Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The mean value theorem for Dirichlet polynomials, on intervals and with a Cauchy weight ([21] Lemma 2.2, (2.2))

Proved
ArtinPrimitiveRoots.dirichlet_mean_value

by dbenbenn · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorynumber-theoryprimitive-roots

Let sss be a finite set of integers in [1,N][1, N][1,N] and c:N→Cc : \mathbb N \to \mathbb Cc:N→C, and put P(t)=∑n∈scnnitP(t) = \sum_{n \in s}c_n n^{it}P(t)=∑n∈s​cn​nit. Then:

  1. for all reals T1≤T2T_1 \le T_2T1​≤T2​, ∫T1T2∣P(t)∣2 dt≤(T2−T1+4N(1+log⁡N))∑n∈s∣cn∣2\displaystyle\int_{T_1}^{T_2}|P(t)|^2\,dt \le \bigl(T_2 - T_1 + 4N(1 + \log N)\bigr)\sum_{n \in s}|c_n|^2∫T1​T2​​∣P(t)∣2dt≤(T2​−T1​+4N(1+logN))n∈s∑​∣cn​∣2;
  2. for every a>0a > 0a>0, ∫R∣P(τ)∣21+(τ/a)2 dτ≤(πa+2πN(1+log⁡N))∑n∈s∣cn∣2\displaystyle\int_{\mathbb R}\frac{|P(\tau)|^2}{1 + (\tau/a)^2}\,d\tau \le \bigl(\pi a + 2\pi N(1 + \log N)\bigr)\sum_{n \in s}|c_n|^2∫R​1+(τ/a)2∣P(τ)∣2​dτ≤(πa+2πN(1+logN))n∈s∑​∣cn​∣2.

A step in the proof of Lemma 10.2's major-term bound major_square_bound, through OpenAI's The Poisson–Dirichlet law for prime predecessors, where it is the mean-square part of Lemma 2.2. The constants are explicit.

OpenAI, The Poisson–Dirichlet law for prime predecessors (2026), p. 6, Lemma 2.2: “Let P(t)=∑n≤YcnnitP(t) = \sum_{n \le Y}c_nn^{it}P(t)=∑n≤Y​cn​nit. On every real interval III of length T≥0T \ge 0T≥0, ∫I∣P(t)∣2 dt≪(T+Ylog⁡(2Y))∑n∣cn∣2\int_I|P(t)|^2\,dt \ll (T + Y\log(2Y))\sum_n|c_n|^2∫I​∣P(t)∣2dt≪(T+Ylog(2Y))∑n​∣cn​∣2. (2.2)”

Preamble
import Mathlib
Formal statement
namespace ArtinPrimitiveRoots

open Real

theorem dirichlet_mean_value (s : Finset ℕ) (N : ℕ) (hs : ∀ n ∈ s, 1 ≤ n ∧ n ≤ N) (c : ℕ → ℂ) :
    (∀ T₁ T₂ : ℝ, T₁ ≤ T₂ →
      ∫ t in T₁..T₂, ‖∑ n ∈ s, c n * (n : ℂ) ^ (Complex.I * t)‖ ^ 2 ≤
        (T₂ - T₁ + 4 * N * (1 + Real.log N)) * ∑ n ∈ s, ‖c n‖ ^ 2) ∧
    (∀ a : ℝ, 0 < a →
      ∫ τ, (1 + (τ / a) ^ 2)⁻¹ * ‖∑ n ∈ s, c n * (n : ℂ) ^ (Complex.I * τ)‖ ^ 2 ≤
        (π * a + 2 * π * N * (1 + Real.log N)) * ∑ n ∈ s, ‖c n‖ ^ 2) := by
  sorry

end ArtinPrimitiveRoots
Source
OpenAI, The Poisson-Dirichlet law for prime predecessors, OpenAI Math Release preprint, September 24, 2026, https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/The-Poisson-Dirichlet-Law-for-Prime-Predecessors-September-24-2026/paper.pdf (Apache-2.0), p. 6, Lemma 2.2, the mean value theorem for Dirichlet polynomials (2.2), plain and with a Cauchy weight, as used in the proof of Proposition 5.1

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