Collisions in closed prime windows #
This is a quantified interpretation of [Gol07d], Exercise 9.7
(r5.pdf, PDF64/printed446). The source says only L = poly(log M);
it specifies neither an error parameter nor a polynomial degree.
For every positive error tolerance, one constant works for all input bounds,
window sizes and fixed distinct pairs. This is a pairwise statement, not a
simultaneous guarantee for every pair. Uniform sampling is among the primes;
no efficient prime sampler or runtime bound is asserted.
Main results #
Nat.exists_closedPrimes_collision_bound: nonempty windows and pairwise error bounds.Nat.exists_ceil_closedPrimes_collision_bound: natural sizes at the quadratic threshold.
Quantified interpretation of Exercise 9.7 for both closed prime windows.
The same C works for every M, L and fixed pair a ≠ b.
Choosing the ceiling of the quadratic threshold gives natural window sizes.