Ordinary initialized input for a callable box product #
The first input word is a runtime base pointer. An arbitrary caller prefix follows, then a
local ordinary input-length word and the unchanged original box-product input
BoxProduct.input, whose last word is the threshold. No computed tables, grouping, encodings,
bounded scratch contents or execution certificates occur in this input.
def Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.CallableBoxProduct.input {m N : ℕ} (t : ℕ) (caller : List ℕ) (X : Matrix (Fin N) (Fin (MatrixMultiplication.Schonhage.D m)) ℤ) (Y : Matrix (Fin (MatrixMultiplication.Schonhage.D m)) (Fin N) ℤ) (qs : List (Fin N × Fin N)) :
Original scalar headers, raw matrices, request pairs and the final threshold word t, above
a protected caller prefix.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.CallableBoxProduct.input_word {m N : ℕ} (t : ℕ) (caller : List ℕ) (X : Matrix (Fin N) (Fin (MatrixMultiplication.Schonhage.D m)) ℤ) (Y : Matrix (Fin (MatrixMultiplication.Schonhage.D m)) (Fin N) ℤ) (qs : List (Fin N × Fin N)) (a : ℕ) :
(WordRAM.State.init (input t caller X Y qs)).data.mem (CallableProduct.inputBase caller + a) = (WordRAM.State.init (BoxProduct.input true (21 * m) t X Y qs)).data.mem a
Every local original input word has its actual initialized meaning at the runtime base.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.CallableBoxProduct.input_fits {W m N : ℕ} (t : ℕ) (caller : List ℕ) (X : Matrix (Fin N) (Fin (MatrixMultiplication.Schonhage.D m)) ℤ) (Y : Matrix (Fin (MatrixMultiplication.Schonhage.D m)) (Fin N) ℤ) (qs : List (Fin N × Fin N)) (ht : t ≤ m) (hN : MatrixMultiplication.Schonhage.D m ^ 18 ≤ N) (hX : ∀ (i : Fin N) (k : Fin (MatrixMultiplication.Schonhage.D m)), 0 ≤ X i k ∧ X i k ≤ 1) (hY : ∀ (k : Fin (MatrixMultiplication.Schonhage.D m)) (j : Fin N), 0 ≤ Y k j ∧ Y k j ≤ 1) (hcaller : ∀ v ∈ caller, WordRAM.Fits W v) (hfit : WordRAM.Fits W (CallableProduct.inputBase caller + 4 * CallableProduct.windowSize N qs.length + 1024)) :
WordRAM.InputFits W (input t caller X Y qs)
Original caller words and admitted original product words suffice for the global input fit.