Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.RecordProduct.Flat

Initialized flat native producer and product runs #

The original four scalar headers and three signed weight arrays initialize one fixed native program. Prefix Runs, the charged final halt, exact answer words and the caller frame all refer to the same actual final data. The initialized client selects the first actual record; the caller interface exec_of_output supports every occupied ordinal.

@[reducible, inline]

Postcondition of flat initialized Runs and charged Executes for backend B.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.RecordProduct.RecordBackend.runs_input (B : RecordBackend) {W m n g p A : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hD : 16 ≤ MatrixMultiplication.Schonhage.D m) (hg : 1 ≤ g) (hp : 0 < p) (hN : MatrixMultiplication.Schonhage.D m ^ 18 ≤ n) (hv : ∀ z ∈ values, z.natAbs ≤ A) (hW : admissionWidth n (MatrixMultiplication.Schonhage.D m) g p A ≤ W) :
B.RunsPost hD hN values

Generic initialized flat runs and charged halt for B.entryProgram.

Generic width-independent word and support envelope on every prefix of B.entryProgram.

Fixed register count, instruction bound including halt, and physical-width independence.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.RecordProduct.runs_input {W m n g p A : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hD : 16 ≤ MatrixMultiplication.Schonhage.D m) (hg : 1 ≤ g) (hp : 0 < p) (hN : MatrixMultiplication.Schonhage.D m ^ 18 ≤ n) (hv : ∀ z ∈ values, z.natAbs ≤ A) (hW : admissionWidth n (MatrixMultiplication.Schonhage.D m) g p A ≤ W) :
backend.RunsPost hD hN values

Every sufficiently wide physical execution starts from the actual original input and returns the first prepared record's exact requested product values. There is no supplied layout, run, time, sparse-count or solver certificate. Source prime selection and the outer instance loop are separate; this theorem alone is not an aggregate ExactTriangle bound.

Every native prefix is physically word-bounded from the actual admitted original input. In particular this includes dirty loads before the callable compiler's remainder instruction.