Multiplicative Number Theory I: Siegel–Walfisz and the Three Primes TheoremTextbook
Primes in progressions, uniformly in the modulus
Applying the circle method to an additive problem about primes requires counting primes in arithmetic progressions with an error term uniform in the modulus: the modulus is not fixed in advance, it grows with the size of the numbers being represented. The Siegel–Walfisz theorem is the classical statement of that uniformity, valid for every modulus up to a fixed power of , and it is the one analytic ingredient the standard proof of Vinogradov's three primes theorem cannot do without.
The history is a sequence of partial uniformities:
- 1837. Dirichlet proves that every progression with contains infinitely many primes, for each fixed , with no rate (Dirichlet's theorem).
- 1896–1899. De la Vallée Poussin proves the prime number theorem with the error term , and extends the zero-free region from to , obtaining the prime number theorem in progressions for each fixed (PNT).
- 1918–1935. Landau and Page isolate the obstruction to uniformity: a single real zero near , attached to a quadratic character. Landau shows at most one of two distinct real primitive characters can have such a zero; Page shows at most one modulus below a given bound can, yielding unconditional uniformity for up to a bounded power of (Page's theorem).
- 1935. Siegel proves for real primitive , at the price of an ineffective constant (Siegel).
- 1936. Walfisz combines Siegel's bound with the de la Vallée Poussin machinery and obtains uniformity for every fixed power (Walfisz).
- 1937. Vinogradov proves that every sufficiently large odd integer is a sum of three primes (Vinogradov's theorem).
- 2013. Helfgott removes the "sufficiently large", settling ternary Goldbach for all odd (arXiv:1312.7748).
Setting
The von Mangoldt function equals if is a prime power and otherwise. The Chebyshev function counts primes with weights; the prime number theorem is the assertion .
A Dirichlet character modulo is a multiplicative function , supported on the units and taking root-of-unity values there. The principal character is the indicator of the units; a character is quadratic (real) if and , and primitive if it is not induced by a character of a proper divisor of . The Dirichlet -function , defined for , extends meromorphically to , entire except for a simple pole at when is principal.
The two counting functions of the mission are the twisted von Mangoldt sum and the progression sum
related by finite character orthogonality. Write for principal and otherwise. A zero of lying inside the classical zero-free region is an exceptional zero (a Siegel zero); the set of such zeros for a given is the exceptional set , which the results below constrain to have at most one element.
Formalization targets
The attack path follows Davenport, Multiplicative Number Theory, 3rd ed., §§14, 18, 20, 21, 22.
(1) zero_free_region (§14, pp. 88–96). There is an absolute such that for
every and every ,
with at most one exception, which is real, lies in , is a simple zero, and can occur only for quadratic non-principal .
(2) pnt_dlvp (§18, pp. 111–114). For some and all ,
(3) psi_char_of_region (§20, pp. 121–125). For a region constant there are
such that, whenever is an exceptional set for with
respect to and ,
(4) siegel (§21, pp. 126–131). For every there is
such that for every real primitive non-principal ,
(5) siegel_zero (§21, second form). For every there is
such that for every real primitive non-principal ,
(6) siegelWalfisz (§22, pp. 132–134). For every there are such
that for all , all , and all with ,
This is literally the platform proposition ThreePrimes.SiegelWalfisz.
A corollary, not a milestone, records the progression form siegel_walfisz_ap: for
and ,
Goal (three_primes, §26). There is such that every odd is a sum
of three primes. It follows from milestone (6) by the existing platform theorem
deducing ThreePrimes.ThreePrimesExistence from ThreePrimes.SiegelWalfisz. The goal
leaves unspecified rather than hard-coding a numeric threshold, so it is not
invalidated by later improvements to that threshold.
What the result gives, and what remains to be formalized
Siegel–Walfisz is the standard uniform input downstream of which sit the circle method for ternary Goldbach, the Bombieri–Vinogradov theorem, and much of sieve theory. Without it, the three primes theorem's major-arc analysis has no main term.
Platform status is the reason this mission exists. A complete, machine-checked
formalization of the three primes theorem already exists in the namespace ThreePrimes
(by user tabbott), following Vaughan, The Hardy–Littlewood Method, Ch. 3, and
Davenport §26. It is conditional: it takes Siegel–Walfisz as an explicit hypothesis
ThreePrimes.SiegelWalfisz. Discharging that hypothesis makes the three primes theorem
unconditional, and is the whole content of this mission.
Mathlib contains the analytic continuation of
(DirichletCharacter.LFunction),
its functional equation, the non-vanishing of on ,
Dirichlet's theorem, and the Chebyshev function. It does not contain the zero-free
region for , the explicit formula for , Siegel's theorem, or
Siegel–Walfisz. The platform additionally hosts the
PNT+ project contour
machinery for — Borel–Carathéodory, the
inequality, a zero-free rectangle, and MediumPNT,
. That is a template for the
analogues, not a proof of them, and its error term is weaker than the de la Vallée
Poussin form milestone (2) asks for.
Where the obvious argument fails
The first idea is to run the argument character by character. It works for complex and breaks for real ones. The positivity device that pushes zeros off compares , and the trivial character at nearby points; when is quadratic, is principal and contributes the pole of at at exactly the height where the putative zero sits, so the inequality degrades from "no zeros" to "at most one zero" and stops there. Every later step inherits that unexcluded zero: milestone (3) can only be stated with the term present, and milestone (6) is exactly the assertion that for this term is small — which Siegel's ineffective bound supplies and nothing effective is known to.
A second shortcut, deducing uniformity from Mathlib's non-vanishing of on together with Dirichlet's theorem, also fails: those results are qualitative, carry no rate, and are not uniform in .
Formalization scope
Sums run over with , matching Vino.vmSumChar and
ThreePrimes.SiegelWalfisz; Davenport sums over . The two differ by the single
term , negligible against every error term above. Milestone (2)
alone uses a real argument, via Mathlib's Chebyshev.psi. is Mathlib's
DirichletCharacter.LFunction, so no continuation is reconstructed.
The zero-free region is Davenport.InRegion c q s, namely
; the exceptional zero
is packaged as IsExceptionalSet c χ E: is a subsingleton, every element is a real
zero of in and can exist only for quadratic non-principal ,
and at every of the region outside . Milestone (1) adds
simplicity as for .
Milestone (3) takes the region constant as a parameter rather than importing it
from milestone (1), so the milestones can be attempted in any order. For large the
hypothesis IsExceptionalSet c χ E may be unsatisfiable for some , making the
statement vacuous there — a harmless weakening, not a falsehood, and not a trivializing
reading: milestone (1) produces a definite small with a witness for every
, so instantiating milestone (3) at that discharges the hypothesis rather than
voiding it.
Siegel's theorem is stated for χ.IsQuadratic, χ ≠ 1, χ.IsPrimitive characters, with
the conclusion a lower bound on ; since is real
for real , this is the value itself, not a weakening. The constants in milestones
(4), (5) and (6) are ineffective; the statements are plain existentials, so
ineffectivity is invisible to Lean, but no numeric constant can be extracted from
anything downstream of them.
The principal character is included in the character-form statements, with main term
(if χ = 1 then (N : ℂ) else 0); milestones (3) and (6) therefore contain the prime
number theorem itself and cannot be proved by restricting to non-principal .
Milestone (6) requires strictly, which is what makes a
genuine saving over the trivial ; with allowed it would be
empty.
Beyond the six milestones, a complete development needs Hadamard factorization for as an entire function of order , the zero-counting estimate (§16, pp. 101–103), the truncated explicit formula for (§19, pp. 115–120), Perron-type contour truncation, and the imprimitive-to-primitive reduction . All of it is reusable well beyond this mission, being the standard prerequisite for Bombieri–Vinogradov, Linnik's theorem, and effective Chebotarev. Contributions of these supporting results, of alternative routes to milestone (3) following Montgomery–Vaughan Ch. 11, of the versions, and of sharper constants are welcome.
Selected references
- H. Davenport, Multiplicative Number Theory, 3rd ed., revised by H. L. Montgomery, GTM 74, Springer, 2000. §§14, 18, 20, 21, 22, 26. doi:10.1007/978-1-4757-5927-3
- H. L. Montgomery and R. C. Vaughan, Multiplicative Number Theory I: Classical Theory, Cambridge University Press, 2007. Ch. 11–12 (Theorems 11.3, 11.14, 11.16, 12.10; Corollaries 11.10, 11.12, 11.17, 11.19). doi:10.1017/CBO9780511618314
- R. C. Vaughan, The Hardy–Littlewood Method, 2nd ed., Cambridge University Press, 1997. Ch. 3. doi:10.1017/CBO9780511470929
- C. L. Siegel, Über die Classenzahl quadratischer Zahlkörper, Acta Arithmetica 1 (1935), 83–86. eudml:205054
- A. Walfisz, Zur additiven Zahlentheorie II, Mathematische Zeitschrift 40 (1936), 592–607. doi:10.1007/BF01218882
- I. M. Vinogradov, Representation of an odd number as a sum of three primes, Doklady Akad. Nauk SSSR 15 (1937), 291–294. Vinogradov's theorem
- H. A. Helfgott, The ternary Goldbach conjecture is true, 2013. arXiv:1312.7748
- Siegel–Walfisz theorem, Wikipedia. link
- Page theorem, Encyclopedia of Mathematics. link
- A. Kontorovich et al., PrimeNumberTheoremAnd (PNT+), Lean formalization project. github
- Mathlib,
Mathlib.NumberTheory.LSeries.DirichletContinuation. docs