Scaled prime-only W-tricked weight on a short interval
DefinitionGreenTao_PrimeWeightanalytic-number-theorygreen-taonumber-theory
For an integer , put
For a positive integer , a natural number , and with natural representative , define
Here is Euler's totient function. This is the weight used immediately after Proposition 9.1 to combine the prime majorant with relative Szemerédi. Prime powers other than primes receive zero weight. The definitions are total in Lean, while the applications assume and .
Definition code
import Definitions.Def_GreenTao_Pseudorandom
import Mathlib.NumberTheory.Primorial
import Mathlib.Data.Nat.Totient
import Mathlib.Analysis.SpecialFunctions.Log.Basic
namespace GreenTao
/-- The short-interval parameter in Green--Tao Proposition 9.1. -/
noncomputable def primeInterval (k : ℕ) : ℝ :=
1 / ((2 : ℝ) ^ k * (Nat.factorial (k + 4) : ℝ))
/-- The scaling factor in Green--Tao Proposition 9.1. -/
noncomputable def primeScale (k : ℕ) : ℝ :=
1 / ((k : ℝ) * (2 : ℝ) ^ (k + 5))
/-- The prime-only modified von Mangoldt weight from the start of §9,
scaled and restricted to the interval used after Proposition 9.1. -/
noncomputable def primeWeight (k W : ℕ) {m : ℕ+} (x : ZMod (m : ℕ)) : ℝ :=
if Nat.Prime (W * x.val + 1) ∧
primeInterval k * (m : ℝ) ≤ (x.val : ℝ) ∧
(x.val : ℝ) ≤ 2 * primeInterval k * (m : ℝ) then
primeScale k * ((Nat.totient W : ℝ) / (W : ℝ)) *
Real.log (W * x.val + 1 : ℕ)
else 0
end GreenTao
Source
Green and Tao, The primes contain arbitrarily long arithmetic progressions, https://arxiv.org/html/math/0404188v6, §9, the displayed definition of the modified von Mangoldt function before Proposition 9.1; the constants in Proposition 9.1; and the definition of f at the start of the proof of Theorem 1.1 assuming Proposition 9.1.