Documentation

CslibFrontier.Computability.Circuit.Arithmetic.MatrixMultiplication.StrassenRank

Strassen bi-homogeneous rank extraction from matrix-multiplication circuits #

Converse to Strassen's block recursion (admissibleExponent_of_rank): over any commutative ring K, an arithmetic circuit C : Circuit (arithSignature K) (n * n + n * n) (n * n) computing n × n matrix multiplication yields a bilinear algorithm of rank at most 2 * C.program.cost ArithOp.mulCost — and hence at most 2 * C.size — for Tensor.mm n n n (rank_mm_two_mul_mulCost, rank_mm_two_mul_size, Strassen; Bürgisser, Clausen and Shokrollahi, Chapter 14). Here ArithOp.mulCost counts all .mul gates in division-free arithSignature K circuits (including multiplications by constants, which Strassen's nonscalar count omits).

Feeding (s • A, t • B) in the bivariate polynomial ring K[t][s] isolates the (1, 1) bi-homogeneous component of every wire, where each .mul gate contributes at most two rank-one bilinear products (L_A(x) · R_B(y)) + (L_A(y) · R_B(x)). Since the circuit computes the product formally (ComputesMatMul), its output on (s • A, t • B) is s t (A * B), whose (1, 1) component is A * B. Consequently (exists_rank_mm_le_rpow), over any commutative ring K and every τ > omega K, there exists c > 0 such that Tensor.mm D D D has rank at most c * D ^ τ for every D ≥ 1. Together with block recursion this identifies omega K with the rank exponent rankExponent K over every nontrivial commutative ring (omega_eq_rankExponent).

Main results #

References #

Over any nontrivial commutative semiring K, the matrix-multiplication exponent is at least 2.

Strassen (1, 1) bi-homogeneous rank extraction #

Strassen (1, 1) bi-homogeneous rank extraction (multiplication count). Over any commutative ring K, an arithmetic circuit computing n × n matrix multiplication with m = C.program.cost ArithOp.mulCost multiplication gates yields a bilinear algorithm of rank at most 2 * m for Tensor.mm n n n. Here ArithOp.mulCost counts all .mul gates in division-free arithSignature K circuits.

Strassen (1, 1) bi-homogeneous rank extraction (circuit size). Over any commutative ring K, an arithmetic circuit of size s computing n × n matrix multiplication yields a bilinear algorithm of rank at most 2 * s for Tensor.mm n n n.

theorem Cslib.Circuits.Arithmetic.MatrixMultiplication.exists_rank_mm_le_rpow (K : Type u_1) [CommRing K] {τ : ℝ} (hτ : omega K < τ) :
∃ (c : ℝ), 0 < c ∧ ∀ (D : ℕ), 1 ≤ D → ∃ (r : ℕ), ↑r ≤ c * ↑D ^ τ ∧ Tensor.Rank r (Tensor.mm D D D)

From omega K to bilinear rank of square matrix multiplication. Over a commutative ring K, for every τ > omega K there exists c > 0 such that for all D ≥ 1, Tensor.mm D D D has rank r ≤ c * D ^ τ.

The exponent is the rank exponent #

The rank exponent of matrix multiplication over K: sInf of the set of τ such that, for some v ≥ 2, the tensor ⟨v, v, v⟩ has a rank decomposition with at most v ^ τ terms.

It is meant for a nontrivial K. Then the set is nonempty and bounded below by 2 (the flattening bound), so rankExponent K is its infimum (omega_eq_rankExponent). Over the zero ring, Rank 0 (mm v v v) holds, every real τ is in the set, and sInf returns Lean's junk value 0 for a set that is not bounded below.

Strassen's characterization of the exponent (Bürgisser, Clausen and Shokrollahi, §15.1, Proposition (15.1), p. 376): over every nontrivial commutative ring, the exponent of matrix multiplication by circuits is the rank exponent. Block recursion (admissibleExponent_of_rank) gives omega K ≤ rankExponent K, and the rank extraction (exists_rank_mm_le_rpow) gives the converse.

Source and model. The source states the equality over a field. There, ω is defined by the number of arithmetic operations of division-free formal computations, and the rank side by the asymptotic bound R(⟨h, h, h⟩) = O(h ^ τ). Here:

  • omega K counts all gates of division-free formal circuits (ComputesMatMul): additions, multiplications and constants, each of cost one;
  • rankExponent K takes the infimum over the τ for which a single format v ≥ 2 has R(⟨v, v, v⟩) ≤ v ^ τ. This single-format infimum equals the source's asymptotic one (tensor powers give one direction, a large h the other), but this file proves the equality with omega K for the single-format version directly;
  • the ring is any nontrivial commutative ring. The rank extraction evaluates the formal identity in K[t][s] (rank_mm_two_mul_size), and the bound 2 ≤ τ comes from the flattening bound (Tensor.mul_self_le_of_rank_mm).

If every rank decomposition of ⟨v, v, v⟩ over L gives one with as many terms over K, then the rank exponent of K is at most that of L.