Documentation

Complexity.Algorithms.MatrixMultiplication.Schonhage.Parameters

Parameters of finite thin multiplication #

Main results #

References #

Adapted selectively from [AlmanWilliams2026, Section 2] and Anthropic's pinned formal source. Source pin: 16a5ce41304fcdaea4e0be7c132e1c361dc26da5. These are finite mathematical counts and identities; they give no native program or instruction-cost certificate.

The binomial count at L = 19 * m is at most (19 * Real.exp 1) ^ m. This uses Nat.choose_le_exp_mul_div_pow and includes m = 0, when both sides are one.

The real constant 19 * exp 1 * 3 ^ 18 is strictly less than 4 ^ 18.

At L = 19 * m, the product K L m * N0 L m is at most D m ^ 18.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.K_mul_N0_le (m N : ℕ) (hN : D m ^ 18 ≤ N) :
K (19 * m) m * N0 (19 * m) m ≤ N

The size condition D m ^ 18 ≤ N bounds K (19 * m) m * N0 (19 * m) m by N.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.K0_mul_N0_le (m N : ℕ) (hN : D m ^ 18 ≤ N) :
K0 (19 * m) m * N0 (19 * m) m ≤ N

The size condition D m ^ 18 ≤ N bounds the band dimension at L = 19 * m by N.

Under D m ^ 18 ≤ N, padding to complete bands at L = 19 * m gives a dimension at most 2 * N.

The real constant 10 ^ 19 * 2 ^ (1 / 9) / 3 ^ 18 is strictly less than 4 ^ 18.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.ten_pow_div_N0_le (m : ℕ) :
10 ^ (19 * m) * 2 ^ (↑m / 9) / ↑(N0 (19 * m) m) ≤ ↑(D m) ^ 18

At L = 19 * m, the real quotient 10 ^ L * 2 ^ (m / 9) / N0 L m is at most D m ^ 18.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.encoding_size_le (m N : ℕ) (hN : D m ^ 18 ≤ N) :
10 ^ (19 * m) ≤ 2 ^ (-↑m / 9) * ↑N * ↑(N0 (19 * m) m)

For L = 19 * m and D m ^ 18 ≤ N, the encoding index count 10 ^ L is at most 2 ^ (-m / 9) * N * N0 L m, as a real inequality (cf. [AlmanWilliams2026, equation (6)]).