Documentation

CslibFrontier.Algorithms.MatrixMultiplication.Schonhage.BoxTradeoffParameters

Explicit natural thresholds and a rational finite saving #

The source's switch ceil(m/9) is computed by the natural expression (m+8)/9. At the block parameters m=9k, L=189k, it is exactly k. Both the retained boxes and all query occurrences then have a common rational decay factor (9/20)^k. The query estimate needs the occurrence sparsity bound Q*2^m ≤ N², so duplicates remain charged. The table estimate needs one band to fit the original dimension.

These are finite specializations of the estimates in BoxTradeoff, at the parameters used by [AlmanWilliams2026, Corollary 26]. Restricting to multiples of nine makes this finite saving algebraic; it is an original specialization of the primary proof rather than its full analytic corollary. No total encoding/preprocessing bound or final algorithmic exponent is asserted here.

An executable natural expression for the source's switching order ceil(m/9).

The executable threshold is within the valid original order range, including m=0.

Nine times the rounded-up threshold covers the original inner depth.

The natural expression rounds up by fewer than nine units.

At block parameters, the per-query finite count has an explicit rational exponential base.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.BoxTradeoff.queries_ninth_blocks (k N Q : ℕ) (hQ : Q * 2 ^ (9 * k) ≤ N ^ 2) :
↑Q * ∑ d ∈ Finset.range (k + 1), ↑(alpha (9 * k) d) ≤ (9 / 20) ^ k * ↑N ^ 2

Under the original-occurrence sparsity bound, all sparse query terms share the same rational decay factor as the retained-box estimates. No query count is assumed free.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.BoxTradeoff.boxes_ninth_blocks (k N : ℕ) (hN : K0 (189 * k) (9 * k) * N0 (189 * k) (9 * k) ≤ N) :
↑(tiles (189 * k) (9 * k) N).card * ↑(boxes (189 * k) (9 * k) k).card ≤ 32 * (↑(9 * k) + 1) * (9 / 20) ^ k * ↑N ^ 2

The all-tile retained-value count has the same rational decay at the block parameters. Its explicit band-size premise is weaker than an assumed asymptotic execution bound.