OpenAI Says Nothing Beats n^2.25 for Matrix Multiplication. Here Is What Lean Actually Checked

6 min read

The problem: multiplying matrices gets expensive fast

Every large language model spends most of its time multiplying matrices. So here is a simple question with a surprisingly deep answer: how much work does it take to multiply two n by n matrices?

The method from school works entry by entry. Each of the n × n entries of the answer is a dot product: n multiplications, then add them up. That is about n × n × n steps, or n³. Double the size of the matrices and the work goes up eight times.

python
def matmul(A, B):
    n = len(A)
    C = [[0] * n for _ in range(n)]
    for i in range(n):
        for j in range(n):
            for k in range(n):
                C[i][j] += A[i][k] * B[k][j]
    return C

Three nested loops, so n³. For decades the real question has been: can you do fundamentally better?

The number everyone argues about: ω

In 1969 Volker Strassen showed you can multiply two 2 by 2 matrices with 7 multiplications instead of 8. Apply that trick recursively to blocks of a big matrix and the cost grows like n to the power log₂7, about n^2.81. Three was not the floor.

Researchers call the true best exponent ω, the Greek letter omega. It is the smallest power s such that n by n matrices can be multiplied in roughly n^s arithmetic steps as n grows. It can never go below 2, because the answer alone has n² entries that you have to write down.

For more than 50 years the upper bound crept down slowly. The best record before October 2026, reported by Dupont and coauthors, was ω < 2.371177. The big open question was whether ω is exactly 2.

Why your GPU still runs the school method

Here is the part that surprises people. The fast methods behind those records are not what runs on GPUs. NVIDIA's CUTLASS documentation describes GPU matrix multiply as the basic triple loop nest, blocked and tiled to fit threadblocks, warps, Tensor Cores and memory.

The reason is the constant hidden in the "roughly". Rafael Pass, describing his own explicit 9/4 algorithm, calls it "galactic": the constants hidden in the big O are enormous. OpenAI's October paper says the same thing in different words: its proof does not specify a competitive finite matrix size. These results count arithmetic steps as n goes to infinity. They are not about how fast your model trains.

The claim: 9/4, from both sides

On 2 October 2026 OpenAI posted a manuscript proving ω ≤ 9/4 over the complex numbers. That is 2.25, a huge jump from 2.371.

It was checked fast. Rafael Pass posted a self-contained constructive proof of ω ≤ 9/4 that uses integer arithmetic throughout and an explicit Strassen-style identity. Mahmut Levent Doğan, Vladimir Lysikov, Keiya Sakabe and Michael Walter posted an exposition proving the bound over every field with a different tool. OpenAI's November paper credits the every-field upper bound to Amanov, van den Berg and Zuiddam, following an extension by Lü.

Then on 24 November 2026 OpenAI posted "The matrix multiplication exponent is nine fourths". It claims the matching lower bound: over every field, nothing beats 9/4. Concretely, for every n of at least 2, a formal arithmetic circuit that multiplies two n by n matrices needs at least n^(9/4)/2, rounded up, multiplication or division gates, even if additions are free.

If it holds, ω is exactly 2.25, and the long-standing hope that ω = 2 is dead.

The proof works by contradiction. A matrix method beating 9/4 would let you compress certain networks that test whether the words in a list are all distinct, and the paper proves a separate lower bound saying such networks cannot be that cheap. The manuscript is a preprint and has not been peer reviewed.

What Lean checked, and what it did not

The November paper comes with a Lean formalization, and a Lean proof is the strongest kind of check we have: a small kernel verifies every step. But Lean checks the theorem statement in the file. Whether that statement matches the abstract is something you have to read.

Here is the statement from OpenAI's repository:

lean
theorem square_exponent (F : Type*) [Field F] : formalOmega F 1 1 1 = (9 : ℝ) / 4

For every field F, the exponent is exactly 9/4. That part matches the paper. The catch is inside the definition of a program. In the Lean model, a gate can be a constant, an input, an addition, a subtraction or a multiplication. There is no division gate.

The paper's main theorem allows gates that divide by a nonzero rational function. OpenAI's own README says it directly: the Lean development proves the 9/4 exponent for division-free circuits computing formal polynomial identities over every field.

So the honest summary is:

  • Machine checked: ω = 9/4 exactly, for division-free programs, over every field, with outputs required to be exact polynomial identities.
  • Prose only: the stronger version that also allows division.
  • Not in the listed Lean scope: the finite gate count at each size. The scope document lists the square, dual and rectangular exponents.
  • Not checked by anyone yet: peer review of the 111-page argument.

That is still a big deal. A lower bound that a proof assistant has verified, even in a slightly narrower model, is rare in complexity theory. But it is a different sentence from "nothing can ever beat n^2.25".

Why this matters if you build AI

Nothing changes in your training run tomorrow. GPU kernels will keep using tiled n³ loops because the asymptotic methods only pay off at sizes nobody uses.

What changes is the conversation around AI-generated mathematics. A model-written proof is only as trustworthy as the statement it proves. The skill that matters now is reading a Lean statement and asking: is this the claim in the headline, or a smaller one?

Learn to read Lean proofs yourself

You can learn to do this check yourself in a few evenings. Our free course Lean 4: Proofs a Computer Can Check starts from zero and ends with a lesson that walks through this exact statement, definition by definition: Lean Proved It. Did It Prove What the Paper Says?

Sources