The exact signed-prime slope energy and a uniform estimate for short prime pairs
ProvedGRH.prime_slope_energy_expansion_and_short_pair_boundanalytic-number-theorydirichlet-charactersprime-numbers
On an integer block [Y,Z) with 1 <= Y <= Z <= 2Y, expand the sum of squared signed reciprocal prime slopes as a constant term, a linear prime sum and a quadratic prime-pair sum. For any weights bounded by one, the absolute contribution of ordered pairs with p <= q <= p+H is at most (H+1) log(2Y)^2. The starting slope is arbitrary. The result applies on every block and to complex Dirichlet characters through their real parts.
Preamble
import Mathlib open Finset ArithmeticFunction
Formal statement
theorem GRH.prime_slope_energy_expansion_and_short_pair_bound (Y Z H : ℕ) (hY : 1 ≤ Y) (hYZ : Y ≤ Z) (hZ : Z ≤ 2*Y)
(b : ℕ → ℝ) (hb : ∀ p, |b p| ≤ 1) (B : ℝ) :
let w : ℕ → ℝ := fun p => if p.Prime then Real.log p * b p / p else 0
let I := Ico Y Z
(∑ k ∈ I, (B + ∑ p ∈ I, if p ≤ k then w p else 0)^2) =
((Z-Y : ℕ):ℝ)*B^2 + 2*B*(∑ p ∈ I, ((Z-p : ℕ):ℝ)*w p) +
(∑ p ∈ I, ∑ q ∈ I, ((Z-max p q : ℕ):ℝ)*w p*w q) ∧
(∑ p ∈ I, ∑ q ∈ I with p ≤ q ∧ q ≤ p+H, ((Z-q : ℕ):ℝ)*|w p*w q|) ≤
((H+1:ℕ):ℝ)*(Real.log (2*(Y:ℝ)))^2 := by sorrySource
Signed-slope estimate for the prime-only frontier https://prove2.me/theorems/ba6d43a5-a1ac-42c8-9d2e-bf1831d487db. The prime-power slope error is bounded by https://prove2.me/theorems/b00e0c03-df39-5f94-acc2-46f1acd19e46.