Original-input logarithmic width and polynomial wider prefixes #
When the original modulus and weights are polynomially bounded in n+2, the concrete counter admits logarithmic physical width and every wider execution has polynomial words and memory support, independently of that chosen width. The modulus bound is explicit; these are not uniform bounds for arbitrarily large runtime p relative to n.
theorem Cslib.Algorithms.WordRAM.ExactTriangle.CountPrime.admissionWidth_le_log {n p A κ : ℕ} (hp : p ≤ (n + 2) ^ κ) (hA : A ≤ (n + 2) ^ κ) :
Polynomial original moduli and weights give a positive logarithmic physical threshold, including input fit and both signed-kernel extension bits. Empty matrices are included.
theorem Cslib.Algorithms.WordRAM.ExactTriangle.CountPrime.bounded_reachable_polynomial {W n p A κ : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hp0 : 0 < p) (hv : ∀ z ∈ values, z.natAbs ≤ A) (hp : p ≤ (n + 2) ^ κ) (hA : A ≤ (n + 2) ^ κ) (hW : (κ + 24) * Nat.clog 2 (n + 2) ≤ W) (s : WordRAM.State 128) (steps : ℕ) (hr : WordRAM.Runs W (entryProgram.program Reg.result) (WordRAM.State.init (inputWords n p values)) s steps) :
Every actual prefix at any sufficiently wide source-regime width has polynomial words and support, not merely a bound by that physical width's own word universe.