Logarithmic source admission and polynomial selection prefixes #
In the source regime D ≤ n, polynomial original weights give logarithmic physical width
for the complete selector. Every successful wider prefix has a polynomial word and support
bound independent of its chosen physical width. The general execution theorem also supports
D > n; only this source-regime simplification uses D ≤ n.
theorem Cslib.Algorithms.WordRAM.ExactTriangle.PrimeSelection.admissionWidth_le_log {n D A κ : ℕ} (hDn : D ≤ n) (hκ : 1 ≤ κ) (hA : A ≤ (n + 2) ^ κ) :
Polynomial original weights and D ≤ n give a positive logarithmic threshold for the
actual prime scan and every concrete counter call. No candidate prime is an input.
theorem Cslib.Algorithms.WordRAM.ExactTriangle.PrimeSelection.bounded_reachable_polynomial {W n D A κ : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hD : 16 ≤ D) (hDn : D ≤ n) (hκ : 1 ≤ κ) (hv : ∀ z ∈ values, z.natAbs ≤ A) (hA : A ≤ (n + 2) ^ κ) (hW : (κ + 30) * Nat.clog 2 (n + 2) ≤ W) (s : WordRAM.State 160) (steps : ℕ) (hr : WordRAM.Runs W (entryProgram.program Reg.best) (WordRAM.State.init (CountPrime.inputWords n D values)) s steps) :
Every actual prefix at every admitted source-regime physical width has polynomial words and support independently of that physical width.