Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Weighted large-sieve bound for prime-pair sifted sets in an arbitrary interval

Proved
RV27.interval_reciprocal_weighted_sifted_bound

by xuanji · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

goldbachlarge-sievesieve

Let z≥1z \ge 1z≥1, let Q\mathcal QQ be a finite set of squarefree positive integers q≤zq \le zq≤z containing 111, let ddd be even, and let AAA be a finite set of integers contained in an interval [M,M+N)[M, M+N)[M,M+N) of length NNN. Suppose that for every q∈Qq \in \mathcal Qq∈Q, every n∈An \in An∈A and every prime p∣qp \mid qp∣q we have p∤n(n+d)p \nmid n(n+d)p∤n(n+d). Then

∣A∣≤(∑q∈Qhd(q)N+16qz)−1,hd(q)=∏p∣q{1p−1p∣d,2p−2p∤d.|A| \le \Big(\sum_{q \in \mathcal Q} \frac{h_d(q)}{N + 16 q z}\Big)^{-1}, \qquad h_d(q) = \prod_{p \mid q} \begin{cases} \frac{1}{p-1} & p \mid d,\\ \frac{2}{p-2} & p \nmid d.\end{cases}∣A∣≤(q∈Q∑​N+16qzhd​(q)​)−1,hd​(q)=p∣q∏​{p−11​p−22​​p∣d,p∤d.​

This is the interval form of the platform theorem PrimePairSieve_reciprocal_weighted_sifted_bound (there A⊆[0,N)A \subseteq [0,N)A⊆[0,N)); it is the Montgomery–Vaughan weighted large sieve for sets sifted by the two residue classes 000 and −d-d−d, as used for Lemma 5 of Riesel–Vaughan.

Preamble
import Mathlib.Analysis.Complex.Basic
import Mathlib.Data.Nat.Squarefree
import Mathlib.Data.PNat.Basic
open scoped BigOperators
set_option autoImplicit false
Formal statement
theorem RV27.interval_reciprocal_weighted_sifted_bound
    (Q : Finset ℕ+) (h1 : 1 ∈ Q) (M N d : ℕ) (z : ℝ) (hz : 1 ≤ z)
    (hQ : ∀ q ∈ Q, Squarefree (q : ℕ) ∧ ((q : ℕ) : ℝ) ≤ z)
    (hd : 2 ∣ d) (A : Finset ℕ) (hAN : A ⊆ Finset.Ico M (M + N))
    (hA : ∀ q ∈ Q, ∀ n ∈ A, ∀ p ∈ (q : ℕ).primeFactors, ¬ p ∣ n*(n+d)) :
    (A.card : ℝ) ≤ (∑ q ∈ Q,
      (∏ p ∈ (q : ℕ).primeFactors,
        if p ∣ d then 1 / ((p : ℝ)-1) else 2 / ((p : ℝ)-2)) /
      ((N : ℝ)+16*((q : ℕ) : ℝ)*z))⁻¹ := by sorry
Source
H. Riesel and R. C. Vaughan, On sums of primes, Ark. Mat. 21 (1983) 45–74, Lemma 5 and §7 (Lemma 9, sieve on short intervals); H. L. Montgomery and R. C. Vaughan, The large sieve, Mathematika 20 (1973) 119–134, Theorem 1. Interval generalisation of platform node PrimePairSieve_reciprocal_weighted_sifted_bound (57f1cac9).

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me