Documentation

LeanPool.KloostermanWeil.Weil.Contracts

Adapted from Charlie Dorsey’s Apache-2.0 Weil Bounds Toolkit for Lean Pool’s module system, Mathlib version, quality requirements and compilation performance.

Unconditional bounds derived from the prime theorem #

The general lemmas in LeanPool.KloostermanWeil.Weil.ChineseRemainderAndCompletion accept a PrimeNondegenerateWeil proof explicitly. Here they are instantiated with prime_bound; callers do not need to supply that argument.

Squarefree-modulus estimate for a unit numerator.

Bound on the sum at the reduced modulus, with no lifting assertion.

Centered completion on the reduced squarefree modulus.

Weighted centered completion with positive initial weight Y.