The one-sided bound, and the theorem in half-plane form
New.Reduction.OneSidedBound.lean
Reading
Upstream documentation written by Claude
Let
q₀ = P.q₀andd = P.dbe the modulus and the prime of the parametersP. LetR_q(y) = primeRemainder d q y = ∑_{n ≤ y} λ(n) (1/n - 1/y) - log y / φ(q) - c_q. Admissible dataDforPinclude scalesx = D.x,x₁ = D.x₁andb(D.logB = log b) with(log b) ^ 100 ≤ x,x ^ 10⁶ ≤ x₁,x₁ ^ 10⁶ ≤ bandlog log b ≥ 10¹² P.constantBound, and an integerm = D.min[√x, 2 √x]. ThenR_{q₀}(x) ≤ φ(q₀) log⁶ b / m + |R_{q₀}(x₁)| + log b · |R₁(x₁)|.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Declarations
theorem grh : DirichletLNonvanishingRightOfHalftheorem eventually_primeRemainder_le_rpow {q₀ : ℕ} [NeZero q₀] (hq₀ : 18480 ∣ q₀) {d : ℕ} [hd_prime : Fact d.Prime] (hd : d ≡ q₀ / 2 - 1 [MOD q₀]) {ε : ℝ} (hε : 0 < ε) : ∀ᶠ y : ℝ in atTop, primeRemainder d q₀ y ≤ y ^ (-1 / 2 + ε)lemma Data.primeRemainder_le {P : Parameters} (D : Data P) : primeRemainder P.d P.q₀ D.x ≤ P.q₀.totient * D.logB ^ 6 / D.m + |primeRemainder P.d P.q₀ D.x₁| + D.logB * |primeRemainder P.d 1 D.x₁|
Import route to Main
New.Reduction.OneSidedBound → New.Main (pinned import) → Main (pinned import)