Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Paired zeta Euler factors and their singular contribution

Definition
GreenTaoPort_Wikipedia_GreenTao_Sieve_ZetaEulerProductIdentification

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

arithmetic-progressionsgreen-tao-port-8822number-theorysieve-theory

At a prime ppp and complex shifts u,vu,vu,v, the paired zeta local model is

(1−p−(1+u))(1−p−(1+v))1−p−(1+u+v).\frac{(1-p^{-(1+u)})(1-p^{-(1+v)})} {1-p^{-(1+u+v)}}.1−p−(1+u+v)(1−p−(1+u))(1−p−(1+v))​.

The system factor multiplies this expression over a finite index set. The cutoff specialization substitutes the precise Fourier shifts (1−2πit)/log⁡R(1-2\pi it)/\log R(1−2πit)/logR on each side. The associated singular factor is the product of uv/(u+v)uv/(u+v)uv/(u+v) over these paired shifts, recording the elementary pole contribution after completing the zeta factors. Analytic nonvanishing and convergence are supplied separately.

Definition code
import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_FourierZetaParameters
import Mathlib.NumberTheory.EulerProduct.DirichletLSeries
import Lean
import Mathlib.Analysis.Calculus.BumpFunction.InnerProduct
import Mathlib.Analysis.Calculus.ContDiff.Deriv
import Mathlib.Analysis.Calculus.Deriv.MeanValue
import Mathlib.Analysis.Calculus.Deriv.Support
import Mathlib.Analysis.Distribution.SchwartzSpace.Fourier
import Mathlib.Analysis.SpecialFunctions.Log.Basic
import Mathlib.Analysis.SpecialFunctions.Pow.Complex
import Mathlib.Data.Nat.Totient
import Mathlib.MeasureTheory.Integral.Bochner.Set
import Mathlib.MeasureTheory.Integral.IntegralEqImproper
import Mathlib.NumberTheory.ArithmeticFunction.Moebius
import Mathlib.NumberTheory.Divisors
import Mathlib.NumberTheory.Harmonic.ZetaAsymp
import Mathlib.NumberTheory.LSeries.Dirichlet
import Mathlib.Tactic

set_option autoImplicit true
set_option relaxedAutoImplicit false
set_option maxSynthPendingDepth 3


/-!
# Identifying the zeta-model Euler product

The model local factor attached to one pair of Fourier shifts `u,v` is

`(1 - p^(-1-u)) (1 - p^(-1-v)) / (1 - p^(-1-u-v))`.

Mathlib's Euler product for `riemannZeta` identifies its prime product with

`ζ(1+u+v) / (ζ(1+u) ζ(1+v))`

whenever the real parts of `u` and `v` are positive.  This file proves that
identity first for one pair and then for an arbitrary finite system.  It
then specializes to the exact Mathlib Fourier shifts and splits the answer
into the elementary singular factor and the removable completed factor from
`ZetaNearOne`.
-/

namespace Wikipedia.SzemeredisTheorem

open scoped BigOperators



/-- The per-prime zeta model for one pair of shifts. -/
noncomputable def zetaPairEulerLocalFactor
    (u v : ℂ) (p : Nat.Primes) : ℂ :=
  (1 - (p : ℂ) ^ (-(1 + u))) *
    (1 - (p : ℂ) ^ (-(1 + v))) *
      (1 - (p : ℂ) ^ (-(1 + u + v)))⁻¹



/-- Product of all per-pair zeta-model factors at one prime. -/
noncomputable def zetaSystemEulerLocalFactor
    {κ : Type*} [Fintype κ]
    (u v : κ → ℂ) (p : Nat.Primes) : ℂ :=
  ∏ i, zetaPairEulerLocalFactor (u i) (v i) p



/-- The zeta model specialized to the exact cutoff Fourier shifts. -/
noncomputable def cutoffZetaEulerLocalFactor
    {κ : Type*} [Fintype κ]
    (R : ℕ) (t u : κ → ℝ)
    (p : Nat.Primes) : ℂ :=
  zetaSystemEulerLocalFactor
    (fun i => cutoffZetaShift R (t i))
    (fun i => cutoffZetaShift R (u i)) p

/-- The elementary pole contribution left after completing every zeta
factor. -/
noncomputable def cutoffZetaSingularFactor
    {κ : Type*} [Fintype κ]
    (R : ℕ) (t u : κ → ℝ) : ℂ :=
  ∏ i,
    (cutoffZetaShift R (t i) *
        cutoffZetaShift R (u i)) /
      (cutoffZetaShift R (t i) +
        cutoffZetaShift R (u i))





end Wikipedia.SzemeredisTheorem


/- Materialize compiler-generated declarations promised by this bundle. -/
run_meta do
  for requiredName in #[
    `Wikipedia.SzemeredisTheorem.cutoffZetaSingularFactor.eq_1
  ] do
    let actualName ← Lean.realizeGlobalConstNoOverloadCore requiredName
    unless actualName == requiredName do
      throwError "Generated companion resolved to an unexpected name"
Source
https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/Wikipedia/GreenTao/Sieve/ZetaEulerProductIdentification.lean#L40-L122

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