Weighted primitive-character Bombieri--Davenport inequality #
This module combines primitive Gauss inversion with the multiplicity-free
reduced Farey additive large sieve. The only loss relative to the classical
N + Q² constant is the explicit dyadic-shell logarithm already present in
largeSieveBound.
Character orthogonality for arbitrary coefficients on canonical reduced residues. This is the exact finite Bessel inequality needed after Gauss inversion.
Inversion by the primitive Gauss sum, with the inverse character chosen so
that the recovered interval coefficient is χ(n) rather than χ⁻¹(n).
Inversion is an involution on primitive characters.
Equations
- AnalyticNumberTheory.LargeSieve.primitiveCharacterInvEquiv q = { toFun := fun (χ : AnalyticNumberTheory.LargeSieve.PrimitiveCharacter q) => ⟨(↑χ)⁻¹, ⋯⟩, invFun := fun (χ : AnalyticNumberTheory.LargeSieve.PrimitiveCharacter q) => ⟨(↑χ)⁻¹, ⋯⟩, left_inv := ⋯, right_inv := ⋯ }
Instances For
The exact single-modulus weighted primitive-character inequality after Gauss inversion. Its right side contains only canonical reduced additive frequencies, with constant one.
Reindex canonical reduced residues for 1 ≤ q ≤ Q by reduced Farey
indices, preserving the modulus range and coprimality condition.
Concrete reindexing of the interval additive energy.
Weighted primitive-character Bombieri--Davenport inequality across all
1 ≤ q ≤ Q, with interval coefficients and the exact additive-stack constant.