Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxProduct.Resources

Complete finite work bound for the actual routed box-product ledger #

The actual charge is polynomial in depth times original matrix/input work, shared encodings, all retained boxes and every sparse query occurrence. At block parameters L=189k, m=9k, t=k, finite estimates give the improved geometric saving. The bound includes the final halt; conversion to an end-to-end 3SUM exponent remains separate.

Original finite work of input/routing, shared encodings, all retained tiles and queries.

theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxProduct.timeBound_le {L m N : ℕ} (hm : m ≤ L) (t : ℕ) (qs : List (Fin N × Fin N)) :
timeBound L m t qs + 1 ≤ 32768 * (L + 1) ^ 2 * workShape L m t N qs.length

The complete native ledger, including halt, has one shared preparation term and occurrence-sensitive sparse work. No source running-time law is assumed.

theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxProduct.thin_timeBound (k N : ℕ) (qs : List (Fin N × Fin N)) (hN : MatrixMultiplication.Schonhage.D (9 * k) ^ 18 ≤ N) (hQ : qs.length * 2 ^ (9 * k) ≤ N ^ 2) :
↑(timeBound (189 * k) (9 * k) k qs + 1) ≤ 2621440 * ↑(189 * k + 1) ^ 2 * ↑(9 * k + 1) * (9 / 20) ^ k * ↑N ^ 2

Complete native work, including halt, at the algebraic block parameters. The saving charges every original occurrence and includes all routing, encodings and shared preparation.

theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxProduct.thin_timeBound_rpow (k N : ℕ) (qs : List (Fin N × Fin N)) (hN : MatrixMultiplication.Schonhage.D (9 * k) ^ 18 ≤ N) (hQ : qs.length * 2 ^ (9 * k) ≤ N ^ 2) :
↑(timeBound (189 * k) (9 * k) k qs + 1) ≤ 2621440 * ↑(189 * k + 1) ^ 2 * ↑(9 * k + 1) * ↑(MatrixMultiplication.Schonhage.D (9 * k)) ^ (-(8 / 125)) * ↑N ^ 2

The same actual native ledger has finite thin-dimension exponent 8/125 = 0.064, with polynomial depth factors explicit. This is not an end-to-end 3SUM time bound.