First-flag sign correctness at the manuscript's prime cutoff #
For magnitude bound m and excluded prime bound L, put Z = max 16 (max m L) and
Y = 2 * Z ^ 4. The indices are exactly the primes L < p ≤ Y, with integer moduli p.
Their positivity, pairwise coprimality, product bounds and the dyadic precision estimate
discharge the numerical hypotheses of Cslib.crt_firstCircleFlag_sign at threshold 1/6,
error 1/1024, flag margin 1/8, precision Y.size + 10 and cutoff Y * Y.size + 1.
This is a mathematical step of [OAI26f], Section 2, Proposition 2.6 (Sign from residues). The theorems assume local weighted-coefficient congruences. They do not compute the coefficients or prove the proposition's complexity-class bound. The represented integer and the full prime product are used only in correctness statements and proofs.
Main definitions #
Cslib.PrimeWindowSign.cutoff: the prime cutoff2 * (max 16 (max m L)) ^ 4.Cslib.PrimeWindowSign.primes: the primes aboveLand at most the cutoff.Cslib.PrimeWindowSign.modulus: the integer value of a prime index.
Main results #
Cslib.PrimeWindowSign.firstCircleFlag_sign_of_coefficients: first-flag existence and sign correctness from weighted coefficients, with every numerical hypothesis discharged.Cslib.PrimeWindowSign.not_flag_zero_of_coefficients: zero has no flag.
References #
- [OAI26f], Section 2, proof of Sign from residues.
The prime cutoff for the magnitude bound m and excluded prime bound L.
The prime window excludes L and includes the upper cutoff.
A prime index, cast to the integer modulus required by the CRT API.
Every index of the sign-recovery window is a prime.
Mathematical first-flag correctness from supplied weighted coefficients. The local congruences are the sole component-specific premise: all prime-window, magnitude, precision and cutoff conditions are proved here. No computational bound is claimed.