Smooth Möbius divisor sums and normalized Selberg weights
DefinitionGreenTaoPort_Wikipedia_GreenTao_Sieve_TruncatedDivisorSumarithmetic-progressionsgreen-tao-port-8822number-theorysieve-theory
For a real function and natural numbers , define the smoothly truncated divisor sum
The summation is over natural divisors, and the individual summand is also supplied separately. The Selberg weight is the square . Given a real normalizer and natural period , its normalized majorant is
These are total real-valued definitions. Smoothness, compact support, , and positivity assumptions are supplied when proving the later majorant estimates rather than imposed on the function parameter here.
Definition code
import Mathlib.Analysis.SpecialFunctions.Log.Basic
import Mathlib.Data.Nat.Totient
import Mathlib.NumberTheory.ArithmeticFunction.Moebius
import Mathlib.NumberTheory.Divisors
import Mathlib.Tactic
import Lean
set_option autoImplicit true
set_option relaxedAutoImplicit false
set_option maxSynthPendingDepth 3
/-!
# Smooth truncated divisor sums
The Goldston--Yıldırım majorant is the square of a smoothly truncated
Möbius divisor sum. This file fixes the normalization and proves the exact
prime-value identity used for pointwise domination of the W-tricked prime
weight. The later linear-forms estimate is deliberately separated from
these elementary identities.
-/
namespace Wikipedia.SzemeredisTheorem
open scoped ArithmeticFunction.Moebius BigOperators
/-- Smooth truncated divisor sum
`Λ_{χ,R}(n) = log R * ∑_{d ∣ n} μ(d) χ(log d / log R)`.
For the final construction, `χ` is a smooth compactly supported function
with `χ 0 = 1`. -/
noncomputable def smoothTruncatedDivisorSum
(χ : ℝ → ℝ) (R n : ℕ) : ℝ :=
Real.log R *
∑ d ∈ n.divisors,
(ArithmeticFunction.moebius d : ℝ) *
χ (Real.log d / Real.log R)
/-- The individual Möbius-cutoff term in the truncated divisor sum. -/
noncomputable def smoothDivisorSummand
(χ : ℝ → ℝ) (R d : ℕ) : ℝ :=
(ArithmeticFunction.moebius d : ℝ) *
χ (Real.log d / Real.log R)
/-- The nonnegative Selberg square used as the unnormalized majorant. -/
noncomputable def smoothSelbergWeight
(χ : ℝ → ℝ) (R n : ℕ) : ℝ :=
smoothTruncatedDivisorSum χ R n ^ 2
/-- The standard W-tricked normalization of the Selberg square. The
positive constant `cχ` will later be the `L²` mass of `χ'`. -/
noncomputable def normalizedSelbergMajorant
(χ : ℝ → ℝ) (cχ : ℝ) (R W n : ℕ) : ℝ :=
(W.totient : ℝ) / W *
smoothSelbergWeight χ R n / (cχ * Real.log R)
end Wikipedia.SzemeredisTheorem
/- Materialize compiler-generated declarations promised by this bundle. -/
run_meta do
for requiredName in #[
`Wikipedia.SzemeredisTheorem.smoothDivisorSummand.eq_1,
`Wikipedia.SzemeredisTheorem.smoothSelbergWeight.eq_1
] do
let actualName ← Lean.realizeGlobalConstNoOverloadCore requiredName
unless actualName == requiredName do
throwError "Generated companion resolved to an unexpected name"
Source