Compact box values and original-array magnitude bounds #
The stored value uses the existing finite boxValue recurrence. Its magnitude
bound covers every child partial sum as well as the final value, including cancellation.
The input arrays are arbitrary signed leaf functions, so encoded matrix arrays specialize
the same construction without changing its machine semantics.
def Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.slotValue {L : ℕ} (a b : MatrixMultiplication.Schonhage.Leaf L → ℤ) (s : ℕ) :
The existing finite value associated to one actual directory slot.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.natAbs_boxValue_le {L A B : ℕ} (a b : MatrixMultiplication.Schonhage.Leaf L → ℤ) (ha : ∀ (τ : MatrixMultiplication.Schonhage.Leaf L), (a τ).natAbs ≤ A) (hb : ∀ (τ : MatrixMultiplication.Schonhage.Leaf L), (b τ).natAbs ≤ B) (e : ℕ) (π : MatrixMultiplication.Schonhage.Cube L) :
Original-array bounds cover the complete finite recurrence at every cube.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.natAbs_slotValue_le {L H A B s : ℕ} (a b : MatrixMultiplication.Schonhage.Leaf L → ℤ) (ha : ∀ (τ : MatrixMultiplication.Schonhage.Leaf L), (a τ).natAbs ≤ A) (hb : ∀ (τ : MatrixMultiplication.Schonhage.Leaf L), (b τ).natAbs ≤ B) (hs : Eligible L H s) :
Every eligible slot's value fits the original full-depth magnitude envelope.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.slotValue_encoding {L m t s : ℕ} (a : MatrixMultiplication.Schonhage.LeftStr L → ℤ) (b : MatrixMultiplication.Schonhage.RightStr L → ℤ) (hs : Eligible L (m - t) s) :
With the existing tensor encodings, the stored recurrence is the original signed cube sum.