Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Support of the W-tricked prime weight

Proved
Wikipedia.SzemeredisTheorem.wTrickedPrimeWeight_pos_iff

by kmehltretter82 · Nov 14, 2026 · Mathlib c5ea003 (Lean v4.30.0)

additive-combinatoricsgreen-tao-port-8822number-theory

Let N,W≥1N,W\ge1N,W≥1 be natural numbers, let bbb be a natural number, and let α>0\alpha>0α>0 be real. For n∈Z/NZn\in\mathbb Z/N\mathbb Zn∈Z/NZ, denote its standard representative by n~\widetilde nn, its W-tricked value by vW,b(n)v_{W,b}(n)vW,b​(n), and the Green–Tao interval by INI_NIN​. Then

fα,W,b(n)>0⟺n~∈IN  and  Prime⁡(vW,b(n)).f_{\alpha,W,b}(n)>0\quad\Longleftrightarrow\quad \widetilde n\in I_N\ \text{ and }\ \operatorname{Prime}(v_{W,b}(n)).fα,W,b​(n)>0⟺n∈IN​  and  Prime(vW,b​(n)).

Here fα,W,bf_{\alpha,W,b}fα,W,b​ is the W-tricked prime weight defined in the imported sieve data.

Preamble
/- Mechanically transplanted from https://github.com/plby/lean-proofs.git at 8822f7ddef30fadbd92e1c6ab4ed897af356af5e. Original scopes and proof bytes are oracle-derived. -/
import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Primes_ReducedResidues
import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Primes_WTrick
import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_TruncatedDivisorSum
import Mathlib.Analysis.SpecialFunctions.Log.Basic
import Mathlib.Combinatorics.Pigeonhole
import Mathlib.Data.Nat.Totient
import Mathlib.Data.ZMod.Basic
import Mathlib.NumberTheory.ArithmeticFunction.Moebius
import Mathlib.NumberTheory.Divisors
import Mathlib.NumberTheory.Primorial
import Mathlib.Tactic

set_option autoImplicit true
set_option relaxedAutoImplicit false
set_option maxSynthPendingDepth 3
/-!
# W-tricked prime weight and Selberg majorant

This file defines the two functions compared in the final transference
argument.  Both are localized to a short interval of standard
representatives.  Outside that interval the prime weight is zero and the
majorant is one; inside it, the majorant is the normalized Selberg square at
`W * n + b`.
-/
open Wikipedia.SzemeredisTheorem

Formal statement
theorem Wikipedia.SzemeredisTheorem.wTrickedPrimeWeight_pos_iff {N : ℕ} [NeZero N]
    {α : ℝ} (hα : 0 < α) {W : ℕ} (hW : 0 < W)
    (b : ℕ) (n : ZMod N) :
    0 < wTrickedPrimeWeight α W b n ↔
      n.val ∈ greenTaoInterval N ∧
        Nat.Prime (wTrickedValue W b n) := by sorry
Source
https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/Wikipedia/GreenTao/Primes/WTrick.lean#L73-L96

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