Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.PrimeSelection.TimeBound

Complete charged prime-selection bound #

The original matrix dimension has exponent 2.81, with an explicit cubic factor in sqrt(D)+1. This includes every candidate's actual trial division, argument delivery, counter execution and minimum comparison, plus the original header and halt. No source instruction constant or counting-call time hypothesis is used.

Separate the real counter calls from the charged enumeration, original header and halt.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.PrimeSelection.timeBound_le_subcubic (n D : ℕ) :
↑(timeBound n D + 16) ≤ 3704 * (↑D.sqrt + 1) ^ 3 * (↑n + 1) ^ (281 / 100) + 42 * (↑D + 1)

Full initialized instruction charge, including halt. The dependence on the actual window parameter remains explicit; the n exponent alone is strictly subcubic.