betaFeedback

WorksComputer Science

Lower Bound of 22 for 3x3 Matrix Multiplication over the Integers

Abstract

Strassen showed that two 2x2 matrices can be multiplied with 7 multiplications instead of 8. Applied recursively, his algorithm multiplies two nxn matrices with O(n^2.807) multiplications, beating the naive O(n^3). The best known 3x3 recursive matrix multiplication algorithm uses 23 multiplications O(n^2.854). The best published lower bound of 21 (on algorithms with integer constants) leaves room for an algorithm with O(n^2.771) multiplications, and thus does not rule out the possibility of an algorithm that would beat Strassen's. We prove a lower bound of 22 multiplications for any 3x3 recursive algorithm with integer constants, proving that no such algorithm can do better than O(n^2.814) multiplications, and eliminating the possibility of a 3x3 algorithm that beats Strassen's 2x2 method. The proof builds on a recent decomposition method from Wang, who approached the problem by turning it into 496 subproblems. We provide exact solutions for 359 of them. The proof is in Lean; verification requires auditing only a few short files. The Lean formalization directly encodes statements about the limitations of recursive algorithms for matrix multiplication, as opposed to just a statement about the rank of the problem.

Introduction

Naively multiplying two n×nn \times n matrices performs n3n^3 multiplications of numbers. Strassen showed that two 2×22 \times2 matrices can be multiplied with 7 multiplications instead of 8 [46]. He also showed that his algorithm can be applied recursively: an n×nn \times n matrix can be split into four n2×n2\frac{n}{2} \times\frac{n}{2} blocks, with each block treated as a single entry of a 2×22 \times2 matrix. Strassen’s algorithm uses O(nlog⁡27)O(n^{\log_2 7}) (log⁡27≈2.807\log_2 7 \approx2.807) multiplications, and was proven optimal for 2×22 \times2 matrices in 1971 [25, 26, 54].

The same idea works for any fixed size: an algorithm that multiplies two 3×33 \times3 matrices with rr multiplications, and works on blocks, multiplies two n×nn \times n matrices with O(nlog⁡3r)O(n^{\log_3 r}) multiplications. Therefore a 3×33 \times3 algorithm improves on Strassen’s exponent exactly when r≤21r \le21 (log⁡321≈2.771\log_3 21 \approx2.771) and is worse for r≥22r \ge22 (log⁡322≈2.814\log_3 22 \approx2.814) [8]. Laderman gave an algorithm for 3×33 \times3 that uses 23 multiplications and works on blocks [30], but there have not been any improvements on this since 1976.

Most lower bounds on the number of multiplications required are proven for a restricted class of algorithms, called bilinear algorithms. Bilinear algorithms obtain a list of products by multiplying a linear combination of entries from the first matrix by a linear combination of entries from the second. Then they obtain each entry of the output matrix from a linear combination of those products. The fewest products required by a bilinear algorithm for a problem is the rank of the problem. Strassen’s and Laderman’s algorithms are both bilinear, so the rank of 3×33 \times3 matrix multiplication is at most 23. The rank can depend on which numbers are allowed to define the linear combinations. For example, the constants may be restricted to F2\mathbb{F}_2, the field whose only elements are 0 and 1, and in which 1+1=01+1=0.

In 2003, Bläser proved that the rank of 3×33 \times3 matrix multiplication is at least 19 [7, 8]. In March 2026, Wang built on the substitution method [39, 33, 25] and raised this to 20 over F2\mathbb{F}_2 with an automated proof that was independently verified [51, 4]. He sorted every way of imposing certain condition types on 3×33 \times3 matrix multiplication into 496 problem classes, a list we call Wang’s table, and bounded the rank of each. In September 2026, within ten days of each other, Wang [52] and Yang et al. [55] independently proved that the rank over F2\mathbb{F}_2 is at least 21, and Tahir obtained 21 as a conditional bound in a public review draft [47]. Yang et al. also formalized their proof in Lean, a program that automatically verifies mathematical proofs [38].

We call a class in Wang’s table exact when its rank is known, meaning we have a lower bound on its rank and an upper bound that matches. We achieved a proof that the rank of 3×33 \times3 matrix multiplication over F2\mathbb{F}_2 is at least 22, proving that matrix multiplication algorithms with integer constants that recurse are more efficient on 2×22 \times2 than 3×33 \times3. We did this by first finding strong upper bounds for the classes in Wang’s table by exploiting symmetry across table elements, and then using those upper bounds as a map for which lower bounds were worth pursuing. Our proof is in Lean and leverages the Mathlib library [48]. To the best of our knowledge, no lower bound above 21 had been published as of September 29, 2026.

By Hopcroft and Kerr, a lower bound over F2\mathbb{F}_2 also holds for algorithms with integer constants that work on blocks, since those cannot rely on commutativity [25, 24, 2]. Our Lean proof includes this reduction, so its final claim is about algorithms, not just rank.

Our contributions are as follows: (1) we prove a lower bound of 22 multiplications required for 3×33 \times3 matrix multiplication by any algorithm that works on blocks with integer constants; (2) we prove in Lean the exact value of 359 of the 496 classes of Wang’s table, and lower and upper bounds for the other 137; (3) we build an easy-to-audit approximately 1,000 line Lean library that defines algorithms for matrix multiplication, defines Wang’s table, and connects the table to statements about algorithms; it is possible to verify the entire 1,000,000-line proof without going beyond those 1,000 lines; and (4) we expand on an existing construction [8, 55] to glue algorithms from two different table classes into an algorithm for a third, which gave us 145 of our upper bounds. AI agents (Claude, by Anthropic) wrote the search code and the Lean proofs that do not require a human auditor, under our direction. The audit-surface was human designed.

Background

Decompositions

Number the entries of the 3×33 \times3 matrices AA, BB and C=ABC = AB from 1 to 9, row by row, and let TT be the 9×9×99 \times9 \times9 tensor with Tijk=1T_{ijk} = 1 when the product of entry ii of AA and entry jj of BB appears in entry kk of CC, and Tijk=0T_{ijk} = 0 otherwise. An algorithm with rr products is given by a decomposition of TT into three 9×r9 \times r matrices UU, VV and WW. Product ℓ\ell multiplies a combination of entries of AA, weighted by column ℓ\ell of UU, by a combination of entries of BB, weighted by column ℓ\ell of VV. Entry kk of CC is the sum of the products weighted by row kk of WW. The algorithm is correct for matrix multiplication exactly when

Tijk=∑ℓ=1rUiℓVjℓWkℓfor all i,j,k.T_{ijk} = \sum_{\ell=1}^{r} U_{i\ell}V_{j\ell}W_{k\ell}\quad\text{for all }i,j,k.

For an in-depth worked example, see Deza et al.’s Figure 1 [15].

A lower bound of rr over F2\mathbb{F}_2 means that no decomposition with fewer than rr columns and entries in F2\mathbb{F}_2 exists, which is a finite search problem. Our project began as an attempt to create an exact solver for this problem inspired by the work of Deza et al. who search for decompositions with constraint programming [15], and Heule et al. who search with a SAT solver [22]. Both find decompositions well, but proving that none exists is much harder.

Wang’s Table

Wang’s method bounds the hard problem of identifying exact rank by solving many easier ones [51]. A condition requires a set of entries of AA to add up to 0, and a set of conditions restricts the problem to the matrices AA that meet them. Its rank is the fewest products needed when AA meets the conditions and BB is arbitrary. Up to symmetry (multiplying AA by invertible matrices on either side, or transposing it), and counting two sets of conditions as one when each implies the other, there are 496 classes. We arrange them in rows by their number of independent conditions, from row 9 (A=0A = 0) to row 0 (matrix multiplication itself).

In linear-algebra terms, a condition is a nonzero vector x∈F29x \in\mathbb{F}_2^9, and AA meets it when ∑ixiAi=0\sum_i x_iA_i = 0. A set of dd independent conditions spans a dd-dimensional subspace SS of F29\mathbb{F}_2^9, and two sets that span the same SS allow the same matrices AA, so the problem depends only on SS, which Wang calls a constraint subspace [51]. We write R(S)R(S) for the rank of its problem. The row of a class is dim⁡S\dim S: row 9 is S=F29S = \mathbb{F}_2^9, which allows only A=0A = 0, and row 0 is S={0}S = \{0\}. If S⊆S′S \subseteq S' then R(S′)≤R(S)R(S') \leq R(S), because an algorithm that is correct for every AA allowed by SS is also correct for the AA allowed by S′S' [51].

What Is Claimed and How to Audit It

Lean is a programming language for writing mathematical proofs: a theorem compiles only if Lean’s kernel checks every step of its proof, and Lean can list the axioms each proof relies on [38]. So if an auditor is convinced that the theorems are stated correctly, and the code compiles using only Lean’s standard axioms, the proof is verified automatically. In the code below, def defines a function, a Prop is a proposition (a statement that is either true or false), and a theorem states a proposition whose proof must compile.

Any algorithm that multiplies two 3×33 \times3 matrices needs at least 22 multiplications, under the conditions that (1) its constants are integers, and (2) it can be applied recursively by dividing a larger matrix into a 3×33 \times3 grid of square blocks of any size. In our Lean formalization, an algorithm (program in the code) is represented by a list of simple steps. This is built on the definition DoesMatrixMultiplicationOnBlocks, which is a Prop that is true if and only if a program multiplies 3×33 \times3 grids of blocks correctly, for any size of blocks. That definition and the terms that define it are covered in § 4; here they show the idea we are working towards.

def RecursiveAlgorithmMultiplicationsAtLeast (n : ℕ) : Prop :=
  ∀ steps : List Step, DoesMatrixMultiplicationOnBlocks steps →
    n ≤ multiplication_count steps

This definition takes one input, nn, a natural number, and returns a Prop. The statement reads: for every program steps, if the program does matrix multiplication on blocks, then the number of multiplications of two values it performs is at least nn. So RecursiveAlgorithmMultiplicationsAtLeast n is true if and only if every program that does matrix multiplication on blocks uses at least nn multiplications.

theorem recursive_algorithm_multiplications_at_least_22 :RecursiveAlgorithmMultiplicationsAtLeast 22(1)\begin{aligned} &\texttt{theorem recursive\_algorithm\_multiplications\_at\_least\_22 :}\\ &\qquad\texttt{RecursiveAlgorithmMultiplicationsAtLeast 22} \tag*{(1)} \end{aligned}

A theorem has a name and a statement after the colon. Theorem 1 says that every program that does matrix multiplication on blocks uses at least 22 multiplications.

The Lean proof is split into layers. Layers 01 to 03 each have a Defs file, which defines every term the layer uses, and a Theorems file, which states the layer’s claims in those terms; layer 04 has only a Theorems file. Each proof in a Theorems file is a one-line pointer into the aux files, which hold the actual proofs and sit in a separate folder that an auditor never needs to open. Layer 01 defines programs and decompositions and connects them. Layer 02 defines Wang’s table and connects it to programs. Layer 03’s Defs file is just a one-line shortcut for table lookups. We designed all of the definitions, and the theorems of layers 01 and 02, before any of their proofs existed. Layer 03’s Theorems file states bounds for all 496 elements of the table, from row 9 to row 0, and layer 04 states only Theorem 1.

To check the proof, an auditor: (1) reads all the Defs files and the Theorems files of layers 01, 02 and 04; (2) builds the repository with Lean v4.30.0 and Mathlib v4.30.0 [38, 48], which checks every proof; (3) checks that the #print axioms line under every claim lists only Lean’s three standard axioms (propext, Classical.choice and Quot.sound), and (4) replays the build with an independent kernel checker, so that nothing in the aux files can change the result of step 3. The repository https://doi.org/10.5281/zenodo.23047901 accompanies the paper.

The proof reaches Theorem 1 in four steps. Layer 01 shows that a program that works on blocks yields a decomposition with integer entries and no more columns than the program has multiplications. Layer 02 shows that such a decomposition, read modulo 2, is a decomposition over F2\mathbb{F}_2, so a lower bound for matrix multiplication over F2\mathbb{F}_2 bounds every such program. Layer 03 bounds the classes of Wang’s table row by row, from row 9 down to row 0, where the bound of 22 comes from the rank-sum lemma of Yang et al. [55] applied to the two classes of row 1 that need 21 products. Layer 04 turns the bound for row 0 into Theorem 1 through layer 02’s reduction.

Programs and Decompositions

Programs

Layer 01 builds programs from the following steps.

inductive Step
    fromA (i j : Fin 3)      fromB (i j : Fin 3)
    add (x y : N)            sub (x y : N)
    scale (w : Z) (x : N)    mul (x y : N)
    toC (i j : Fin 3) (x : N)

A Step either reads entry (i,j)(i,j) of AA or BB and performs an operation, or stores the value of step xx in entry (i,j)(i,j) of the output. How each step behaves is fixed by step_value.

def step_value {R : Type} [Ring R] (s : Step) (A B : Matrix (Fin 3) (Fin 3) R)
    (value_at : List R) : R :=
  match s with
  | .fromA i j => A i j
  | .fromB i j => B i j
  | .add x y => value_at[x]?.getD 0 + value_at[y]?.getD 0
  | .sub x y => value_at[x]?.getD 0 - value_at[y]?.getD 0
  | .scale w x => (w : R) * value_at[x]?.getD 0
| .mul x y => value_at[x]?.getD 0 * value_at[y]?.getD 0
| .toC _ _ x => value_at[x]?.getD 0

The inputs of step_value are a step, the input matrices AA and BB, and the list of values of the steps already run (value_at). Each line of the match handles one kind of step, for example add adds the values of steps xx and yy. Earlier values are looked up with value_at[x]?.getD 0, which gives 0 if step xx has not run yet, so any list of steps is well defined. All values lie in a type RR, and [Ring R] requires that RR has addition, subtraction and multiplication, which is all step_value uses. Real numbers qualify, and so do m×mm \times m real matrices, so the same program can be run with blocks as its values. Whether a program returns the correct product when its values are blocks is what DoesMatrixMultiplicationOnBlocks asks. A program’s cost, multiplication_count, is its number of mul steps. Running a program on inputs AA and BB, program_output computes every step in order with step_value and returns the 3×33 \times3 matrix whose entry (i,j)(i,j) is the value of the last toC i j step, or 0 if there is none.

def DoesMatrixMultiplicationOnBlocks (steps : List Step) : Prop :=
  ∀ m : N, ∀ A B : BlockGrid m, program_output steps A B = A * B

This definition takes one input, steps, which is a program given as a list of steps, and returns a Prop, a statement that is either true or false. Here BlockGrid m is a 3×33 \times3 matrix whose entries are themselves m×mm \times m matrices of real numbers. The statement after := reads: for every natural number mm, and every AA and BB of type BlockGrid m, running the program on AA and BB returns the product A∗BA * B. So DoesMatrixMultiplicationOnBlocks steps is true if and only if the program multiplies 3×33 \times3 grids of blocks correctly, whatever the size of the blocks.

Important Detail: Because scale takes a value in Z\mathbb{Z}, algorithms can only scale the values in AA and BB by integers. This is what restricts statements about this program to statements about algorithms with integer constants.

Comparison with Hopcroft and Kerr’s Model Our programs are close to the straight-line programs of Hopcroft and Kerr [25], with these differences:

  • their instructions may also add fixed integers, while ours use a constant only through scale. Their added constants can be removed without increasing the number of multiplications [25], but we did not formalize that step.

  • we judge correctness on real blocks of every size rather than as an identity in noncommuting variables. The two approaches are equivalent by Amitsur and Levitzki [2].

Decompositions

In Lean, a decomposition is the object of § 2.1: a list of columns, each a triple of integer 3×33 \times3 matrices holding the matching columns of UU, VV and WW, with each column’s 9 entries laid out as a 3×33 \times3 matrix. It is valid when it computes ABAB for every pair of real matrices AA and BB (IsValidDecomposition). We define decomposition_to_program, which takes in a decomposition and turns it into a program. Layer 01 proves five facts about decompositions.

(1) We define DoesMatrixMultiplication as a sanity check that is true exactly when a program performs matrix multiplication correctly for all real matrices. Then we prove that a decomposition is valid if and only if the program returned by decomposition_to_program satisfies DoesMatrixMultiplication. This establishes that our definition of IsValidDecomposition is correct. (2) decomposition_to_program returns a program with a number of multiplications equal to the number of columns of the decomposition. (3) Given a valid decomposition with rr columns, there exists a valid decomposition for 3k×3k3^k \times3^k matrices with rkr^k columns [46, 40].

(4) A decomposition is valid if and only if the program returned by decomposition_to_program satisfies DoesMatrixMultiplicationOnBlocks. Together with (1), this means that for any decomposition, three statements are equivalent: the decomposition is valid, its program does matrix multiplication on real matrices, and its program does matrix multiplication on blocks. So our three definitions agree wherever they can be compared, which is what shows that each of them is well-stated. In particular, every valid decomposition yields a program that works on blocks, so the programs Theorem 1 is about include every such algorithm (RecursiveAlgorithmMultiplicationsAtLeast).

(5) For any program that works on blocks, there exists a decomposition that uses the same number of multiplications [25, 24, 2]. Without the block condition the fifth fact is false. Winograd’s inner-product algorithm [53] uses about half the multiplications of the naive method on large matrices, but each of its products mixes entries of AA and BB, so it is not a decomposition, and it does not work on blocks. For 3×33 \times3 matrices, Rosowski’s commutative algorithm uses 21 multiplications [42], fewer than any decomposition, but it cannot be applied recursively.

theorem recursion_costs_a_decomposition (steps : List Step) :
  DoesMatrixMultiplicationOnBlocks steps →
  ∃ L : Decomposition, IsValidDecomposition L ∧
    L.length ≤ multiplication_count steps
``` {#eq:2}

{xref}`Theorem 2` takes one input, `steps`, a program, and reads: if the program works on blocks, some valid decomposition $L$ has at most as many columns as the program has multiplications. With fact (3), a program with $r$ mul steps that works on blocks therefore yields a valid decomposition for $3^k \times 3^k$ matrices with at most $r^k$ columns, which is the recursion. {xref}`Theorem 1` builds directly on {xref}`Theorem 2`: a lower bound on the columns of every valid decomposition is a lower bound on the multiplications of every program that works on blocks.

Wang’s Table

Restricted Problems

Layer 02 runs the programs of layer 01 with values in F2\mathbb{F}_2. F2\mathbb{F}_2 is a ring, so step_value applies unchanged. A condition is a 3×33 \times3 matrix xx over F2\mathbb{F}_2 (a Bit3x3Matrix), and AA meets it (MeetsCondition) when the entries of AA at the cells where xx has a 1 add up to 0, as in § 2.2.

def IsValidTableDecomposition (conditions : List Bit3x3Matrix)
    (L : Decomposition) : Prop :=
  ∀ A B : Bit3x3Matrix, (∀ x ∈ conditions, MeetsCondition A x) →
    program_output (decomposition_to_program L) A B = A * B

This definition takes two inputs, a list of conditions and a decomposition, and returns a Prop. The statement reads: for all 3×33 \times3 matrices AA and BB over F2\mathbb{F}_2, if AA meets every condition, then the program of the decomposition, run on AA and BB, returns A∗BA * B. So IsValidTableDecomposition conditions L is true if and only if the decomposition multiplies correctly over F2\mathbb{F}_2 whenever AA meets the conditions. TableAtLeast conditions n says that every decomposition valid for the conditions has at least nn columns, TableAtMost conditions n says that one has at most nn, and TableExactly says that both hold.

Canonicalization of the Table

Layer 02 generates Wang’s table from its definition rather than copying it. A condition is stored as a 9-bit number, a mask (mask_matrix). Every list of conditions implies the same conditions as exactly one reduced basis, a sorted list of masks in reduced echelon form (IsReducedBasis). Two lists are equivalent (Equivalent) when one of the symmetries of § 2.2 maps the conditions implied by one exactly onto those implied by the other. The table’s element for each class is the reduced basis that comes first in dictionary order among those of the class (IsCanonical), and the table lists these with more conditions first, then in dictionary order (table). Layer 02 proves the following facts about it.

  1. The table has 496 elements, and rows 9 to 0 hold 1, 3, 14, 68, 162, 162, 68, 14, 3 and 1 of them, where an element’s row is the number of conditions in its basis; these match Wang’s counts. Element 0, in row 9, forces A=0A = 0, and element 495, in row 0, has no conditions, so its problem is matrix multiplication over F2\mathbb{F}_2.

  1. Every list of conditions is equivalent to exactly one table element, so the table covers every class once.

  1. The table equals, element for element and in the same order, the list transcribed from our re-derivation of Wang’s certificate, which keeps his classes and their order [51]. So the table’s contents rest only on the definitions, and the transcription fixes only the numbering, making it easy to match our results against Wang’s labeling.

  1. More conditions can only make the problem easier: lower bounds pass to fewer conditions, and upper bounds to more.

  1. Equivalent condition lists have the same bounds. Facts (4) and (5) are Wang’s Lemma 1 [51], for the symmetries of matrix multiplication [20, 12], and they let a proof bound one element by looking up another.

From the Table to Algorithms

Layer 02 then ties the table’s bounds to the algorithms of § 4.

(6) A lower bound on the columns of valid decompositions is exactly a lower bound on the multiplications of programs that work on blocks, and the same holds for upper bounds, so nothing is lost by working with decompositions. (7) A lower bound for element 495 is a lower bound for every program that works on blocks, because element 495 is the element with no conditions.

theorem element_495_lower_bound_bounds_every_program (n : N) :
    TableAtLeast ((table[495]!).map mask_matrix) n →
        RecursiveAlgorithmMultiplicationsAtLeast n

The theorem takes one input, nn, and reads: if every decomposition valid for element 495 has at least nn columns, then every program that works on blocks has at least nn multiplications. So a lower bound for matrix multiplication over F2\mathrm{F}_2 is a lower bound for every recursive algorithm with integer constants. It rests on the proof from Hopcroft and Kerr that an algorithm with integer constants, read modulo 2, is an algorithm over F2\mathrm{F}_2 with no more multiplications [25]. (8) A lower bound nn for element 495 and a valid decomposition with nn columns together make nn the fewest multiplications of any program that works on blocks (RecursiveAlgorithmMultiplicationsOptimalAt). Note that such a decomposition must be over the integers, because an algorithm for matrix multiplication over F2\mathrm{F}_2 does not necessarily imply an algorithm over the integers [25]. Lower bounds over F2\mathrm{F}_2 transfer to the integers, but upper bound over F2\mathrm{F}_2 do not.

Sources and Contributions

The Literature Used

Throughout the project, the AI agents working on each upper or lower bound searched the literature to see whether their ideas had already been published, and the references below include what they found, with the software we used. We have checked that each reference exists, but not that each contains exactly the idea we credit to it.

Wang’s table, techniques and code are our basis [51], and Beuchert verified his certificate [4]. They build on the substitution method [39, 33, 1, 8] and on Hopcroft and Kerr [25, 26], whose reduction to bilinear algorithms also appears in [24] and extends to blocks through [2]. Recursion [46, 40], Brent’s equations [9] and the symmetries of matrix multiplication [20, 10, 12, 37] are classical. The recent proofs giving a lower bound of 21 contain lemmas and certificates that we use or parallel [55, 52, 47], including the rank-sum lemma and a duality for slices of defect one, from the research notes accompanying Yang et al. [55]. D’Ambrosio’s work on a smaller format has related techniques [14]. We also use standard facts from linear algebra and linear programming [45, 56, 17, 11, 32].

The project began from [15, 22]. Our searches used flip graphs [28, 3], SAT solving [49, 43, 23, 44], branch and bound [31], symmetry breaking and orderly generation [13, 41, 16], tree-size estimates [29], screens [35, 19, 36, 6, 18], and Laderman’s algorithm gives the upper bound for matrix multiplication itself [30]. The software was HiGHS [27], JuMP [34], Julia [5], NumPy and SciPy [21, 50], and Lean with Mathlib [38, 48].

Our Human Contributions

We began by designing an exact search solver built on constraint propagation, and early on we pushed the AI agents to adapt its propagation techniques to individual elements of the table. These exact searches told us each element’s true value before we set out to prove it, so we were able to map the most promising routes to the lower bounds we needed for Theorem 1, and have the agents prove in Lean what we knew from the computation.

Additionally, the following glue theorem is ours.

theorem decompositions_glue (C Ca Cb : List Bit3x3Matrix) (ma mb : N)
    (h_meet : ∀ X, InSpan Ca X ∧ InSpan Cb X → InSpan C X)
    (ha : TableAtMost Ca ma) (hb : TableAtMost Cb mb) :
    TableAtMost C (ma + mb)

The theorem takes as inputs three lists of conditions, C, Ca and Cb, and two numbers, ma and mb. Its hypothesis h_meet says that any condition implied by both Ca and Cb is also implied by C. Under h_meet, and if Ca has a decomposition with at most ma columns and Cb has a decomposition with at most mb, then C has one with at most ma + mb. In other words, when the inputs allowed by C can be split between two easier problems, algorithms for those two problems add up to an algorithm for C. This theorem builds on ideas from Bläser [8] and Yang et al. [55]. Applied across the table, it gave 145 of our upper bounds.

Results

Table 1 compares the bounds our Lean proof states with those Wang published [52]. Our proof bounds all 496 elements of the table and determines 359 of them exactly, against 195 for Wang. Its lower bounds exceed Wang’s for 252 elements, by one for 245 and by two for 7, and match his for the rest. All of its upper bounds come from our own decompositions, with the exception of the row representing matrix multiplication without conditions, where the bound is due to Laderman [30].

Built from scratch, with Mathlib prebuilt, the proof’s 3,521 Lean modules take 11.1 hours on one core, and about 3.7 hours with three modules built at a time, on an Apple M2 Pro with 12 cores and 32 GB of memory.

rownnWangoursexact Wangexact ours+1+2
91001100
833, 6, 93, 6, 93300
7146×2, 9×6, 12×5, 146×2, 9×6, 12×5, 14141400
6689×6, 12×26, 13, 14×11, [14, 15]×3, 15×18, [15, 16], 16, [17, 18]9×6, 12×26, 13, 14×11, 15×21, 16×2, 18636850
516211, 12×10, [13, 14]×3, 14×6, [14, 15]×13, 15×60, [15, 16]×7, [15, 17]×8, 16×5, [16, 17]×28, [16, 18]×15, [17, 18]×611, 12×10, 14×9, 15×73, 16×12, [16, 17]×5, [16, 18], 17×31, [17, 18]×18, 18×282138685
416214×3, [14, 15], 15×14, [15, 16], 16, [16, 17]×49, [16, 18]×9, 17×4, [17, 18]×57, [17, 19]×20, [17, 20]×314×3, 15×15, 16×2, [16, 17]×8, 17×41, [17, 18]×31, [17, 19], [17, 20], 18×39, [18, 19]×17, [18, 20]×4221001120
36815, [16, 17]×3, 17×4, [17, 18]×13, [17, 19]×4, 18×4, [18, 19]×16, [18, 20]×20, [18, 21]×315, 17×7, 18×16, [18, 19]×18, [18, 21], 19×2, [19, 20]×19, [19, 21]×4926450
21418, [18, 19]×4, [18, 20], [19, 20]×3, [19, 21]×518, 19×4, [19, 20], 20×2, [20, 21]×617130
13[19, 21]×3[20, 21], 21×20212
01[21, 23][22, 23]0010
total4961953592457

Table 1. Wang’s table, by row, where nn is the number of elements in each row. Each element is shown as its value when it is known exactly, or as an interval [lower bound, upper bound] otherwise, followed by their multiplicities (×). Wang: the bounds Wang published [52]. Ours: the bounds our Lean proof states. Exact: the number of elements known exactly, for Wang and for us. +1 and +2: the number of elements whose lower bound we raise by one and by two over Wang’s.

Conclusion

We proved in Lean that every 3×33 \times3 matrix multiplication algorithm with integer constants that can be applied recursively uses at least 22 multiplications. Applied recursively, such an algorithm cannot do better than O(nlog⁡322)≈O(n2.814)O(n^{\log_3 22}) \approx O(n^{2.814}) multiplications. It follows that no such algorithm can beat Strassen’s O(nlog⁡27)≈O(n2.807)O(n^{\log_2 7}) \approx O(n^{2.807}). The proof builds on Wang’s table: it bounds all 496 of its elements, determines 359 exactly, and raises lower bounds for 252. Verifying the result requires auditing only a few short files of definitions and statements, and checking its axioms. Lean’s kernel verifies the rest.

This proof leaves open the question of whether or not a 22-multiplication algorithm is possible for 3×33 \times3 matrix multiplication. We expect this gap to be closed imminently. We are refraining from publishing the code we used to produce the proof until one of the following two conditions is met: (1) we close the gap, or (2) this paper is accepted for publication.

Acknowledgments. This research was undertaken, in part, thanks to funding from the Canada Research Chairs Program in Healthcare Analytics. We also acknowledge the support of the Natural Sciences and Engineering Research Council of Canada (NSERC RGPIN 2025-04995).

References

  1. [1]Alexeev, B., Forbes, M.A., Tsimerman, J.: Tensor rank: Some lower and upper bounds. In: IEEE Conference on Computational Complexity (CCC 2011). pp. 283–291 (2011)DOI
  2. [2]Amitsur, A.S., Levitzki, J.: Minimal identities for algebras. Proceedings of the American Mathematical Society 1(4), 449–463 (1950). https://doi.org/10.1090/S0002-9939-1950-0036751-9
  3. [3]Arai, Y., Ichikawa, Y., Hukushima, K.: Adaptive flip graph algorithm for matrix multiplication. In: Proceedings of the 2024 International Symposium on Symbolic and Algebraic Computation (ISSAC 2024). pp. 292–298 (2024). https://doi.org/10.1145/3666000.3669701
  4. [4]Beuchert, S.: Independent verification of the Wang F₂-certificate for r({3, 3, 3}) ≥ 20. Zenodo, doi:10.5281/zenodo.20691957 (2026)DOI
  5. [5]Bezanson, J., Edelman, A., Karpinski, S., Shah, V.B.: Julia: A fresh approach to numerical computing. SIAM Review 59(1), 65–98 (2017). https://doi.org/10.1137/141000671
  6. [6]Bland, R.G.: New finite pivoting rules for the simplex method. Mathematics of Operations Research 2(2), 103–107 (1977). https://doi.org/10.1287/moor.2.2.103
  7. [7]Bläser, M.: On the complexity of the multiplication of matrices of small formats. Journal of Complexity 19(1), 43–60 (2003). https://doi.org/10.1016/S0885-064X(02)00007-9
  8. [8]Bläser, M.: Fast Matrix Multiplication. No. 5 in Theory of Computing Library, Graduate Surveys, Theory of Computing (2013). https://doi.org/10.4086/toc.gs.2013.005
  9. [9]Brent, R.P.: Algorithms for matrix multiplication. Tech. Rep. STAN-CS-70-157, Department of Computer Science, Stanford University (1970)DOI
  10. [10]Brockett, R.W., Dobkin, D.: On the optimal evaluation of a set of bilinear forms. Linear Algebra and its Applications 19(3), 207–235 (1978). https://doi.org/10.1016/0024-3795(78)90012-5
  11. [11]Bürgisser, P., Clausen, M., Shokrollahi, M.A.: Algebraic Complexity Theory, Grund­lehren der mathematischen Wissenschaften, vol. 315. Springer (1997)
  12. [12]Burichenko, V.P.: The isotropy group of the matrix multiplication tensor. Trudy Instituta Matematiki 24(2), 106–118 (2016), arXiv:2210.16565
  13. [13]Crawford, J., Ginsberg, M., Luks, E., Roy, A.: Symmetry-breaking predicates for search problems. In: Proceedings of the Fifth International Conference on Principles of Knowledge Representation and Reasoning (KR’96). pp. 148–159. Morgan Kaufmann (1996)
  14. [14]D’Ambrosio, I.: The exact F₂-rank of 2 × 3 by 3 × 4 matrix multiplication. Zenodo, doi:10.5281/zenodo.21895176 (2026), nth Research CollectiveDOI
  15. [15]Deza, A., Liu, C., Vaezipoor, P., Khalil, E.B.: Fast matrix multiplication without tears: A constraint programming approach. In: 29th International Conference on Principles and Practice of Constraint Programming (CP 2023). LIPICs, vol. 280, pp. 14:1–14:15 (2023). https://doi.org/10.4230/LIPIcs.CP.2023.14
  16. [16]Faradžev, I.A.: Constructive enumeration of combinatorial objects. In: Problèmes Combinatoires et Théorie des Graphes, Colloques Internationaux du CNRS 260. pp. 131–135 (1978)
  17. [17]Farkas, J.: Theorie der einfachen Ungleichungen. Journal für die reine und angewandte Mathematik 124, 1–27 (1902). https://doi.org/10.1515/crll.1902.124.1
  18. [18]Gray, F.: Pulse code communication. US Patent 2,632,058 (1953)
  19. [19]Griesmer, J.H.: A bound for error-correcting codes. IBM Journal of Research and Development 4(5), 532–542 (1960). https://doi.org/10.1147/rd.45.0532
  20. [20]de Groote, H.F.: On varieties of optimal algorithms for the computation of bilinear mappings I. The isotropy group of a bilinear mapping. Theoretical Computer Science 7(1), 1–24 (1978). https://doi.org/10.1016/0304-3975(78)90038-5
  21. [21]Harris, C.R., et al.: Array programming with NumPy. Nature 585(7825), 357–362 (2020). https://doi.org/10.1038/s41586-020-2649-2
  22. [22]Heule, M.J.H., Kauers, M., Seidl, M.: New ways to multiply 3 × 3-matrices. Journal of Symbolic Computation 104, 899–916 (2021). https://doi.org/10.1016/j.jsc.2020.10.003
  23. [23]Heule, M.J.H., Kullmann, O., Wieringa, S., Biere, A.: Cube and conquer: Guiding CDCL SAT solvers by lookaheads. In: Hardware and Software: Verification and Testing. LNCS, vol. 7261, pp. 50–65 (2012). https://doi.org/10.1007/978-3-642-34188-5_8
  24. [24]Hopcroft, J., Musinski, J.: Duality applied to the complexity of matrix multiplication and other bilinear forms. SIAM Journal on Computing 2(3), 159–173 (1973). https://doi.org/10.1137/0202013
  25. [25]Hopcroft, J.E., Kerr, L.R.: On minimizing the number of multiplications necessary for matrix multiplication. Tech. Rep. TR 69-44, Department of Computer Science, Cornell University (1969), hdl:1813/5902
  26. [26]Hopcroft, J.E., Kerr, L.R.: On minimizing the number of multiplications necessary for matrix multiplication. SIAM Journal on Applied Mathematics 20(1), 30–36 (1971). https://doi.org/10.1137/0120004
  27. [27]Huangfu, Q., Hall, J.A.J.: Parallelizing the dual revised simplex method. Mathematical Programming Computation 10(1), 119–142 (2018). https://doi.org/10.1007/s12532-017-0130-5
  28. [28]Kauers, M., Moosbauer, J.: Flip graphs for matrix multiplication. In: ISSAC 2023. pp. 381–388 (2023). https://doi.org/10.1145/3597066.3597120
  29. [29]Knuth, D.E.: Estimating the efficiency of backtrack programs. Mathematics of Computation 29(129), 122–136 (1975). https://doi.org/10.1090/S0025-5718-1975-0373371-6
  30. [30]Laderman, J.D.: A noncommutative algorithm for multiplying 3 × 3 matrices using 23 multiplications. Bulletin of the American Mathematical Society 82(1), 126–128 (1976). https://doi.org/10.1090/S0002-9904-1976-13988-2
  31. [31]Land, A.H., Doig, A.G.: An automatic method of solving discrete programming problems. Econometrica 28(3), 497–520 (1960). https://doi.org/10.2307/1910129
  32. [32]Landsberg, J.M.: Tensors: Geometry and Applications, Graduate Studies in Mathematics, vol. 128. American Mathematical Society (2012). https://doi.org/10.1090/gsm/128
  33. [33]Landsberg, J.M., Michałek, M.: Abelian tensors. Journal de Mathématiques Pures et Appliquées 108(3), 333–371 (2017). https://doi.org/10.1016/j.matpur.2016.11.004
  34. [34]Lubin, M., Dowson, O., Dias Garcia, J., Huchette, J., Legat, B., Vielma, J.P.: JuMP 1.0: Recent improvements to a modeling language for mathematical optimization. Mathematical Programming Computation 15(3), 581–589 (2023). https://doi.org/10.1007/s12532-023-00239-3
  35. [35]Luks, E.M., Rákóczi, F., Wright, C.R.B.: Some algorithms for nilpotent permutation groups. Journal of Symbolic Computation 23(4), 335–354 (1997). https://doi.org/10.1006/jsco.1996.0092
  36. [36]MacWilliams, F.J.: A theorem on the distribution of weights in a systematic code. Bell System Technical Journal 42(1), 79–94 (1963). https://doi.org/10.1002/j.1538-7305.1963.tb04003.x
  37. [37]Marcus, M., Moyls, B.N.: Transformations on tensor product spaces. Pacific Journal of Mathematics 9(4), 1215–1221 (1959). https://doi.org/10.2140/pjm.1959.9.1215
  38. [38]de Moura, L., Ullrich, S.: The Lean 4 theorem prover and programming language. In: CADE-28. LNCS, vol. 12699, pp. 625–635 (2021). https://doi.org/10.1007/978-3-030-79876-5_37
  39. [39]Pan, V.Y.: Methods of computing values of polynomials. Russian Mathematical Surveys 21(1), 105–136 (1966). https://doi.org/10.1070/RM1966v021n01ABEH004147
  40. [40]Pan, V.Y.: How to Multiply Matrices Faster, Lecture Notes in Computer Science, vol. 179. Springer (1984). https://doi.org/10.1007/3-540-13866-8
  41. [41]Read, R.C.: Every one a winner, or how to avoid isomorphism search when cataloguing combinatorial configurations. Annals of Discrete Mathematics 2, 107–120 (1978). https://doi.org/10.1016/S0167-5060(08)70325-X
  42. [42]Rosowski, A.: Fast commutative matrix algorithm. arXiv:1904.07683 (2019)arxiv.org/abs/1904.07683
  43. [43]Sinz, C.: Towards an optimal CNF encoding of Boolean cardinality constraints. In: Principles and Practice of Constraint Programming (CP 2005). LNCS, vol. 3709, pp. 827–831 (2005). https://doi.org/10.1007/11564751_73
  44. [44]Soos, M., Nohl, K., Castelluccia, C.: Extending SAT solvers to cryptographic problems. In: SAT 2009. LNCS, vol. 5584, pp. 244–257 (2009). https://doi.org/10.1007/978-3-642-02777-2_24
  45. [45]Steinitz, E.: Bedingt konvergente Reihen und konvexe Systeme. Journal für die reine und angewandte Mathematik 143, 128–176 (1913). https://doi.org/10.1515/crll.1913.143.128
  46. [46]Strassen, V.: Gaussian elimination is not optimal. Numerische Mathematik 13(4), 354–356 (1969). https://doi.org/10.1007/BF02165411
  47. [47]Tahir, B.: A certificate-based conditional lower bound of 21 for 3 × 3 matrix multiplication over F₂. Public review draft, github.com/btahir/rank21-f2-review (2026), not peer reviewed
  48. [48]The mathlib Community: The Lean mathematical library. In: CPP 2020. pp. 367–381 (2020). https://doi.org/10.1145/3372885.3373824
  49. [49]Tseitin, G.S.: On the complexity of derivation in propositional calculus. In: Automation of Reasoning, pp. 466–483. Springer (1983). https://doi.org/10.1007/978-3-642-81955-1_28
  50. [50]Virtanen, P., et al.: SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nature Methods 17(3), 261–272 (2020). https://doi.org/10.1038/s41592-019-0686-2
  51. [51]Wang, C.: Automated lower bounds for bilinear complexity over finite fields. arXiv:2603.07280 [cs.CC], version 10 (30 Jul 2026) (2026), code: github.com/wcgbg/tensor-rank-lower-boundarxiv.org/abs/2603.07280
  52. [52]Wang, C.: A lower bound of 21 for 3 × 3 matrix multiplication over F₂. arXiv:2609.06725, version 2 (11 Sep 2026) (2026), code and data: github.com/wcgbg/matrix-multiplication-n333r21f2arxiv.org/abs/2609.06725
  53. [53]Winograd, S.: A new algorithm for inner product. IEEE Transactions on Computers C-17(7), 693–694 (1968). https://doi.org/10.1109/TC.1968.227420
  54. [54]Winograd, S.: On multiplication of 2 × 2 matrices. Linear Algebra and its Applications 4(4), 381–388 (1971). https://doi.org/10.1016/0024-3795(71)90009-7
  55. [55]Yang, S., Zhao, R., Wu, J., Wang, Y., Li, W., Chen, F., Deng, T., Hong, S., Li, Y., Li, Z., Mi, J., Pan, Y., Zhu, K., Yang, J., Chen, H., Yang, Y.: A structural proof of the lower bound 21 for 3 × 3 matrix multiplication over F₂. arXiv:2609.18722, version 1 (16 Sep 2026) (2026), qiushi Engine Team, Zhejiang University. Repository: github.com/Oxelra-AI/Qiushi-Engine-Matmul-Researcharxiv.org/abs/2609.18722
  56. [56]Zhang, F.: Matrix Theory: Basic Results and Techniques. Universitext, Springer, New York, 2nd edn. (2011). https://doi.org/10.1007/978-1-4614-1099-7

Paper details

vlnc:W_et8ewqde
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents