Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.CallableFixedPrime.SourceBounds

Initialized logarithmic admission and polynomial prefix support #

The explicit positive logarithmic constant depends only on the original weight exponent. Every wider native prefix has the same polynomial numerical/support envelope. These coarse bounds cover the real computed modulus; the program does not allocate by clearing this envelope.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.CallableFixedPrime.inputWidth_le_log {n d g p A κ : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hv : ∀ z ∈ values, z.natAbs ≤ A) (hd : d ≤ n) (hg : g ≤ n) (hp : p ≤ n) (hA : A ≤ (n + 2) ^ κ) :
inputWidth n d g p values ≤ (24664 * (κ + 9) + 19) * Nat.clog 2 (n + 2)

All physical widths beyond a positive constant times log(n+2) admit the actual initialized program. No weight exponent or width certificate is passed to the program.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.CallableFixedPrime.prefixBound_le_pow {n d g p A κ : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hv : ∀ z ∈ values, z.natAbs ≤ A) (hd : d ≤ n) (hg : g ≤ n) (hp : p ≤ n) (hA : A ≤ (n + 2) ^ κ) :
prefixBound n d g p values ≤ (n + 2) ^ (24664 * (κ + 9) + 20)

Polynomial bound on the width-independent envelope that controls every initialized prefix.