Title:Fewest multiplications for 3×3 matrix multiplication (rank over )
Statement:Find a bilinear algorithm that multiplies two 3×3 matrices over with as few scalar multiplications as possible — equivalently, a rank decomposition of the matrix multiplication tensor over . The best known uses 23 products (Laderman (1976)); lower bound 19 (Bläser 2003). Coefficients must be rational; schemes over or do not count. The challenge's tests prove the equivalence with the coefficient (Brent) equations, the naive and Strassen schemes, and Laderman.
| Subjects: | Algebraic Geometry (math.AG); cs.CC (cs.CC) |
| Tags: | challenge, matrix multiplication, tensor rank |
| Cite as: | NS.09246 [math.AG] · NS.09246v1 for this version |
| Declaration: | MatMulRank3.correct |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100; accepted critique: up to 100 |
| Statement hash: | efb4288f24b48f0dad9f85ab510bfaf015e2cbd7be8b3971caa5b873a75b5fc7 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · nosorry record challenges (formalized with AI agents, refereed) |
Formal statement
theorem correct : IsMatMulDecomp answer.U answer.V answer.WShow the full Challenge.lean (78 lines) — definitions included
import Mathlib
/-!
# Rank of the 3 × 3 matrix multiplication tensor over ℚ (record challenge)
A *bilinear algorithm* with `r` products for `3 × 3` matrix multiplication over `ℚ` consists of
`3r` coefficient matrices `U t, V t, W t` (`t < r`): it computes the `r` products
`m t = (∑ i j, U t i j * A i j) * (∑ k l, V t k l * B k l)` of a linear form in the entries of
`A` by a linear form in the entries of `B`, and returns `A * B = ∑ t, m t • W t`. The least such `r`
is the bilinear complexity of `3 × 3` matrix multiplication over `ℚ`, which equals the tensor rank
`R(⟨3,3,3⟩)` of the matrix multiplication tensor over `ℚ` ([BCS97, Ch. 14], [Bre70]: the
identity above holds for all `A, B` iff the coefficients satisfy the Brent equations
`∑ t, U t i j * V t k l * W t p q = δ_jk δ_pi δ_ql`).
**Challenge.** Give such an algorithm (`answer`), prove it correct (`correct`) and prove its number
of products (`metric_bound`, the score: lower is better). Coefficients are arbitrary rationals;
scalar multiplications and additions are free, only the `r` products count. Practical hint: the
identity can be reduced to the Brent equations (finitely many rational identities), which
`decide +kernel` checks for a concrete scheme (see the tests published with this challenge).
* Best known: 23, Laderman [Lad76] (integer coefficients).
* Lower bound: 19 over every field [Blä03].
*References.*
* [Str69] V. Strassen, *Gaussian elimination is not optimal*, Numer. Math. 13 (1969), 354–356,
https://doi.org/10.1007/BF02165411.
* [Lad76] J. D. Laderman, *A noncommutative algorithm for multiplying 3 × 3 matrices using 23
multiplications*, Bull. Amer. Math. Soc. 82 (1976), 126–128,
https://doi.org/10.1090/S0002-9904-1976-13988-2.
* [Bre70] R. P. Brent, *Algorithms for matrix multiplication*, Tech. Report STAN-CS-70-157,
Stanford University (1970) (the "Brent equations").
* [BCS97] P. Bürgisser, M. Clausen, M. A. Shokrollahi, *Algebraic Complexity Theory*, Grundlehren
315, Springer (1997), Chapter 14 (bilinear complexity and tensor rank).
* [Blä03] M. Bläser, *On the complexity of the multiplication of matrices of small formats*,
J. Complexity 19(1) (2003), 43–60.
-/
namespace MatMulRank3
/-- The linear form on `n × n` rational matrices with coefficient matrix `X`:
`linForm X A = ∑ i, ∑ j, X i j * A i j`. -/
def linForm {n : ℕ} (X A : Matrix (Fin n) (Fin n) ℚ) : ℚ :=
∑ i, ∑ j, X i j * A i j
/-- `IsMatMulDecomp U V W` : the `r` triples `(U t, V t, W t)` form a bilinear algorithm for
`n × n` matrix multiplication over `ℚ`, i.e. for all rational matrices `A, B`,
`A * B = ∑ t, (linForm (U t) A * linForm (V t) B) • W t`.
Equivalently (Brent equations, [Bre70]), `∑ t, U t ⊗ V t ⊗ W t` is the matrix multiplication
tensor, so the least `r` is the tensor rank of `⟨n,n,n⟩` over `ℚ` [BCS97, Ch. 14]. -/
def IsMatMulDecomp {n r : ℕ} (U V W : Fin r → Matrix (Fin n) (Fin n) ℚ) : Prop :=
∀ A B : Matrix (Fin n) (Fin n) ℚ,
A * B = ∑ t, (linForm (U t) A * linForm (V t) B) • W t
/-- A candidate bilinear algorithm for `n × n` matrices over `ℚ`: a number `r` of products and,
for each product `t : Fin r`, the coefficient matrices of its left factor (`U t`, a linear form in
the entries of `A`), of its right factor (`V t`, in the entries of `B`) and of its contribution to
the result (`W t`). -/
structure BilinearScheme (n : ℕ) where
/-- the number of products (the metric) -/
r : ℕ
/-- coefficients of the left factor of product `t` in the entries of `A` -/
U : Fin r → Matrix (Fin n) (Fin n) ℚ
/-- coefficients of the right factor of product `t` in the entries of `B` -/
V : Fin r → Matrix (Fin n) (Fin n) ℚ
/-- product `t` is added, with coefficient `W t p q`, to entry `(p, q)` of `A * B` -/
W : Fin r → Matrix (Fin n) (Fin n) ℚ
/-- Your algorithm for `3 × 3` matrices (the only definition you fill). -/
def answer : BilinearScheme 3 := sorry
/-- The main target: `answer` is a bilinear algorithm for `3 × 3` matrix multiplication over `ℚ`. -/
theorem correct : IsMatMulDecomp answer.U answer.V answer.W := sorry
/-- The score: replace the hole by a number (the number of products of `answer`). Lower is better. -/
theorem metric_bound : answer.r ≤ sorry := sorry
end MatMulRank3
To prove it: keep every definition of Challenge.lean unchanged and prove MatMulRank3.correct with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_correct : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk matmul-rank-3 # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch matmul-rank-3 nosorry submit matmul-rank-3 nosorry/matmul-rank-3/Solution.lean --wait
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.