Prime-pair count bounded by the base reciprocal sieve denominator
ProvedPrimePairSieve_prime_pair_count_base_reciprocal_boundFor integers and positive even , set and define
Then the exact prime-pair counting function satisfies
The empty prime-factor product is one, so the q=1 summand guarantees a positive denominator. This is a uniform bound in the positive even shift d, expressed using a single shift-independent finite arithmetic denominator. The additive term records the small primes omitted by sieving.
The result connects an unconditional weighted large sieve with the base denominator for which the platform already has a quadratic logarithmic expansion. Turning it into the all-range Siebert estimate requires quantitative denominator bounds and separate control of the remaining finite range; neither is asserted here.
Formalization Note: the left side is exactly the mission’s finite indicator sum over n in {0,…,x}, and the cutoff in the denominator is the natural floor of sqrt(x)/4. No asymptotic or Fourier estimate is an input assumption.
import Mathlib.Analysis.Real.Sqrt import Mathlib.Data.Real.Archimedean import Mathlib.Data.Nat.Squarefree open scoped BigOperators set_option autoImplicit false
theorem PrimePairSieve_prime_pair_count_base_reciprocal_bound
(x d : ℕ) (hx : 16 ≤ x) (hd0 : 0 < d) (hd : 2 ∣ d) :
(∑ n ∈ Finset.range (x+1),
if Nat.Prime n ∧ Nat.Prime (n+d) ∧ n+d ≤ x then (1 : ℝ) else 0) ≤
((∏ p ∈ d.primeFactors, if 2 < p then ((p : ℝ)-1)/((p : ℝ)-2) else 1) * x) /
(∑ q ∈ Finset.Icc 1 ⌊Real.sqrt (x : ℝ)/4⌋₊,
(if Squarefree q then ∏ p ∈ q.primeFactors,
if p = 2 then (1 : ℝ) else 2 / ((p : ℝ)-2) else 0) /
(1+(q : ℝ)/(Real.sqrt (x : ℝ)/4))) + Real.sqrt (x : ℝ)/4 + 1 := by sorry