Documentation

CslibFrontier.Algorithms.MatrixMultiplication.Schonhage.BoxTradeoffEncoding

Rational saving for the actual shared encoding count #

At m=9k, L=189k, the size premise D^18 ≤ N makes a band fit the original outer dimension and bounds the shared encoding count numBands * 10^L, one encoding per band for one of the row-band and column-band families, by 4*N²*(9/20)^k. Geometry construction happens once and can use this same bound.

This is an original algebraic specialization of the encoding calculation in [AlmanWilliams2026, proof of Corollary 26]. It replaces the source's entropy-style binomial lower bound and analytic estimates by 21^m ≤ binom(21m,m) ≤ 64^m and one integer base comparison. It proves finite counts, with no source machine, execution or assumed running time, and does not assert the final 3SUM exponent.

Main results #

A band at the improved depth L=21m fits under the source's original size condition. The proof uses only integer binomial and power bounds.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.BoxTradeoff.boxes_ninth_blocks_of_size (k N : ℕ) (hN : D (9 * k) ^ 18 ≤ 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 source size premise automatically discharges the finite retained-box band's admission hypothesis for the block parameters.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.BoxTradeoff.encodings_ninth_blocks (k N : ℕ) (hN : D (9 * k) ^ 18 ≤ N) :
↑(numBands (189 * k) (9 * k) N) * 10 ^ (189 * k) ≤ 4 * ↑N ^ 2 * (9 / 20) ^ k

One encoding of 10 ^ (189 * k) entries for each of the numBands (189 * k) (9 * k) N bands retains the same finite saving as the boxes and queries. This counts one of the two band families; row bands and column bands together have twice this count. The size premise is on the original dimensions; no encoding-cost law is supplied.

The common finite decay is stronger than a sixteenth-root saving in the original inner dimension. This integer-power inequality needs no logarithm approximation.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.BoxTradeoff.nativeShape_ninth_blocks (k N Q : ℕ) (hN : D (9 * k) ^ 18 ≤ N) (hQ : Q * 2 ^ (9 * k) ≤ N ^ 2) :
↑(1 + N * D (9 * k) + Q + 2 ^ (189 * k) + (numBands (189 * k) (9 * k) N + 1) * 10 ^ (189 * k) + numBands (189 * k) (9 * k) N ^ 2 * ((boxes (189 * k) (9 * k) k).card + 1) + Q * ∑ d ∈ Finset.range (k + 1), alpha (9 * k) d) ≤ 80 * (↑(9 * k) + 1) * (9 / 20) ^ k * ↑N ^ 2

Every finite term in the native routed-product ledger has a common rational saving. The natural expression counts original matrix words, routing occurrences, one shared geometry span, all retained tables and every query term. Coefficients of an actual instruction ledger can multiply this estimate; no running-time premise is assumed.