Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.Admission

Original-input admission for the assembled solver #

One numerical envelope covers original pointer arithmetic, actual parameter preparation, all candidate counter calls, selector control, the computed callable window and exhaustive small-input arithmetic. Its inputs are only original scalar/pointer data and original matrix values. It does not assume an intermediate execution, layout, selection or time certificate.

Execution admission is separate from whole-data word bounds: the general host callee may have arbitrary unused old words. Numerical prefix bounds additionally require the original raw-word bound, before any actual dirty-memory remainder is executed.

Common original-input numerical envelope for both actual execution branches.

Positive original-input execution threshold, independent of old unused words.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.executionWidth_pos (n F b ap bp cp : ℕ) (values : List ℤ) :
0 < executionWidth n F b ap bp cp values

The composed execution threshold is positive even for empty original matrices.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.envelope_fits {W n F b ap bp cp : ℕ} (values : List ℤ) (hW : executionWidth n F b ap bp cp values ≤ W) :
WordRAM.Fits W (envelope n F b ap bp cp values)

Every larger physical width contains the entire original-input numerical envelope.

Existing signed counter arithmetic fits from the original-input envelope alone.

Actual counter addresses fit at the two-bit extension used by native signed kernels.

Every native parameter logarithm, power, counter and fixed constant fits.

Selector square tests fit without a supplied prime or intermediate counter bound.

The maximum candidate window admits the real fixed-prime adaptation and computed modulus.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.slow_fits {W n F b ap bp cp : ℕ} (values : List ℤ) (hW : executionWidth n F b ap bp cp values ≤ W) :
WordRAM.Fits W (b + n * (n * n) + 6 * F + 10)

The real exhaustive branch is admitted from original dimension, magnitude and source end.