Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxBatch.Bilinear

Native query batches compute the original bilinear product #

Canonical left and right leaf encodings identify every stored query answer with the existing bilinear product. The same initialized execution and charged halt compute all wanted coordinates, preserving order and repetitions. This is a one-tile result; the wanted coordinates and encoded arrays are original inputs to this component.

theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxBatch.runs_bilinear {W L m t A B : ℕ} (hmL : m ≤ L) (ht : t ≤ m) (qs : List (MatrixMultiplication.Schonhage.OutStr L)) (hη : ∀ η ∈ qs, (MatrixMultiplication.Schonhage.innerSetO η).card = m) (a : MatrixMultiplication.Schonhage.LeftStr L → ℤ) (b : MatrixMultiplication.Schonhage.RightStr L → ℤ) (left right : Fin (10 ^ L) → ℤ) (hleft : ∀ (τ : MatrixMultiplication.Schonhage.Leaf L), left (Encoding.leafIndex τ) = MatrixMultiplication.Schonhage.encodingL a τ) (hright : ∀ (τ : MatrixMultiplication.Schonhage.Leaf L), right (Encoding.leafIndex τ) = MatrixMultiplication.Schonhage.encodingR b τ) (ha : ∀ (i : Fin (10 ^ L)), (left i).natAbs ≤ A) (hb : ∀ (i : Fin (10 ^ L)), (right i).natAbs ≤ B) (hW : admissionWidth L m t qs.length A B ≤ W) :
WordRAM.InputFits W (input m t qs left right) ∧ ∃ (y : WordRAM.Data registers) (n : ℕ), n + 1 ≤ timeBound m t qs ∧ WordRAM.Runs W (program.program Reg.output) (WordRAM.State.init (input m t qs left right)) { pc := program.size, data := y } n ∧ WordRAM.Executes W (program.program Reg.output) (WordRAM.State.init (input m t qs left right)) (memoryEnd L m t qs.length) (n + 1) ∧ WordRAM.Data.Bounded W y ∧ (∀ (i : Fin qs.length), y.mem (outputBase L m t qs.length + ↑i) = WordRAM.Signed.encode (MatrixMultiplication.Schonhage.bilinearProduct a b (qs.get i))) ∧ ∀ (p : ℕ), ¬(directoryBase L qs.length ≤ p ∧ p < memoryEnd L m t qs.length) → y.mem p = (WordRAM.State.init (input m t qs left right)).data.mem p

One actual initialized batch computes all original bilinear-product coordinates, with no repeated table preparation. Canonical encoding and threshold hypotheses are explicit.