Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxBatch.Width

Initialized batch execution at every admitted physical width #

The prefix and charged halt share one final state containing all wanted answers. The halt returns the exclusive end of the answer array, including for an empty batch. The program never reads width. The original-input admission run therefore controls every wider successful prefix, including its words and memory support.

One shared preparation, all sparse queries and one charged halt.

The complete fixed native code has at most this many slots, including its final halt.

theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxBatch.runs_wide {W L m t A B : ℕ} (hmL : m ≤ L) (qs : List (MatrixMultiplication.Schonhage.OutStr L)) (hη : ∀ η ∈ qs, (MatrixMultiplication.Schonhage.innerSetO η).card = m) (a b : Fin (10 ^ L) → ℤ) (ha : ∀ (i : Fin (10 ^ L)), (a i).natAbs ≤ A) (hb : ∀ (i : Fin (10 ^ L)), (b i).natAbs ≤ B) (hW : admissionWidth L m t qs.length A B ≤ W) :

Original-input execution, ordered answer memory and charged halt at every admitted width. The returned scalar is the exclusive answer-array end, while signed answers remain in memory.

theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxBatch.prefix_bounded {W L m t A B : ℕ} (hmL : m ≤ L) (qs : List (MatrixMultiplication.Schonhage.OutStr L)) (hη : ∀ η ∈ qs, (MatrixMultiplication.Schonhage.innerSetO η).card = m) (a b : Fin (10 ^ L) → ℤ) (ha : ∀ (i : Fin (10 ^ L)), (a i).natAbs ≤ A) (hb : ∀ (i : Fin (10 ^ L)), (b i).natAbs ≤ B) (hW : admissionWidth L m t qs.length A B ≤ W) (s : WordRAM.State registers) (steps : ℕ) (hr : WordRAM.Runs W (program.program Reg.output) (WordRAM.State.init (input m t qs a b)) s steps) :
(∀ (i : Fin registers), s.data.regs i < wordBound L m t qs.length A B) ∧ (∀ (p : ℕ), s.data.mem p < wordBound L m t qs.length A B) ∧ ∀ (p : ℕ), wordBound L m t qs.length A B ≤ p → s.data.mem p = 0

Every actual wider prefix has bounded original-input words and zero memory above the same support bound, independently of the larger physical width.