Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.SourceBounds

Original-input logarithmic admission for the assembled program #

One common scalar base bounds the original dimension, weights and placement. The bounds include the actual maximum candidate counter padding, signed recursion magnitude, computed callable window, parameter preparation and small-input arithmetic. They concern numerical admission and prefix support, not a global running-time exponent.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.envelope_le_pow {n F b ap bp cp B κ β : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hv : ∀ z ∈ values, z.natAbs ≤ F) (hn : n + 2 ≤ B) (hF : F ≤ B ^ κ) (hb : b ≤ B ^ β) (ha : ap ≤ B ^ β) (hc : bp ≤ B ^ β) (hd : cp ≤ B ^ β) :
envelope n F b ap bp cp values ≤ B ^ (12332 * (κ + 9) + β + 33)

Polynomial original scalars and placement bound every intermediate numerical admission. The common base also permits direct use with a host's address-plus-magnitude logarithm.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.executionWidth_le_base_log {n F b ap bp cp B κ β : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hv : ∀ z ∈ values, z.natAbs ≤ F) (hn : n + 2 ≤ B) (hF : F ≤ B ^ κ) (hb : b ≤ B ^ β) (ha : ap ≤ B ^ β) (hc : bp ≤ B ^ β) (hd : cp ≤ B ^ β) :
executionWidth n F b ap bp cp values ≤ (12332 * (κ + 9) + β + 36) * Nat.clog 2 B

Logarithmic semantic admission from one common original scalar base.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.executionWidth_le_host_log {n F b ap bp cp : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hv : ∀ z ∈ values, z.natAbs ≤ F) (ha : ap ≤ b) (hc : bp ≤ b) (hd : cp ≤ b) :
executionWidth n F b ap bp cp values ≤ 123357 * Nat.clog 2 (b + F + n + 2)

A fixed coefficient suffices for the host's original address/magnitude logarithm; no old unused register or memory bound is required for this execution admission.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.admissionWidth_le_log {n F b ap bp cp P κ β : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hv : ∀ z ∈ values, z.natAbs ≤ F) (hF : F ≤ (n + 2) ^ κ) (hb : b ≤ (n + 2) ^ β) (ha : ap ≤ (n + 2) ^ β) (hc : bp ≤ (n + 2) ^ β) (hd : cp ≤ (n + 2) ^ β) (hP : P ≤ (n + 2) ^ β) :
admissionWidth n F b ap bp cp P values ≤ (12332 * (κ + 9) + β + 38) * Nat.clog 2 (n + 2)

Positive logarithmic resource admission from polynomial original weights, placement and raw old words. The old-word exponent is an explicit numerical resource hypothesis.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.wordBound_le_pow {n F b ap bp cp P κ β : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hv : ∀ z ∈ values, z.natAbs ≤ F) (hF : F ≤ (n + 2) ^ κ) (hb : b ≤ (n + 2) ^ β) (ha : ap ≤ (n + 2) ^ β) (hc : bp ≤ (n + 2) ^ β) (hd : cp ≤ (n + 2) ^ β) (hP : P ≤ (n + 2) ^ β) :
wordBound n F b ap bp cp P values ≤ (n + 2) ^ (12332 * (κ + 9) + β + 39)

Original polynomial hypotheses give a polynomial word/support envelope, independent of W.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.inputWidth_le_log {n F κ : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hv : ∀ z ∈ values, z.natAbs ≤ F) (hF : F ≤ (n + 2) ^ κ) :
inputWidth n F values ≤ (12332 * (κ + 9) + 40) * Nat.clog 2 (n + 2)

Complete initialized execution admits a positive logarithmic original-input threshold.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.bounded_reachable_polynomial {W n F κ k : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hv : ∀ z ∈ values, z.natAbs ≤ F) (hF : F ≤ (n + 2) ^ κ) (hW : (12332 * (κ + 9) + 40) * Nat.clog 2 (n + 2) ≤ W) {s : WordRAM.State 640} (hr : WordRAM.Runs W (entryProgram.program Reg.result) (WordRAM.State.init (CountPrime.inputWords n F values)) s k) :
(∀ (i : Fin 640), s.data.regs i < (n + 2) ^ (12332 * (κ + 9) + 41)) ∧ (∀ (q : ℕ), s.data.mem q < (n + 2) ^ (12332 * (κ + 9) + 41)) ∧ ∀ (q : ℕ), (n + 2) ^ (12332 * (κ + 9) + 41) ≤ q → s.data.mem q = 0

Every admitted initialized prefix uses polynomial words and address support, with no dependence on the physical word width. Empty matrices and the whole small branch are included.