Uniform native counter budgets over modulus intervals #
The public scalar, address, workspace and native instruction budgets are monotone in the runtime modulus. Prime selection can therefore call the actual counter for different primes using one numerical admission, frame envelope and instruction budget.
theorem Cslib.Algorithms.WordRAM.ExactTriangle.CountPrime.magnitudeBudget_monotone_modulus (k A : ℕ) :
Increasing the modulus increases the signed magnitude budget.
theorem Cslib.Algorithms.WordRAM.ExactTriangle.CountPrime.addressBudget_monotone_modulus (n k scratch a b c : ℕ) :
One address envelope suffices for every modulus below its supplied maximum.
The complete native pre-halt counter cost is monotone in its runtime modulus.