Affine residue representatives satisfy the required prime models
ProvedWikipedia.SzemeredisTheorem.pairedDivisibilityHasAffinePrimeModels_affineFormResidueValueadditive-combinatoricsgreen-tao-port-8822number-theory
For finite index and coordinate types with decidable equality, any family of integer affine forms and any squarefree paired-divisor choice with nonzero global LCM satisfy the paired affine prime-model property when the natural-valued functions are the canonical representatives of the affine residues.
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_LinearForms_Geometry import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_LinearForms_Independence import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Primes_ReducedResidues import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Primes_WTrick import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_CFZCarryBlockBoundary import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_CFZCarryBlockEulerBridge import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_CFZCongruenceBoundary import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_ComplexLocalFactorControl import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_ComplexZetaModelComparison import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_CongruenceAverage import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_CyclicMajorant import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_ExceptionalPrimes import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_FourierZetaParameters import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_GoodPrimeAffineRank import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_GoodPrimeLocalFactorBound import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_LinearFormsExpansion import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_LocalFactors import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_MultivariateFourierExpansion import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_PairedDivisibilityCRT import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_PairedLocalFactors import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_SmoothCutoff import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_SmoothCutoffFourier import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_SmoothCutoffFourierProductTail import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_SmoothCutoffFourierTail import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_SmoothMajorant import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_TruncatedDivisorSum import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_WTrickedGoodPrime import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_WTrickedLocalFactors import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Sieve_ZetaNearOne import Definitions.Def_GreenTaoPort_Wikipedia_SzemeredisTheorem_Finite_Mean import Definitions.Def_GreenTaoPort_Wikipedia_SzemeredisTheorem_LinearForms_Basic import Mathlib.Algebra.BigOperators.Expect import Mathlib.Algebra.Field.ZMod import Mathlib.Algebra.GCDMonoid.FinsetLemmas import Mathlib.Algebra.Order.BigOperators.Group.Finset 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.Log.Summable import Mathlib.Analysis.SpecialFunctions.Pow.Complex import Mathlib.Combinatorics.Pigeonhole import Mathlib.Data.Fintype.BigOperators import Mathlib.Data.Fintype.Card import Mathlib.Data.Fintype.Pi import Mathlib.Data.Int.Interval import Mathlib.Data.Int.Lemmas import Mathlib.Data.Nat.GCD.Prime import Mathlib.Data.Nat.Squarefree import Mathlib.Data.Nat.Totient import Mathlib.Data.ZMod.Basic import Mathlib.Data.ZMod.QuotientRing import Mathlib.GroupTheory.Index import Mathlib.LinearAlgebra.Pi import Mathlib.Logic.Equiv.Fin.Basic import Mathlib.MeasureTheory.Integral.Bochner.Set import Mathlib.MeasureTheory.Integral.IntegralEqImproper import Mathlib.MeasureTheory.Integral.Pi import Mathlib.MeasureTheory.Integral.Prod import Mathlib.NumberTheory.ArithmeticFunction.Moebius import Mathlib.NumberTheory.Divisors import Mathlib.NumberTheory.Harmonic.ZetaAsymp import Mathlib.NumberTheory.LSeries.Dirichlet import Mathlib.NumberTheory.Primorial import Mathlib.NumberTheory.SumPrimeReciprocals import Mathlib.Tactic set_option autoImplicit true set_option relaxedAutoImplicit false set_option maxSynthPendingDepth 3 /-! # Carry-block Euler products for selected CFZ families The cyclic CFZ lift is not globally periodic modulo a paired divisor LCM: crossing a representative boundary changes an integer carry. The preceding carry-block boundary file replaces that false periodicity by a sound piecewise-affine model. This file identifies the exact arithmetic model on each complete quotient block. For `D = pairedDivisorLcm z`, a complete block has the form `x = r + D a`, with `0 ≤ r_v < D`. The carry is frozen at the lower corner `D a`. Thus the block is governed by the family `q ↦ cfzCarryAdjustedAffineForm N W b q (cfzCarry q (D a))`. Its mean over `r` is an exact squarefree CRT Euler product. Averaging those products over all complete blocks gives the global blockwise Euler model. The only losses in comparing it with the original cyclic density are: * the explicit carry-transition density from `CFZCarryBlockBoundary`; * the outer partial-block boundary of size `O(D * card(CFZVariable k) / N)`. The affine constants may depend arbitrarily on the block and on the form. At primes dividing `W` they are still congruent to the reduced residue `b`, so every supported local density is zero. At good primes outside `W`, one-form and rank-two geometry depends only on the coefficients, giving the usual exact cardinality-at-most-two formula and the uniform `p⁻²` bound. -/ open Wikipedia.SzemeredisTheorem open scoped BigOperators /-! ## A generic natural representative for an affine residue -/
Formal statement
theorem Wikipedia.SzemeredisTheorem.pairedDivisibilityHasAffinePrimeModels_affineFormResidueValue
{κ ι : Type*} [Fintype κ] [DecidableEq κ]
[Fintype ι] [DecidableEq ι]
(forms : κ → AffineForm ι ℤ)
(z : κ → ℕ × ℕ) [NeZero (pairedDivisorLcm z)]
(hz : SquarefreePairedDivisorChoice z) :
PairedDivisibilityHasAffinePrimeModels z
(fun q => affineFormResidueValue (forms q))
forms hz := by sorry
Source