Skip to content

Menu

WorksComputer Science

Matrix Multiplication from Polynomial Packings: A Constructive and Elementary Proof of ω≤9/4ω\le9/4

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_jdct2936. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

We give a self-contained constructive proof that the matrix multiplication exponent satisfies ω≤9/4ω\le9/4. In a recent breakthrough, OpenAI~\cite{original} established this bound in the model of exact scalar arithmetic over the complex numbers, using non-constructive arguments in Strassen's asymptotic spectral framework. We explicitly construct a Strassen-style matrix multiplication identity and obtain the bound by ordinary block recursion. For every γ>0γ>0, the resulting algorithm multiplies two n×nn\times n integer matrices using O(n9/4+γ)O(n^{9/4+γ}) integer arithmetic operations. As an independent contribution, we develop a framework of polynomial packings—methods for reducing many polynomial multiplications to fewer ones using linear operations. We isolate and generalize a construction of OpenAI~\cite{original} to obtain a simple packing, and show how packings can be composed to amplify their ``compression rate", which finally yields Strassen-like identities.

Introduction

The exponent ω\omega of matrix multiplication is the infimum of all τ\tau such that two n×nn \times n matrices can be multiplied with O(nτ)O(n^\tau) arithmetic operations. Strassen [Str69] showed ω≤log⁡27<2.81\omega\le\log_2 7 < 2.81. Later bounds follow a scheme developed by Bini, Capovani, Romani, and Lotti [2, 4], Schönhage [Sch81], and Strassen [Str87]. An explicit identity computes several products together, possibly with an error that vanishes with a parameter. Combining identities amplifies the saving, and the resulting independent products give a bound on ω\omega. Refinements of Strassen’s laser method, starting from the identity of Coppersmith and Winograd [6], reached ω<2.371339\omega< 2.371339 [1] and ω<2.371177\omega< 2.371177 [7].

In a recent breakthrough, OpenAI showed ω≤9/4\omega\le9/4 [Ope26a], following a companion bound ω<2.258\omega< 2.258 [Ope26b], starting from identities for polynomial multiplication. Their theorem is stated for exact arithmetic over the complex numbers, charging unit cost per scalar operation. Their proof uses Strassen’s asymptotic spectrum [Str88], an algebraic and topological framework for comparing bilinear maps through numerical invariants. Concavity strengthens inequalities for these invariants; spectral duality then converts them into the exponent bound. Their argument establishes the exponent bound without explicitly constructing the corresponding algorithms.

We give an explicit, constructive algorithm reaching the same bound using integer arithmetic throughout; furthermore, our construction is self-contained. Our starting point is the three-for-one polynomial degeneration of [Ope26a, Lemma 4.2]. We generalize it to a (c+2)(c + 2)-for-cc polynomial packing and next use our (c+2)(c + 2)-for-cc gadget, together with tensoring, to construct a Strassen-style identity: a fixed v×vv \times v block matrix product can be computed using rr products of linear combinations of its blocks, with log⁡vr\log_v r arbitrarily close to 9/49/4. This replaces the usual v3v^3 block products by rr, just as Strassen replaces eight by seven. Applying the fixed identity recursively then gives the exponent bound.

Theorem 1.1. For every γ>0\gamma> 0, there is an explicit recursive algorithm that, for every positive integer nn, multiplies two n×nn \times n integer matrices with O(n9/4+γ)O(n^{9/4+\gamma}) integer arithmetic operations. In particular, ω≤9/4\omega\le9/4.

The algorithm remains “galactic”: the constants hidden in the O(⋅)O(\cdot) notation are enormous.

Our techniques

Our approach develops a framework of polynomial packings: methods for reducing many polynomial multiplications to fewer ones using linear operations. We first isolate and generalize a construction of OpenAI [Ope26a] to obtain a simple packing; we next show how packings can be composed to amplify their “compression rate”, and finally how they yield Strassen-like identities achieving the desired exponent bound.

Polynomial packing. Informally, given mm pairs of polynomials (Ai,Bi)(A_i, B_i), an mm-for-nn polynomial packing computes Ci=AiBiC_i = A_i B_i for all ii, or perhaps a selected subset of their coefficients using nn polynomial multiplications of encoded inputs, with only linear operations for encoding and recovery. We keep track of both the number of multiplications and the sizes of the polynomials involved.

We first show how to construct a so-called same-left (SL) (c+2)(c + 2)-for-cc packing modulo a formal parameter ε\varepsilon1, generalizing the three-for-one construction of [Ope26a, Lemma 4.2]. Same-left here means that all the left polynomials AiA_i are the same. More precisely, consider univariate polynomials A,P1,…,Pc+1A, P_1, \ldots, P_{c+1} with scalar coefficients, where AA has length aa (degree less than aa) and each PiP_i has length bb. Write [zk]H[z^k]H for the coefficient of zkz^k in HH, taking coefficients outside its range to be zero. We want to compute all coefficients of the c+1c+1 products AP1,…,APc+1AP_1,\ldots,AP_{c+1}, which we call full products. We denote the full-product operation with input lengths a,ba,b by Full⁡a,b\operatorname{Full}_{a,b}, or simply Full. Naively, this takes c+1c+1 polynomial multiplications. We can trivially reduce the number of polynomial multiplications to cc by replacing Pc,Pc+1P_c,P_{c+1} with Pc+za+b−1Pc+1P_c+z^{a+b-1}P_{c+1}: the two products then occupy disjoint coefficient ranges and can be read off separately. But this encoded input has length a+2b−1a+2b-1, at least the combined length 2b2b of the two original inputs. The smaller number of polynomial multiplications therefore gives no saving in the total number of input coefficients.

Alternatively, we can use cc encoded right polynomials with just one extra coefficient each. For c≥a+b−1c\ge a+b-1, set

Ej(0)=Pj−zPj+1,1≤j≤c.E_j^{(0)}=P_j-zP_{j+1},\qquad1\le j\le c.

Each Ej(0)E_j^{(0)} has length b+1b+1. After multiplying these polynomials by AA, take the following telescoping sum:

∑j=1czj−1AEj(0)=(AP1−zAP2)+(zAP2−z2AP3)+⋯+(zc−1APc−zcAPc+1)=AP1−zcAPc+1.\begin{aligned} \sum_{j=1}^{c}z^{j-1}AE_j^{(0)}=(AP_1-zAP_2)+(zAP_2-z^2AP_3)+\cdots+(z^{c-1}AP_c-z^cAP_{c+1}) \\ &=AP_1-z^cAP_{c+1}. \end{aligned}

This sum is computed by adding coefficients. Writing Wj=AEj(0)W_j=AE_j^{(0)} and WW for the displayed sum, we have [zk]W=∑j=1c[zk−j+1]Wj[z^k]W=\sum_{j=1}^{c}[z^{k-j+1}]W_j. Thus forming WW is a linear decoding operation. The intermediate products cancel, so the first a+b−1a+b-1 coefficients give AP1AP_1, and the differences AEj(0)=APj−zAPj+1AE_j^{(0)}=AP_j-zAP_{j+1} then recover the remaining products successively. This still gives no saving in the total number of right-input coefficients: c(b+1)≥(c+1)bc(b+1)\ge(c+1)b.

But notice the empty space in the combined output: AP1AP_1 ends before position a+b−1a+b-1, while zcAPc+1z^cAP_{c+1} starts at position cc. Taking c≥a+2b−1c\ge a+2b-1 leaves at least bb zero coefficient positions between them. We use this space to obtain an additional product output, without making the encoded polynomials any longer.

So let us introduce an additional right-input polynomial QQ of length a+b−1a+b-1, aiming for a (c+2)(c+2)-for-cc packing, and write Q=∑j=0c−1qjzjQ=\sum_{j=0}^{c-1}q_jz^j.

We now make use of the formal parameter ε\varepsilon and modify the encoding to:

Ej=Pj−zPj+1+εzbqj−1,1≤j≤c.E_j=P_j-zP_{j+1}+\varepsilon z^bq_{j-1},\qquad1\le j\le c.

That is, we add just one coefficient of εQ\varepsilon Q to each EjE_j, at position bb. Each PjP_j ends at position b−1b-1, but the shifted zPj+1zP_{j+1} already reaches position $b: the added coefficient overlaps with its last coefficient.

The same telescoping sum now gives:

∑j=1czj−1AEj=AP1−zcAPc+1+εzbAQ.\sum_{j=1}^{c}z^{j-1}AE_j=AP_1-z^cAP_{c+1}+\varepsilon z^bAQ.
The telescoping sum before and after adding $\varepsilon Q$

Figure 1. The telescoping sum before and after adding εQ\varepsilon Q, shown for c=a+2b−1c=a+2b-1. The bb highlighted coefficients of εzbAQ\varepsilon z^bAQ fill the zero gap; its remaining coefficients can overlap the endpoint products.

The coefficients at positions a−1,…,a+b−2a-1,\ldots,a+b-2 of εAQ\varepsilon AQ, shifted by zbz^b, lie entirely in the gap. Dividing them by ε\varepsilon recovers these coefficients of AQAQ exactly; we call this operation the middle product, denoted Mid⁡a,b\operatorname{Mid}_{a,b}, or simply Mid.2 For the full products, use the same successive decoder as before and reduce modulo ε\varepsilon: every contribution from QQ vanishes. Our so-called same-left primal packing therefore computes

(APi)i=1c+1⏟c+1 full products([zk](AQ))k=a−1a+b−2⏟1 middle product( mod  ε).\underbrace{(AP_i)_{i=1}^{c+1}}_{c+1\ \text{full products}}\quad\underbrace{\left([z^k](AQ)\right)_{k=a-1}^{a+b-2}}_{1\ \text{middle product}}\quad(\bmod\ \varepsilon).

Reduction modulo ε\varepsilon means taking the constant coefficient of the fully decoded result. The only division by ε\varepsilon is applied to the middle output, which is divisible by ε\varepsilon, so no negative powers remain. Thus we compute c+2c+2 *polynomial-product outputs modulo ε\varepsilon using cc multiplications, with only one extra coefficient in each encoded right polynomial.

The (c+1)(c+1)-for-cc saving alone is offset by the increased input lengths; the additional middle product provides the improvement. (Introducing ε\varepsilon also has a cost, but its degree is only one here. We use a single formal parameter throughout, which Bini’s standard technique (Lemma 2.4) removes at the end without affecting the exponent bound. We can thus ignore this cost in the discussion below.)

More concretely, to see the gain and its cost, take a=b=L≥3a=b=L\ge3 and c=3Lc=3L. The encoded polynomials then have length L+1=(1+3/c)LL+1=(1+3/c)L. In return, cc source products provide c+1c+1 full outputs and one middle output, giving an output-count gain of (c+2)/c=1+2/c(c+2)/c=1+2/c. (As we shall see below, we can amplify this gain multiplicatively by applying the same method in multiple variables.)

Exchanging the roles in a packing. A polynomial product is linear in either input when the other is fixed. Write its shape as P=(I,J,K)P=(\mathcal{I},\mathcal{J},\mathcal{K}), the allowed monomials in the left input, right input, and output, which we call roles 1, 2, 3. Exchanging two roles gives

P12=(J,I,K),P^{12}=(\mathcal{J},\mathcal{I},\mathcal{K}),
P23=(I,K−1,J−1),P^{23}=(\mathcal{I},\mathcal{K}^{-1},\mathcal{J}^{-1}),
P13=(K−1,J,I−1),P^{13}=(\mathcal{K}^{-1},\mathcal{J},\mathcal{I}^{-1}),

where S−1={u−1:u∈S}S^{-1} = \{u^{-1} : u \in S\} inverts monomial labels, so zkz^k becomes z−kz^{-k}. These inverses preserve the multiplication relation: uv=wuv = w becomes uw−1=v−1uw^{-1} = v^{-1} or w−1v=u−1w^{-1}v = u^{-1}.

For a packing with independent inputs, applying the same exchange to every target and source gives another such packing with the same counts and the same exactness or validity modulo ϵ\epsilon. The exchange (12) swaps the input roles; the input–output exchanges follow from the standard transposition principle [3 Chapter 13]. The exchange (23) also preserves the same-left requirement because it keeps the left-input role fixed. We call this exchange duality, write P^=P23\widehat{P} = P^{23}, and recover the original product by applying it twice. We next observe that3^{3}

Full⁡a,b23=Mid⁡a,b.\operatorname{Full}_{a,b}^{23}=\operatorname{Mid}_{a,b}.

Thus our primal packing gives a dual same-left packing, modulo ϵ\epsilon, of c+1c + 1 middle products and one full product at lengths a,ba,b, using cc middle products at lengths a,b+1a,b + 1.

Amplifying the gain: Multivariate Packing. Running the primal and dual packings side by side gives c+2c + 2 full and c+2c + 2 middle outputs from cc full and cc middle source products. Their counts add, so the gain remains 2(c+2)/(2c)=(c+2)/c2(c + 2)/(2c) = (c + 2)/c. To multiply the gain, we move to multivariate polynomials and apply the packings in separate variables. In two variables x,yx,y, one primal step in xx and one dual step in yy give (c+2)2(c + 2)^2 outputs from c2c^2 source products; continuing in additional variables multiplies the gain further. To see why, start with a common left polynomial A(x,y)A(x,y) of length aa in each variable and (c+2)2(c + 2)^2 independent right polynomials B1(x,y),B2(x,y),…B_1(x,y), B_2(x,y), \ldots. Arrange the right polynomials in a (c+2)×(c+2)(c + 2) \times(c + 2) table, writing Bi,jB_{i,j} for the polynomial in row ii and column jj. We want coefficients of each product ABi,jAB_{i,j}. For rows 1,…,c+11,\ldots,c + 1, we want Full in xx; for the last row, Mid in xx. For columns 1,…,c+11,\ldots,c + 1, we want Mid in yy; for the last column, Full in yy. Each Bi,jB_{i,j} has length bb in a variable where we want Full and length a+b−1a + b - 1 where we want Mid. Figure 2 shows every row and column for c=4c = 4. For example, each of the (c+1)2(c + 1)^2 upper-left

The bivariate construction for c = 4

Figure 2. The bivariate construction for c=4c = 4. Each original column contains five Full inputs and one Mid input in xx; each original row contains five Mid inputs and one Full input in yy. After encoding, compute the sixteen products AVr,sAV_{r,s}, Full in xx and Mid in yy, at the longer source lengths. Decode in yy and then in xx to recover all thirty-six requested outputs modulo ϵ\epsilon.

products requests [xkyℓ](ABi,j)[x^k y^\ell](AB_{i,j}) for 0≤k<a+b−10 \le k < a+b-1 and a−1≤ℓ<a+b−1a-1 \le\ell< a+b-1; its right input has lengths (b,a+b−1)(b,a+b-1). Every column supplies the c+1c+1 full-range inputs and one middle-range input needed by the primal packing in xx. Every row supplies the c+1c+1 middle-range inputs and one full-range input needed by the dual packing in yy.

As above, take c≥a+2b−1c \ge a+2b-1. In each column, apply the primal encoder in xx, viewing the coefficients as polynomials in yy. Within each column, all inputs have the same yy-length bound. The encoder takes linear combinations of their xx-coefficients with weights independent of yy, so this bound is preserved. This leaves cc rows, each still containing the required c+1c+1 Mid inputs and one Full input in yy. In each resulting row, apply the dual encoder in yy, viewing the coefficients as polynomials in xx. We now have a c×cc \times c table of encoded right polynomials, each of length b+1b+1 in xx and a+ba+b in yy. Multiply each by AA, computing all xx-coefficients and the yy-coefficients at exponents a−1,…,a+b−1a-1,\ldots,a+b-1. Apply the dual decoder in yy, then the primal decoder in xx.

Encoding in xx and then in yy, computing the source products, and decoding in reverse order recovers all the requested outputs modulo ϵ\epsilon. This follows by applying the correctness of the two univariate packings along their separate coefficient indices.

We therefore recover (c+2)2(c+2)^2 outputs from c2c^2 source products. Continuing this process in additional variables raises the univariate compression rate to higher powers. Use 2d2d variables z1,…,z2dz_1,\ldots,z_{2d}, applying the primal packing in the first dd and the dual packing in the last dd. Encode in each variable, compute the resulting products, and decode in reverse order. This gives (c+2)2d(c+2)^{2d} outputs from c2dc^{2d} source products, an output-to-source count ratio of ((c+2)/c)2d((c+2)/c)^{2d}. Accounting also for the longer source polynomials gives the compression rate defined below.

However, there is one issue: after the above operations, the source products are all Full in the first dd variables and Mid in the last dd, whereas the recovered outputs can have different numbers of variables with Full and Mid requirements. Write P⊗QP \otimes Q for combining two product shapes on separate variable lists, and P⊗dP^{\otimes d} for dd copies. Put

Ta,b=(Fulla,b⊗Mida,b)⊗d.T_{a,b} = (\mathrm{Full}_{a,b} \otimes\mathrm{Mid}_{a,b})^{\otimes d}.

The sources have this form at the longer source lengths. To ensure that source computations and target computations have the same “shape”, only keep targets with Full in exactly dd variables and Mid in the other dd, so their shapes agree with Ta,bT_{a,b} up to renaming variables. We refer to such products as balanced. For example, in the two-variable table, the yellow and green outputs require Full in both variables or Mid in both, respectively, so they do not qualify. The (c+1)2(c+1)^2 blue outputs and the single purple output have one of each: 26 of the 36 outputs when c=4c=4. With 2d2d variables, we recover at least

(c+2)2dd+1\frac{(c+2)^{2d}}{d+1}

outputs of this shape.4 Thus requiring this common shape costs at most a factor d+1d+1 in compression. (Note that even in a balanced product, the Full and Mid requirements may be assigned to different variables; the next step lets us deal with this.)

Removing the same-left restriction. So far, the same-left polynomial packing (SL-PP) computes ww retained targets sharing one left input AA. Index them by i=0,…,w−1i = 0, \ldots, w - 1. We now want independent pairs Ai,BiA_i, B_i. Write each right input as

Bi=[Bi,0 ⋯ Bi,w−1],B_i = [B_{i,0}\ \cdots\ B_{i,w-1}],

where each Bi,jB_{i,j} is a scalar polynomial and the brackets concatenate them into a polynomial with row-vector coefficients of length ww. The entries of each BiB_i are all multiplied by the same scalar polynomial AiA_i. We batch the AiA_i into one auxiliary univariate polynomial A(ξ)A(\xi) satisfying A(i)=AiA(i) = A_i. For each ii, encode the column blocks Bi,jB_{i,j} in a univariate polynomial B′(ξ)B'(\xi) satisfying B′(i+εj)=Bi,jB'(i+\varepsilon j) = B_{i,j}. Both encodings have degree at most w−1w - 1, so the requested coefficients of A(ξ)B′(ξ)A(\xi)B'(\xi) are polynomials of degree at most 2w−22w - 2 in ξ\xi. We recover these polynomials by interpolation from 2w−12w - 1 common evaluation points. Fix one such point kk. We need the requested coefficients of the products A(k)B0′(k),…,A(k)Bw−1′(k)A(k)B'_0(k), \ldots, A(k)B'_{w-1}(k). Their right inputs differ, but their left input is the single value A(k)A(k) of the polynomial encoding all the AiA_i. Thus one application of the same-left packing computes all these products’ requested coefficients modulo ε\varepsilon. We repeat this for each of the 2w−12w - 1 evaluation points; A(k)A(k) may change between applications.

The points i+εji + \varepsilon j were chosen for two reasons. They are distinct, allowing Bi′B'_i to take the independently prescribed values Bi,jB_{i,j}, but they are all congruent to ii modulo ε\varepsilon. Thus they distinguish the right inputs while keeping the left input equal to AiA_i modulo ε\varepsilon, since A(i)=AiA(i) = A_i. Evaluating the recovered coefficient polynomials at these points therefore gives the requested coefficients of AiBi,jA_iB_{i,j} modulo ε\varepsilon.5 Concatenating these output blocks recovers the requested coefficients of AiBiA_iB_i for each ii. (OpenAI [Ope26a] proves a related result using finite Fourier projection followed by scaling variables by powers of ε\varepsilon to eliminate mismatched labels.)

At each interpolation point, all c2dc^{2d} source products share the same left polynomial, so we concatenate their right inputs into a single row. The resulting packing computes ww targets with ww columns using 2w−12w - 1 sources with c2dc^{2d} columns. For sufficiently large dd, w>c2dw > c^{2d}, giving the desired reduction in the column dimension.

The left inputs are now independent, so we can rename variables separately in each target to put all targets in the common form Ta,bT_{a,b}. To obtain a recursive matrix-multiplication algorithm, we still need to reduce the row and inner dimensions.

A Strassen-like identity. To provide the other dimension reductions, we now tensor the column reduction with two role-exchanged copies: exchanging the inputs gives a row reduction, and exchanging the left input with the output gives an inner-dimension reduction. Their tensor product reduces all three matrix dimensions simultaneously.

The resulting shape is

Qa,b=Ta,b⊗Ta,b12⊗Ta,b13.Q_{a,b} = T_{a,b} \otimes T_{a,b}^{12} \otimes T_{a,b}^{13}.

This step reduces all three matrix dimensions, but it still increases only the polynomial-length parameter bb. Keeping aa fixed while bb grows would eventually cancel the asymptotic saving. We therefore need a way to increase aa as well.

For full, exchanging the lengths aa and bb is exactly exchanging the two input roles. Consequently, in the combined product Qa,bQ_{a,b}, this exchange merely reorders the factors, which amounts to renaming polynomial variables.6 More generally, the gadget permits an integer shift t≥1t \ge1, increasing the source length from bb to b+tb+t, whenever ct≥a+2b−1ct \ge a+2b-1. Thus, after increasing bb, we can exchange the two parameters by renaming variables and apply the construction again. Starting with equal lengths a=b=La=b=L, apply one step to increase bb to L′=L+tL'=L+t.7 Rename the resulting product using this symmetry, then apply the step again:

QL,L⟶QL,L′→rename variablesQL′,L⟶QL′,L′.Q_{L,L} \longrightarrow Q_{L,L'} \xrightarrow{\text{rename variables}} Q_{L',L} \longrightarrow Q_{L',L'}.

The first and last arrows reduce all three matrix dimensions; the middle arrow only renames variables. Together these two steps form a round, increasing both polynomial lengths from LL to L′L'. Its sources have the same equal-length form as its targets, so rounds can be repeated.

The resulting product is ordinary matrix multiplication at a=b=1a=b=1, and at a=b=La=b=L can be computed using O(L6d)O(L^{6d}) matrix multiplications. For each fixed integer c≥2c \ge2, choosing sufficiently many variables and rounds gives any exponent strictly above

32log⁡(1+3/(c−1))log⁡(1+2/c).\frac{3}{2}\frac{\log(1+3/(c-1))}{\log(1+2/c)}.

This threshold tends to 9/49/4 as c→∞c \to\infty, as shown in the application of Theorem 4.3 in the proof of Corollary 4.4. After finitely many rounds, block recursion and interpolation (to remove ε\varepsilon, as in [4]) give a fixed exact rational identity with this saving. Clearing its denominators and applying ordinary block recursion gives our integer-arithmetic algorithm.

Polynomial packing

We here introduce our notion of polynomial packing, and show some simple ways of composing them. We start by recalling some standard notation.

Polynomials and their coefficients. We use polynomials with matrix coefficients over a fixed field of characteristic zero; scalar coefficients are the 1×11 \times1 case. An ordinary univariate polynomial has length aa if its degree is less than aa. For every integer kk, we write [zk]A[z^k]A for the coefficient of zkz^k in AA, which is zero when that monomial is absent. We represent a polynomial of length aa by its aa coefficients at exponents 0,…,a−10,\ldots,a-1, including zero coefficients.

We also allow monomials u=z1i1⋯zmimu=z_1^{i_1}\cdots z_m^{i_m} with integer exponents i1,…,im∈Zi_1,\ldots,i_m \in\mathbb{Z}, and finite linear combinations of such monomials. We write [u]A[u]A for the coefficient of uu in AA. The constant monomial is 11.

For sets of monomials I,J\mathcal{I},\mathcal{J}, write

IJ={uv:u∈I, v∈J},I−1={u−1:u∈I}.\mathcal{I}\mathcal{J}=\{uv:u\in\mathcal{I},\ v\in\mathcal{J}\},\qquad\mathcal{I}^{-1}=\{u^{-1}:u\in\mathcal{I}\}.

We use ∏iIi\prod_i \mathcal{I}_i for the iterated set product.

A permutation π\pi of {1,…,m}\{1,\ldots,m\} acts on monomials by replacing each variable ziz_i with zπ(i)z_{\pi(i)}:

π(z1e1⋯zmem)=zπ(1)e1⋯zπ(m)em.\pi(z_1^{e_1}\cdots z_m^{e_m})=z_{\pi(1)}^{e_1}\cdots z_{\pi(m)}^{e_m}.

For a set of monomials, define π(I)={π(u):u∈I}\pi(\mathcal{I})=\{\pi(u):u\in\mathcal{I}\}.

Linear maps. A linear map on coefficient lists takes fixed scalar linear combinations of their entries. It is represented by a matrix EE, and we write E(x)=ExE(x)=Ex. For matrix coefficients, the coordinates are their scalar entries. Coefficient extraction, shifts, matrix transposition, and rearranging or concatenating matrix blocks are linear operations.

Selected matrix-polynomial products

Our computations multiply two matrix polynomials with prescribed allowed monomials and retain a prescribed set of product coefficients.

Definition 2.1 (Selected matrix-polynomial product). Let m≥1m \ge1, put z=(z1,…,zm)\mathbf{z}=(z_1,\ldots,z_m), and let I,J,K\mathcal{I},\mathcal{J},\mathcal{K} be finite sets of monomials in z\mathbf{z} with integer exponents. For positive integers p,q,rp,q,r, the inputs are

A(z)=∑u∈IAuu,B(z)=∑v∈JBvv.A(\mathbf{z})=\sum_{u\in\mathcal{I}} A_u u,\qquad B(\mathbf{z})=\sum_{v\in\mathcal{J}} B_v v.

where Au=[u]AA_u=[u]A and Bv=[v]BB_v=[v]B are arbitrary matrices of sizes p×qp\times q and q×rq\times r, respectively. Coefficients outside I,J\mathcal{I},\mathcal{J} are zero. The selected matrix-polynomial product Prod⁡I,J,K[p,q,r]\operatorname{Prod}_{\mathcal{I},\mathcal{J},\mathcal{K}}[p,q,r] returns

Prod⁡I,J,K[p,q,r](A,B)=∑w∈K[w](AB)w.(1)\operatorname{Prod}_{\mathcal{I},\mathcal{J},\mathcal{K}}[p,q,r](A,B)=\sum_{w\in\mathcal{K}}[w](AB)w. \tag*{(1)}

Its output coefficients have size p×rp\times r. We also represent the output by its coefficient list indexed by K\mathcal{K} in a fixed order. We call P=(I,J,K)P=(\mathcal{I},\mathcal{J},\mathcal{K}) its shape, and write P[p,q,r]P[p,q,r] for the corresponding selected product. The monomial sets are independent of p,q,rp,q,r, and we omit these dimensions when they are clear from context.

Ordinary matrix multiplication is the case I=J=K={1}\mathcal{I}=\mathcal{J}=\mathcal{K}=\{1\}. At the other extreme, taking matrix dimensions [1,1,1][1,1,1] and K=IJ\mathcal{K}=\mathcal{I}\mathcal{J} gives ordinary scalar polynomial multiplication.

Role exchanges and duality. We call the left input, right input, and output roles 1, 2, 3, respectively. A role exchange swaps two of these roles. Input monomials u,vu,v contribute to an output monomial ww when uv=wuv=w. Exchanging an input with the output inverts both monomial labels: the relation becomes uw−1=v−1uw^{-1}=v^{-1} or w−1v=u−1w^{-1}v=u^{-1}. The matrix dimensions follow the shared indices: pp links the left input and output, qq links the two inputs, and rr links the right input and output. Thus the three exchanges are

(Prod⁡I,J,K[p,q,r])12=Prod⁡J,I,K[r,q,p],(Prod⁡I,J,K[p,q,r])23=Prod⁡I,K−1,J−1[q,p,r],(Prod⁡I,J,K[p,q,r])13=Prod⁡K−1,J,I−1[p,r,q].\begin{aligned} \left(\operatorname{Prod}_{\mathcal{I},\mathcal{J},\mathcal{K}}[p,q,r]\right)^{12}&=\operatorname{Prod}_{\mathcal{J},\mathcal{I},\mathcal{K}}[r,q,p],\\ \left(\operatorname{Prod}_{\mathcal{I},\mathcal{J},\mathcal{K}}[p,q,r]\right)^{23}&=\operatorname{Prod}_{\mathcal{I},\mathcal{K}^{-1},\mathcal{J}^{-1}}[q,p,r],\\ \left(\operatorname{Prod}_{\mathcal{I},\mathcal{J},\mathcal{K}}[p,q,r]\right)^{13}&=\operatorname{Prod}_{\mathcal{K}^{-1},\mathcal{J},\mathcal{I}^{-1}}[p,r,q]. \end{aligned}

We call P23P^{23} the dual of PP, written P^\widehat{P}; it keeps the left support unchanged. For successive exchanges, PσP^\sigma, σ∈S3\sigma\in S_3, denotes the corresponding permutation of (I,J,K−1)(\mathcal{I},\mathcal{J},\mathcal{K}^{-1}), moving the support in position ii to position σ(i)\sigma(i), with the resulting third support inverted to obtain the output support. Matrix dimensions are permuted by the exchanges above. Successive exchanges satisfy (Pσ)τ=Pτσ(P^\sigma)^\tau=P^{\tau\sigma} for σ,τ∈S3\sigma,\tau\in S_3; in particular, P^^=P\widehat{\widehat{P}}=P.

Full and middle products. Throughout the polynomial constructions, write s=a+b−1s = a + b - 1. For positive integers a,ba,b, define the univariate full-product shape by

Fulla,b:=({zi:0≤i<a}, {zj:0≤j<b}, {zk:0≤k<a+b−1}).\mathrm{Full}_{a,b} := \left(\{z^i : 0 \le i < a\},\ \{z^j : 0 \le j < b\},\ \{z^k : 0 \le k < a+b-1\}\right).

Define the middle-product shape as its dual:

Mida,b:=Fulla,b^.(2)\mathrm{Mid}_{a,b} := \widehat{\mathrm{Full}_{a,b}}. \tag*{(2)}

Attaching matrix dimensions [p,q,r][p,q,r] gives the selected products ProdI,J,K[p,q,r]\mathrm{Prod}_{\mathcal{I},\mathcal{J},\mathcal{K}}[p,q,r] with the supports in the following table:

MapI\mathcal{I} (left)J\mathcal{J} (right)K\mathcal{K} (output)
Fulla,b_{a,b}{zi:0≤i<a}\{z^i : 0 \le i < a\}{zj:0≤j<b}\{z^j : 0 \le j < b\}{zk:0≤k<s}\{z^k : 0 \le k < s\}
Mida,b_{a,b}{zi:0≤i<a}\{z^i : 0 \le i < a\}{zj:1−s≤j≤0}\{z^j : 1-s \le j \le0\}{zk:1−b≤k≤0}\{z^k : 1-b \le k \le0\}

Full returns all ss coefficients of ABAB; Mid returns [z1−b+j](AQ)[z^{1-b+j}](AQ) for 0≤j<b0 \le j < b, in that order. This is a shifted convention for the usual middle product [5 Section 4].

Packings and same-left packings

We are now ready to state our definition of polynomial packing, which formalizes how to “pack” a list of selected matrix-polynomial products into another list using linear operations.

Definition 2.2 (Polynomial packing). Let T=(Ti)T = (T_i) and S=(Sj)S = (S_j) be finite lists of selected products. An exact polynomial packing (PP) of TT using SS consists of rational linear maps EL,ERE^L, E^R from the target left- and right-input coefficient lists to the corresponding source input lists, and a rational linear decoding map DD from source output lists to target output lists. For all allowed target inputs A=(Ai),B=(Bi)A = (A_i), B = (B_i), they satisfy

D((Sj((EL(A))j,(ER(B))j))j)=(Ti(Ai,Bi))i.(3)D\left(\left(S_j\left((E^L(A))_j,(E^R(B))_j\right)\right)_j\right) = \left(T_i(A_i,B_i)\right)_i. \tag*{(3)}

The left-hand side is the output of the packing; its difference from the target output is the error. When all targets and sources have the same left polynomial space, a same-left polynomial packing (SL-PP) requires the identity only when all Ai=AA_i = A, and requires the left encoder to copy AA:

(EL(A,…,A))j=Afor every source j.\left(E^L(A,\ldots,A)\right)_j = A \qquad\text{for every source }j.

A packing modulo ε\varepsilon allows the three maps to have coefficients in Q[ε,ε−1]\mathbb{Q}[\varepsilon,\varepsilon^{-1}] and adds an error εRε(A,B)\varepsilon R_\varepsilon(A,B) to the right-hand side of (3), where RεR_\varepsilon is polynomial in ε\varepsilon and the scalar input entries.

Effort and Compression Rate. For a shape P=(I,J,K)P = (\mathcal{I},\mathcal{J},\mathcal{K}) with nonempty supports, let aka_k be the largest exponent of zkz_k in I\mathcal{I} minus the smallest, plus one (i.e., the length of the exponent range). Define bkb_k and hkh_k in the same way using J\mathcal{J} and K\mathcal{K}. We define a notion of “effort” for the selected product, as follows:

ek=min⁡{ak+bk−1, ak+hk−1, bk+hk−1},eff⁡(P)=∏k=1mek,eff⁡(P[p,q,r])=pqreff⁡(P).(4)\begin{aligned} e_k &= \min\{a_k+b_k-1,\ a_k+h_k-1,\ b_k+h_k-1\},\\ \operatorname{eff}(P) &= \prod_{k=1}^{m} e_k,\qquad\operatorname{eff}(P[p,q,r]) = pqr\operatorname{eff}(P). \tag*{(4)} \end{aligned}

If a support is empty, set the effort to zero. For Full and Mid, the three range lengths are (a,b,s)(a,b,s) and (a,s,b)(a,s,b), where s=a+b−1s=a+b-1. In both cases e1=se_1=s, so their effort is spqrspqr. The compression rate of a packing is its total target effort divided by its total source effort, i.e. ∑ieff⁡(Ti)∑jeff⁡(Sj)\frac{\sum_i \operatorname{eff}(T_i)}{\sum_j \operatorname{eff}(S_j)}, when the denominator is positive.

The above notion of effort is motivated by the following standard result, showing that effort bounds the number of scalar multiplications needed to compute the product. To formalize this, we consider the notion of a rational bilinear algorithm [3 Chapter 14]. A map FF admits such an algorithm using rr scalar multiplications if there exist scalar-valued rational linear maps ℓν\ell_\nu, mνm_\nu and fixed outputs WνW_\nu with rational coefficients such that, for all allowed inputs AA, BB, F(A,B)=∑ν=1rℓν(A)mν(B)WνF(A,B)=\sum_{\nu=1}^{r}\ell_\nu(A)m_\nu(B)W_\nu. An algorithm modulo ε\varepsilon allows coefficients in Q[ε,ε−1]\mathbb{Q}[\varepsilon,\varepsilon^{-1}] and returns F(A,B)+εRε(A,B)F(A,B)+\varepsilon R_\varepsilon(A,B), where RεR_\varepsilon is polynomial in ε\varepsilon and the scalar input entries. For selected products, a bilinear algorithm using rr scalar multiplications is precisely a PP with rr scalar multiplication sources; the same correspondence holds modulo ε\varepsilon.

Lemma 2.3 (Evaluation bound; cf. [5 Section 4]). Every selected product PP admits an exact rational bilinear algorithm using at most eff⁡(P)\operatorname{eff}(P) scalar multiplications.

We also recall how interpolation removes the formal parameter, following Bini [4]. For completeness, we give a proof in Appendix § 5.§ 3.

Lemma 2.4 (Bini’s approximate-to-exact conversion [4]). For each integer s≥1s\ge1, let Fs(A,B)=ABF_s(A,B)=AB for A,B∈Qs×sA,B\in\mathbb{Q}^{s\times s}. Let v≥2v\ge2, r≥1r\ge1 be integers and τ∈R\tau\in\mathbb{R}. If FvF_v admits a rational bilinear algorithm modulo ε\varepsilon using r<vτr<v^\tau scalar multiplications, then there exists an integer V≥2V\ge2 such that FVF_V admits an exact rational bilinear algorithm using fewer than VτV^\tau scalar multiplications.

Useful properties of packing. Polynomial packings are special cases of bilinear algorithms [3 Chapters 14–15] and inherit some of their useful properties, which we recall here. For completeness, we provide the standard proofs in Appendix § 5.§ 2.

Discarding unneeded outputs and adding zero inputs let us match the sizes of successive packings. Repeating a packing lets us process several complete batches.

Observation 2.5 (Elementary operations). In a PP, we may zero-pad source matrices, delete targets, or add unused sources. For every integer k≥1k\ge1, repeating a packing kk times multiplies both counts by kk and preserves its compression rate when defined. These operations preserve exactness or validity modulo ε\varepsilon. Deleting targets while keeping the source list fixed also preserves SL-PPs.

Tensoring. We recall the tensoring operator, specialized to our selected products.

Definition 2.6 (Tensor product of selected products). When tensoring shapes, we first rename their variables into disjoint lists. Let

P=Prod⁡I,J,K[p,q,r],P′=Prod⁡I′,J′,K′[p′,q′,r′]P=\operatorname{Prod}_{\mathcal{I},\mathcal{J},\mathcal{K}}[p,q,r],\qquad P'=\operatorname{Prod}_{\mathcal{I}',\mathcal{J}',\mathcal{K}'}[p',q',r']

be selected products in disjoint variable lists z\mathbf{z} and z′\mathbf{z}'. Define the tensor product by

P⊗P′:=Prod⁡II′,JJ′,KK′[pp′,qq′,rr′].P\otimes P':=\operatorname{Prod}_{\mathcal{I}\mathcal{I}',\mathcal{J}\mathcal{J}',\mathcal{K}\mathcal{K}'}[pp',qq',rr'].

Disjoint variable lists ensure that each product monomial uniquely determines its two factors. Tensoring with ordinary matrix multiplication multiplies the matrix dimensions and leaves the polynomial supports unchanged.

Lemma 2.7 (Tensoring packings [3 Chapters 14–15]). Suppose PPPPs pack (Ti)i=1m(T_i)_{i=1}^{m} using (Sj)j=1n(S_j)_{j=1}^{n}, and (Tk′)k=1m′(T'_k)_{k=1}^{m'} using (Sℓ′)ℓ=1n′(S'_\ell)_{\ell=1}^{n'}. Then there exists a PPPP with mm′mm' targets and nn′nn' sources,

(Ti⊗Tk′)i,kusing(Sj⊗Sℓ′)j,ℓ.(T_i \otimes T'_k)_{i,k}\quad\text{using}\quad(S_j \otimes S'_\ell)_{j,\ell}.

Exactness or validity modulo ε\varepsilon is preserved. If the outputs of the two packings have degrees at most dε,dε′d_{\varepsilon},d'_{\varepsilon} in ε\varepsilon, respectively, the output of the combined packing has degree at most dε+dε′d_{\varepsilon}+d'_{\varepsilon}. The same holds for SLSL-PPPPs. For all selected products P,P′P,P',

eff⁡(P⊗P′)=eff⁡(P)eff⁡(P′).(5)\operatorname{eff}(P\otimes P')=\operatorname{eff}(P)\operatorname{eff}(P'). \tag*{(5)}

Consequently, tensoring multiplies compression rates.

Role exchanges. We recall the standard transposition principle for bilinear algorithms [3 Chapter 13].

Lemma 2.8 (Role exchanges for packings). A PPPP of (Ti)i=1m(T_i)_{i=1}^{m} using (Sj)j=1n(S_j)_{j=1}^{n} gives, for every permutation σ∈S3\sigma\in S_3 of the three roles, a PPPP of

(Tiσ)i=1musing(Sjσ)j=1n.(T_i^\sigma)_{i=1}^{m}\quad\text{using}\quad(S_j^\sigma)_{j=1}^{n}.

The counts, the effort of each product, and exactness or validity modulo ε\varepsilon are preserved. For σ=(23)\sigma=(23), the same conclusion holds for SLSL-PPPPs.

Composition. We can replace each source computation by another packing.8

Lemma 2.9 (Composition [3 Chapters 14–15]). PPPPs of (Ti)i=1m(T_i)_{i=1}^{m} using (Sj)j=1n(S_j)_{j=1}^{n} and of (Sj)j=1n(S_j)_{j=1}^{n} using (Rk)k=1ℓ(R_k)_{k=1}^{\ell} give a PPPP of (Ti)(T_i) using (Rk)(R_k), with mm targets and ℓ\ell sources. Exactness or validity modulo ε\varepsilon is preserved. If all three lists have positive total effort, the compression rate of the composed packing is the product of the two compression rates.

Isomorphism. Two shapes are isomorphic, written P≅QP\cong Q, if they differ only by renaming polynomial variables. Formally, (I,J,K)≅(I′,J′,K′)(\mathcal{I},\mathcal{J},\mathcal{K})\cong(\mathcal{I}',\mathcal{J}',\mathcal{K}') if a permutation π\pi of the variables satisfies

(I′,J′,K′)=(π(I),π(J),π(K)).(\mathcal{I}',\mathcal{J}',\mathcal{K}')=(\pi(\mathcal{I}),\pi(\mathcal{J}),\pi(\mathcal{K})).

We use the same notation for selected products with the same matrix dimensions and isomorphic shapes.

Lemma 2.10 (Isomorphism). Isomorphism is an equivalence relation. For all shapes P,Q,R,P′,Q′P,Q,R,P',Q' and σ∈S3\sigma\in S_3,

(P⊗Q)⊗R≅P⊗(Q⊗R),P⊗Q≅Q⊗P,(P\otimes Q)\otimes R\cong P\otimes(Q\otimes R),\quad P\otimes Q\cong Q\otimes P,
(P⊗Q)σ≅Pσ⊗Qσ.(P\otimes Q)^\sigma\cong P^\sigma\otimes Q^\sigma.

If P≅QP\cong Q, then Pσ≅QσP^\sigma\cong Q^\sigma; if also P′≅Q′P'\cong Q', then P⊗P′≅Q⊗Q′P\otimes P'\cong Q\otimes Q'. Replacing any target or source of a PPPP by an isomorphic selected product preserves the counts and exactness or validity modulo ε\varepsilon. Applying one common variable renaming to all tasks also preserves SLSL-PPPPs.

Constructing polynomial packings

We construct the primal and dual packings, combine them on separate variables, and then remove the same-left requirement.

The primal and dual gadgets

Our first packing extends the three-for-one gadget of [Ope26a, Lemma 4.2]. For ct≥a+2b−1ct \ge a+2b-1, it computes c+1c+1 full products and one middle product from cc full products with tt additional coefficients in each source right input.

Theorem 3.1 (Primal packing). For all integers a,b,c,t,p,q,r≥1a,b,c,t,p,q,r \ge1 with ct≥a+2b−1ct \ge a+2b-1, there exists an SL-PP modulo ε\varepsilon of c+1c+1 copies of Full⁡a,b[p,q,r]\operatorname{Full}_{a,b}[p,q,r] and one middle product Mid⁡a,b[p,q,r]\operatorname{Mid}_{a,b}[p,q,r] using cc copies of Full⁡a,b+t[p,q,r]\operatorname{Full}_{a,b+t}[p,q,r].

Proof. We are given AA of length aa, polynomials P1,…,Pc+1P_1,\ldots,P_{c+1} of length bb, and QQ supported on {zj:1−s≤j≤0}\{z^j:1-s \le j \le0\}. Set Q~=zs−1Q\widetilde{Q}=z^{s-1}Q, which has length ss. We will encode only the right inputs, multiply the encoded polynomials by the unchanged AA, and recover the requested coefficients from these products.

Encoding procedure. Since ct≥s+b>sct \ge s+b>s, we can split the coefficient list of Q~\widetilde{Q} into cc consecutive blocks of length tt, padding with zeros:

Q(j)(z)=∑v=0t−1[zt(j−1)+v]Q~ zv,Q~(z)=∑j=1czt(j−1)Q(j)(z).Q^{(j)}(z)=\sum_{v=0}^{t-1}[z^{t(j-1)+v}]\widetilde{Q}\,z^v,\qquad\widetilde{Q}(z)=\sum_{j=1}^{c}z^{t(j-1)}Q^{(j)}(z).

For 1≤j≤c1 \le j \le c, set

Ej=Pj−ztPj+1+εzbQ(j).E_j=P_j-z^tP_{j+1}+\varepsilon z^bQ^{(j)}.

The first two terms combine adjacent right inputs using a shift of tt. The last term places one block of εQ~\varepsilon\widetilde{Q} in positions b,…,b+t−1b,\ldots,b+t-1. All three terms have degree less than b+tb+t, so each EjE_j is a valid right input to Full⁡a,b+t\operatorname{Full}_{a,b+t}.

Compute the cc full source products Wj=AEjW_j=AE_j, each of length s+ts+t.

Decoding procedure. From these products, form the following telescoping sum:

W=∑j=1czt(j−1)Wj=∑j=1czt(j−1)APj−∑j=1cztjAPj+1+εzbA∑j=1czt(j−1)Q(j)=AP1+εzbAQ~−zctAPc+1.(6)\begin{aligned} W&=\sum_{j=1}^{c}z^{t(j-1)}W_j\\ &=\sum_{j=1}^{c}z^{t(j-1)}AP_j-\sum_{j=1}^{c}z^{tj}AP_{j+1}+\varepsilon z^bA\sum_{j=1}^{c}z^{t(j-1)}Q^{(j)}\\ &=AP_1+\varepsilon z^bA\widetilde{Q}-z^{ct}AP_{c+1}. \tag*{(6)} \end{aligned}

Recover the middle product. The first endpoint product AP1AP_1 has no coefficients at exponents ss or above. The last endpoint product zctAPc+1z^{ct}AP_{c+1} has no coefficients below ct≥s+bct \ge s+b. Thus neither contributes at exponents s,…,s+b−1s,\ldots,s+b-1. For 0≤k<b0 \le k < b, we obtain

ε−1[zs+k]W=[za−1+k](AQ~)=[z1−b+k](AQ).\varepsilon^{-1}[z^{s+k}]W=[z^{a-1+k}](A\widetilde{Q})=[z^{1-b+k}](AQ).

These are exactly the bb coefficients of Mid⁡a,b(A,Q)\operatorname{Mid}_{a,b}(A,Q).

Recover the full products. First take the first ss coefficients of WW:

Z1=∑k=0s−1[zk]WzkZ_1=\sum_{k=0}^{s-1}[z^k]_W z^k

(6) gives Z1≡AP1(modε)Z_1 \equiv AP_1 \pmod{\varepsilon}: the final endpoint product does not reach this range, and the contribution from Q~\widetilde{Q} is divisible by ε\varepsilon.

Once ZjZ_j is known, subtract WjW_j, discard the first tt coefficients, and take the next ss coefficients. In formulas, define the length-ss polynomial Zj+1Z_{j+1} by

[zk]Zj+1=[zk+t](Zj−Wj),0≤k<s,1≤j≤c.[z^k]Z_{j+1}=[z^{k+t}](Z_j-W_j),\qquad0\leq k<s,\quad1\leq j\leq c.

To verify this step, suppose Zj≡APj(modε)Z_j\equiv AP_j\pmod{\varepsilon}. Then

Zj−Wj=Zj−APj+ztAPj+1−εzbAQ(j)≡ztAPj+1(modε).\begin{aligned} Z_j-W_j&=Z_j-AP_j+z^tAP_{j+1}-\varepsilon z^bA Q^{(j)}\\ &\equiv z^tAP_{j+1}\pmod{\varepsilon}. \end{aligned}

Thus Zj+1≡APj+1(modε)Z_{j+1}\equiv AP_{j+1}\pmod{\varepsilon}, and induction gives Zj≡APj(modε)Z_j\equiv AP_j\pmod{\varepsilon} for all 1≤j≤c+11\leq j\leq c+1.

The encoder and decoder are linear with coefficients in Q[ε,ε−1]\mathbb{Q}[\varepsilon,\varepsilon^{-1}]. The ZjZ_j are polynomial in ε\varepsilon, and the middle output is exact, so these formulas give the required packing modulo ε\varepsilon. □\square

For c=1c=1 and t=a+2b−1t=a+2b-1, this specializes to the three-for-one degeneration of [Ope26a, Lemma 4.2].

Amplifying compression through multiple variables

We next pair a packing with its dual using Lemma 2.8 and tensor the result to amplify the compression rate. For d≥1d\geq1, let

Ta,bd:=(Fulla,b⊗Mida,b)⊗d.(7)T_{a,b}^{d}:=(\mathrm{Full}_{a,b}\otimes\mathrm{Mid}_{a,b})^{\otimes d}. \tag*{(7)}

When dd is clear from context, we write Ta,b=Ta,bdT_{a,b}=T_{a,b}^{d}.

Tensoring a packing with its dual squares its compression rate. Taking dd tensor copies of the result raises the original rate to the power 2d2d. Retaining only targets with equally many Full and Mid factors loses at most a factor d+1d+1, so an initial compression rate greater than one can be amplified exponentially.

Lemma 3.2 (Same-left amplification). Let d,m,n,a,b,b′,p,q,r≥1d,m,n,a,b,b',p,q,r\geq1 be integers. Suppose an SLSL-PPPP packs mm targets, each Fulla,b[p,q,r]\mathrm{Full}_{a,b}[p,q,r] or Mida,b[p,q,r]\mathrm{Mid}_{a,b}[p,q,r], using nn copies of Fulla,b′[p,q,r]\mathrm{Full}_{a,b'}[p,q,r]. Let

u=n2d,w=⌊m2dd+1⌋.(8)u=n^{2d},\qquad w=\left\lfloor\frac{m^{2d}}{d+1}\right\rfloor. \tag*{(8)}

Then there exist shapes Ui≅Ta,bU_i\cong T_{a,b} and an SLSL-PPPP of

(Ui[(pq)d,(pq)d,r2d])i=1w\left(U_i[(pq)^d,(pq)^d,r^{2d}]\right)_{i=1}^{w}

using uu copies of

Ta,b′[(pq)d,(pq)d,r2d].T_{a,b'}[(pq)^d,(pq)^d,r^{2d}].

Exactness or validity modulo ε\varepsilon is preserved.

We first show a simple counting fact providing a lower bound on how many products we can retain.

Claim 3.3 (Counting words by type). Let f,g≥0f,g \ge0 and d≥1d \ge1 be integers, with m=f+g≥1m=f+g \ge1, and put

P={F1,…,Ff,M1,…,Mg},\mathcal{P}=\{\mathrm{F}_1,\ldots,\mathrm{F}_f,\mathrm{M}_1,\ldots,\mathrm{M}_g\},
D={F1,…,Fg,M1,…,Mf}.\mathcal{D}=\{\mathrm{F}_1,\ldots,\mathrm{F}_g,\mathrm{M}_1,\ldots,\mathrm{M}_f\}.

Every F-letter has type Full and every M-letter has type Mid. Let MdM_d be the number of words whose first dd letters lie in P\mathcal{P}, whose last dd letters lie in D\mathcal{D}, and which contain exactly dd letters of each type. Then

Md≥m2dd+1.M_d \ge\frac{m^{2d}}{d+1}.

Proof. For 0≤h≤d0 \le h \le d, a first half with exactly hh Mid letters can be chosen in

Nh=(dh)ghfd−hN_h=\binom{d}{h}g^h f^{d-h}

ways: choose the hh Mid positions, fill each with one of the gg Mid letters in P\mathcal{P}, and fill each remaining position with one of its ff Full letters.

To obtain dd letters of each type overall, the second half must have exactly hh Full letters. Since D\mathcal{D} has gg Full letters and ff Mid letters, it has the same NhN_h choices. Each of these can follow any of the NhN_h first halves. Thus

Md=∑h=0dNh2≥(∑h=0dNh)2d+1=(f+g)2dd+1=m2dd+1M_d=\sum_{h=0}^{d}N_h^2\ge\frac{\left(\sum_{h=0}^{d}N_h\right)^2}{d+1}=\frac{(f+g)^{2d}}{d+1}=\frac{m^{2d}}{d+1}

where the inequality follows from Cauchy–Schwarz, the next equality from the binomial theorem, and the final equality from m=f+gm=f+g.

Proof of Lemma 3.2. Apply Lemma 2.8 with σ=(23)\sigma=(23) to obtain the dual packing. Tensor the original packing with its dual, then tensor dd copies of the result. The dual has matrix dimensions [q,p,r][q,p,r], so pairing gives [pq,pq,r2][pq,pq,r^2] and the dd tensor copies give [(pq)d,(pq)d,r2d][(pq)^d,(pq)^d,r^{2d}]. By Lemma 2.7, the result is an SL-PP with m2dm^{2d} targets and n2dn^{2d} sources of shape Ta,b′T_{a,b'} at these dimensions, preserving exactness or validity modulo ε\varepsilon. Its targets are indexed by pairs of length-dd words from the original target list and its dual. Since Full and Mid are each other’s duals, ff Full and gg Mid targets in the original list give gg Full and ff Mid targets in its dual, with f+g=mf+g=m. After labeling these targets as in Claim 3.3, the claim supplies at least ww targets with exactly dd factors of each type, hence shapes Ui≅Ta,bU_i \cong T_{a,b} by Lemma 2.10. Retain ww of them by Observation 2.5.

The target shapes UiU_i may differ. Putting each target in canonical form may therefore require different variable renamings, which also change its left input. We first make the left inputs independent so that these changes can be chosen separately.

Removing the same-left requirement

We now show how to turn a same-left polynomial packing (SL-PP) into a general polynomial packing (PP), allowing independent left inputs. OpenAI [Ope26a, Section 3] proved an analogous result using finite Fourier projection followed by scaling variables by powers of ε\varepsilon to eliminate mismatched labels. We give a direct and elementary proof using polynomial interpolation.

Lemma 3.4 (From SL-PP to PP). Let u,w,p,q,r≥1u,w,p,q,r \ge1 be integers and F1,…,Fw,SF_1,\ldots,F_w,S be shapes. An SL-PP modulo ε\varepsilon of

(Fi[p,q,r])i=1w\left(F_i[p,q,r]\right)_{i=1}^{w}

using uu copies of S[p,q,r]S[p,q,r] gives a PP modulo ε\varepsilon of the targets

(Fi[p,q,wr])i=1w\left(F_i[p,q,wr]\right)_{i=1}^{w}

using 2w−12w-1 copies of S[p,q,ur]S[p,q,ur].

The transformation multiplies the compression rate by w/(2w−1)w/(2w-1), so allowing independent left inputs costs less than a factor of two.

Proof. Since every source has the same left input AA,

S[p,q,ur](A,[V1 ⋯ Vu])=[S[p,q,r](A,V1) ⋯ S[p,q,r](A,Vu)].S[p,q,ur]\left(A,[V_1\ \cdots\ V_u]\right)=\left[S[p,q,r](A,V_1)\ \cdots\ S[p,q,r](A,V_u)\right].

Concatenating the uu encoded right inputs gives q×urq \times ur coefficient matrices. Splitting the output into column blocks before applying the original decoder gives an SL-PP using one copy of S[p,q,ur]S[p,q,ur].

Write Bi=[Bi,0 ⋯ Bi,w−1]B_i=[B_{i,0}\ \cdots\ B_{i,w-1}], with q×rq \times r coefficient matrices in each block. It suffices to recover the block products Fi[p,q,r](Ai,Bi,j)F_i[p,q,r](A_i,B_{i,j}) and concatenate them.

Interpolate coefficientwise polynomials A(ξ),Bi′(ξ)A(\xi), B'_i(\xi) of degree at most w−1w-1 satisfying9

A(i)=Ai,Bi′(i+εj)=Bi,j(1≤i≤w, 0≤j<w).A(i)=A_i,\qquad B'_i(i+\varepsilon j)=B_{i,j}\qquad(1\le i\le w,\ 0\le j<w).

These interpolations preserve the allowed monomials.10 The coefficients of AA are independent of ε\varepsilon; the Lagrange formula for Bi′B'_i has denominators equal to nonzero rational multiples of εw−1\varepsilon^{w-1}. Thus εw−1Bi′\varepsilon^{w-1}B'_i has coefficients polynomial in ε\varepsilon, and A(i+εj)≡Ai(modε)A(i+\varepsilon j)\equiv A_i\pmod{\varepsilon}.

Let EηR,DηE_\eta^{R},D_\eta be the right encoder and decoder of this one-source packing, with its parameter denoted by η\eta. Since the left encoder is the identity, at each k=0,…,2w−2k=0,\ldots,2w-2 compute

Dε(S[p,q,ur](A(k),EεR((Bi′(k))i=1w))).D_\varepsilon\left(S[p,q,ur]\left(A(k),E^R_\varepsilon\left(\left(B'_i(k)\right)_{i=1}^{w}\right)\right)\right).

This uses one copy of S[p,q,ur]S[p,q,ur] per point. By Definition 2.1, each source is linear in its right input. Since the encoders and decoder are linear, the packing output and its error are also linear in the right inputs. Before substituting the right inputs, the error is divisible by εw\varepsilon^w. Since it is linear in those inputs, their denominators cancel at most w−1w-1 powers of ε\varepsilon. Hence these values agree modulo ε\varepsilon with Pi(k)=Fi(A(k),Bi′(k))P_i(k)=F_i(A(k),B'_i(k)). Since FiF_i multiplies inputs of degree at most w−1w-1 in ξ\xi and selects coefficients, deg⁡ξPi≤2w−2\deg_\xi P_i\le2w-2. Interpolation from these 2w−12w-1 values therefore gives

P~i(ξ)=Pi(ξ)+εRi(ξ,ε).\widetilde{P}_i(\xi)=P_i(\xi)+\varepsilon R_i(\xi,\varepsilon).

where RiR_i is polynomial in ξ,ε\xi,\varepsilon. Evaluating at ξ=i+εj\xi=i+\varepsilon j yields

P~i(i+εj)≡Fi(A(i+εj),Bi,j)≡Fi(Ai,Bi,j)(modε).\widetilde{P}_i(i+\varepsilon j)\equiv F_i(A(i+\varepsilon j),B_{i,j})\equiv F_i(A_i,B_{i,j})\pmod{\varepsilon}.

All encoders and decoders are linear with coefficients in Q[ε,ε−1]\mathbb{Q}[\varepsilon,\varepsilon^{-1}]. Concatenating the recovered blocks gives the ww independent targets with the original polynomial shapes.

A fixed matrix multiplication identity

We iterate the round constructed below until the coefficient matrices have fixed size, then evaluate the remaining polynomial products by interpolation.

From columns to all matrix dimensions

We first define the shape on which the round will operate and establish its symmetry in a,ba,b: Qa,b≅Qb,aQ_{a,b} \cong Q_{b,a}. This will let us use the same reduction to increase either length. The key identity is

Fullb,a=Fulla,b12.(9)\mathrm{Full}_{b,a}=\mathrm{Full}_{a,b}^{12}. \tag*{(9)}

The combined shape contains every role permutation of Full equally often, so exchanging aa and bb merely reorders its tensor factors.

Lemma 4.1 (The product for a round). For each integer d≥1d \ge1, let Ta,bT_{a,b} be as in (7) and put

Qa,b:=Ta,b⊗Ta,b12⊗Ta,b13.Q_{a,b}:=T_{a,b}\otimes T_{a,b}^{12}\otimes T_{a,b}^{13}.

For all integers $a,b \ge 1,

Qa,b≅Qb,a,eff⁡(Qa,b)=(a+b−1)6d.Q_{a,b}\cong Q_{b,a},\qquad\operatorname{eff}(Q_{a,b})=(a+b-1)^{6d}.

For every p,q,r≥1p,q,r\ge1, Q1,1[p,q,r]Q_{1,1}[p,q,r] is ordinary matrix multiplication with dimensions [p,q,r][p,q,r].

Proof. Equation (7) and Lemma 2.10 give

Qa,b≅[(Fulla,b⊗Mida,b)⊗(Fulla,b12⊗Mida,b12)⊗(Fulla,b13⊗Mida,b13)]⊗d.Q_{a,b}\cong \left[ \left(\mathrm{Full}_{a,b}\otimes\mathrm{Mid}_{a,b}\right) \otimes\left(\mathrm{Full}_{a,b}^{12}\otimes\mathrm{Mid}_{a,b}^{12}\right) \otimes\left(\mathrm{Full}_{a,b}^{13}\otimes\mathrm{Mid}_{a,b}^{13}\right) \right]^{\otimes d}.

By (9), Fulla,b12=Fullb,a\mathrm{Full}_{a,b}^{12}=\mathrm{Full}_{b,a}. Using (2) and the convention for successive role exchanges, the two exchanged Mid factors satisfy

Mida,b12=(Fulla,b23)12=(Fulla,b12)13=Fullb,a13,\mathrm{Mid}_{a,b}^{12} =\left(\mathrm{Full}_{a,b}^{23}\right)^{12} =\left(\mathrm{Full}_{a,b}^{12}\right)^{13} =\mathrm{Full}_{b,a}^{13},
Mida,b13=(Fulla,b23)13=(Fulla,b12)23=Midb,a.\mathrm{Mid}_{a,b}^{13} =\left(\mathrm{Full}_{a,b}^{23}\right)^{13} =\left(\mathrm{Full}_{a,b}^{12}\right)^{23} =\mathrm{Mid}_{b,a}.

Substituting and regrouping by Lemma 2.10 gives

Qa,b≅[(Fulla,b⊗Fullb,a)⊗(Mida,b⊗Midb,a)⊗(Fulla,b13⊗Fullb,a13)]⊗d.Q_{a,b}\cong \left[ \left(\mathrm{Full}_{a,b}\otimes\mathrm{Full}_{b,a}\right) \otimes\left(\mathrm{Mid}_{a,b}\otimes\mathrm{Mid}_{b,a}\right) \otimes\left(\mathrm{Full}_{a,b}^{13}\otimes\mathrm{Full}_{b,a}^{13}\right) \right]^{\otimes d}.

Exchanging a,ba,b reverses each pair. By Lemma 2.10, this only renames variables, proving Qa,b≅Qb,aQ_{a,b}\cong Q_{b,a}. Each Full factor has scalar effort a+b−1a+b-1; Lemma 2.8 and (5) therefore give eff⁡(Qa,b)=(a+b−1)6d\operatorname{eff}(Q_{a,b})=(a+b-1)^{6d}. At a=b=1a=b=1, every Full and Mid support is {1}\{1\}, which role exchanges and tensoring preserve. Thus Q1,1[p,q,r]Q_{1,1}[p,q,r] is ordinary matrix multiplication by Definition 2.1.

We now construct a packing for Qa,bQ_{a,b} from the packing for Ta,bT_{a,b}. This packing reduces all three matrix dimensions simultaneously. Applying it twice, using Qa,b≅Qb,aQ_{a,b} \cong Q_{b,a} between applications, gives a round that increases both polynomial lengths.

Lemma 4.2 (A round). Fix an integer d≥1d \ge1 and use the shapes Ta,b,Qa,bT_{a,b}, Q_{a,b} above. Let L,L′,u,w≥1L, L', u, w \ge1 be integers with w≥uw \ge u. Suppose that, for both (a,b,b′)=(L,L,L′)(a,b,b') = (L,L,L') and (L′,L,L′)(L',L,L'), a PP, exact or modulo ε\varepsilon, packs ww copies of Ta,b[1,1,w]T_{a,b}[1,1,w] using at most 2w2w copies of Ta,b′[1,1,u]T_{a,b'}[1,1,u]. Put Λ=⌊w/u⌋2\Lambda= \lfloor w/u \rfloor^2. Then, for every integer x≥1x \ge1, there is a PP of w3w^3 copies of

QL,L[w2Λx,w2Λx,w2Λx]Q_{L,L}[w^{2}\Lambda x,w^{2}\Lambda x,w^{2}\Lambda x]

using 64w364w^3 copies of QL′,L′[w2x,w2x,w2x]Q_{L',L'}[w^2x,w^2x,w^2x]. Exactness or validity modulo ε\varepsilon is preserved.

Proof. For either triple (a,b,b′)(a,b,b') and any integers p,q,r≥1p,q,r \ge1, tensor the given packing with its (12) and (13) transposes and the identity packing for Full1,1[p,q,r]\mathrm{Full}_{1,1}[p,q,r]. The last factor changes only matrix dimensions by Definition 2.6. Lemmas 2.8 and 2.7 give w3w^3 copies of Qa,b[wp,wq,wr]Q_{a,b}[wp,wq,wr] using at most (2w)3=8w3(2w)^3 = 8w^3 copies of Qa,b′[up,uq,ur]Q_{a,b'}[up,uq,ur]. Pad the source count to 8w38w^3 by Observation 2.5.

Apply the first packing at p=q=r=wΛxp=q=r=w\Lambda x. Its 8w38w^3 sources have shape QL,L′Q_{L,L'} and square coefficient matrices of side wuΛxwu\Lambda x. By Lemmas 4.1 and 2.10, we may rename these sources to shape QL′,LQ_{L',L}.

The second packing, at p=q=r=uΛxp=q=r=u\Lambda x, handles w3w^3 such products using 8w38w^3 sources of shape QL′,L′Q_{L',L'} and side u2Λxu^2\Lambda x. Repeat it eight times (Observation 2.5) to handle all 8w38w^3 intermediate products, using 64w364w^3 sources in total. Composing with the first packing (Lemma 2.9) gives the required w3w^3 targets of shape QL,LQ_{L,L} and side wu2Λxwu^2\Lambda x. Pad the final sources to side w2xw^2x, since u2Λ≤w2u^2\Lambda\le w^2. All operations preserve exactness or validity modulo ε\varepsilon. □

Construction of a Strassen-type identity

We finally use our PP to provide a Strassen-like matrix multiplication identity.

Theorem 4.3 (A finite identity from scalar polynomial packings). Fix integers m>n≥2m > n \ge2. Suppose that, for every triple of integers a,b,δ≥1a,b,\delta\ge1 with nδ≥a+2b−1n\delta\ge a+2b-1, there exists an SL-PP modulo ε\varepsilon of mm scalar targets, each of shape Fulla,b\mathrm{Full}_{a,b} or Mida,b\mathrm{Mid}_{a,b}, using nn scalar sources of shape Fulla,b+δ\mathrm{Full}_{a,b+\delta}. Then, for every

τ>3log⁡(1+3/(n−1))2log⁡(m/n),\tau> \frac{3\log(1+3/(n-1))}{2\log(m/n)},

there exists an exact rational bilinear algorithm for matrix multiplication of some side v≥2v \ge2 using r<vτr < v^\tau scalar multiplications.

Proof. For every L≥1L \ge1, put

δL=⌊3L−1n−1⌋,L′=L+δL,ρ=1+3n−1.\delta_L=\left\lfloor\frac{3L-1}{n-1}\right\rfloor,\qquad L'=L+\delta_L,\qquad\rho=1+\frac{3}{n-1}.

Then nδL≥3L+δL−1n\delta_L \ge3L+\delta_L-1, so the hypothesis supplies the two SL-PPs with (a,b)=(L,L)(a,b)=(L,L) and (L′,L)(L',L), both with source right-input length L′L'. Also L′≤ρL+1L' \le\rho L+1.

For each d≥1d \ge1, take u,wu,w from (8) and put Λ=⌊w/u⌋2\Lambda=\lfloor w/u\rfloor^2. As d→∞d\to\infty, these formulas give w/u→∞w/u\to\infty and log⁡Λ=4dlog⁡(m/n)+O(log⁡d)\log\Lambda=4d\log(m/n)+O(\log d). Consequently,

log⁡64+6dlog⁡ρlog⁡Λ⟶3log⁡ρ2log⁡(m/n)<τ.\frac{\log64+6d\log\rho}{\log\Lambda}\longrightarrow\frac{3\log\rho}{2\log(m/n)}<\tau.

Fix dd large enough that

64ρ6d<Λτ.(10)64\rho^{6d}<\Lambda^\tau. \tag*{(10)}

Since τ>0\tau>0, this also gives Λ>1\Lambda>1 and hence w≥uw\ge u.

For each a∈{L,L′}a\in\{L,L'\}, apply Lemmas 3.2 and 3.4 at p=q=r=1p=q=r=1, then rename the targets by Lemma 2.10. This gives ww copies of Ta,L[1,1,w]T_{a,L}[1,1,w] using 2w−12w-1 copies of Ta,L′[1,1,u]T_{a,L'}[1,1,u]. Since 2w−1≤2w2w-1\le2w, the hypotheses of Lemma 4.2 hold, with counts independent of L,L′L,L'. By Lemma 4.1 and (4), each round has compression rate

Λ364(2L−12L′−1)6d,\frac{\Lambda^3}{64}\left(\frac{2L-1}{2L'-1}\right)^{6d},

independent of xx.

Starting from L0=1L_0=1, set Lj+1=Lj+δLjL_{j+1}=L_j+\delta L_j. Since Lj+1≤ρLj+1L_{j+1}\le\rho L_j+1 and ρ>1\rho>1, we have Lk=O(ρk)L_k=O(\rho^k).

Fix k≥1k\ge1 and put vk=w2Λkv_k=w^2\Lambda^k. Apply the rounds (Lj,Lj+1)(L_j,L_{j+1}) with x=Λk−j−1x=\Lambda^{k-j-1} for j=0,…,k−1j=0,\ldots,k-1. Successive shapes and matrix dimensions match. The fixed counts w3,64w3w^3,64w^3 give 64 complete batches for the next round from each batch in the current round. Repetition (Observation 2.5) and composition (Lemma 2.9) therefore pack w3w^3 copies of Q1,1[vk,vk,vk]Q_{1,1}[v_k,v_k,v_k] using sources QLk,Lk[w2,w2,w2]Q_{L_k,L_k}[w^2,w^2,w^2], with compression rate

Ck=∏j=0k−1[Λ364(2Lj−12Lj+1−1)6d]=Λ3k64k(2Lk−1)6d.C_k=\prod_{j=0}^{k-1}\left[\frac{\Lambda^3}{64}\left(\frac{2L_j-1}{2L_{j+1}-1}\right)^{6d}\right] =\frac{\Lambda^{3k}}{64^k(2L_k-1)^{6d}}.

The length factors telescope, and validity modulo ε\varepsilon is preserved throughout.

By Lemma 4.1, the targets are matrix products, with total effort w3vk3w^3v_k^3. The definition of compression rate and Lemma 2.3 therefore bound the scalar multiplications needed to evaluate all sources by

Ek:=w3vk3Ck=64kw9(2Lk−1)6d≤C(64ρ6d)k,E_k:=\frac{w^3v_k^3}{C_k}=64^kw^9(2L_k-1)^{6d}\le C(64\rho^{6d})^k,

where CC depends only on the fixed data and dd. Compose the evaluations by Lemma 2.9 and retain one target by Observation 2.5. This computes one matrix product of side vkv_k; retaining it leaves the constant batch factor w3w^3 in the cost. By (10), a sufficiently large computable kk gives Ek<vkτE_k<v_k^\tau. Lemma 2.4 gives the claimed exact identity.

For the primal packing, the two required length increases follow from the same inequality. The theorem then gives the desired exponent.

Corollary 4.4 (A fixed matrix multiplication identity). For every τ>9/4\tau>9/4, there exist computable integers v≥2v\ge2, r≥1r\ge1 with r<vτr<v^\tau and an exact rational bilinear algorithm for matrix multiplication of side vv using rr scalar multiplications.

Proof. For every integer c≥2c\ge2, Theorem 3.1 at p=q=r=1p=q=r=1 and t=δt=\delta supplies the packings required by Theorem 4.3 with m=c+2m=c+2 and n=cn=c. The exponent threshold is

32log⁡(1+3/(c−1))log⁡(1+2/c)⟶94.\frac{3}{2}\frac{\log(1+3/(c-1))}{\log(1+2/c)}\longrightarrow\frac{9}{4}.

For any prescribed τ>9/4\tau>9/4, choose cc large enough that this threshold is below τ\tau, and apply the theorem. ∎

:::

Integer arithmetic

We finish by applying standard block recursion to the fixed identity, as in Strassen’s algorithm [Str69]. Its parameters and coefficients are constants once the requested exponent is fixed.

Proof of Theorem 1.1. Choose the identity in Corollary 4.4 with τ=9/4+γ\tau= 9/4 + \gamma. Clear the fixed denominators in the encoders and decoder to obtain integer linear maps whose output is ΔAB\Delta AB for a fixed positive integer Δ\Delta.

For n=vjn = v^j, partition each input into a v×vv \times v array of blocks of side n/vn/v and apply the fixed identity to these blocks. This substitution is valid because, after expanding the linear combinations in the bilinear algorithm, every term contains one entry of AA followed by one entry of BB. Equality of their scalar coefficients therefore also gives the identity for matrix blocks. Compute its rr block products recursively, using the integer encodings and decodings and dividing each output entry exactly by Δ\Delta at every level, until the blocks are scalars. All operations outside the recursive products cost O(n2)O(n^2), so

T(n)≤rT(n/v)+O(n2)=O(nτ).T(n) \le rT(n/v) + O(n^2) = O(n^\tau).

since r<vτr < v^\tau and τ>2\tau> 2. Padding to the next power of vv handles every positive integer nn. □

For BB-bit integer inputs, encoding adds only O(1)O(1) bits per level. Products have at most twice the resulting input length, and decoding adds O(log⁡n)O(\log n) bits over the remaining levels. All intermediate integers therefore have O(B+log⁡n)O(B + \log n) bits. The bit cost is O(n9/4+γM(B+log⁡n))O(n^{9/4+\gamma}M(B + \log n)), where M(b)M(b) is the cost of multiplying bb-bit integers; multiplication and exact division by the fixed constants take linear time.

Remark 4.5 (Other products and their duals). Nothing after the primal construction requires Full and Mid specifically. We may replace them by shapes Pa,bP_{a,b} and their duals, provided that Pb,a≅Pa,b12P_{b,a} \cong P^{12}_{a,b} for all integers a,b≥1a,b \ge1 and P1,1[p,q,r]P_{1,1}[p,q,r] is ordinary matrix multiplication for all integers p,q,r≥1p,q,r \ge1. These two properties give the parameter symmetry and matrix-multiplication base case needed for recursion.

Fix integers m>n≥1m > n \ge1 and constants ρ>1\rho> 1, C≥0C \ge0. Suppose eff⁡(PL,L)=O(Lκ)\operatorname{eff}(P_{L,L}) = O(L^\kappa) for some fixed κ>0\kappa> 0. Suppose that for every integer L≥1L \ge1 there exists an integer 1≤L′≤ρL+C1 \le L' \le\rho L + C such that, for both a=La = L and a=L′a = L', there exists an SL-PP modulo ε\varepsilon of mm scalar targets, each Pa,LP_{a,L} or P^a,L\widehat{P}_{a,L}, using nn scalar sources Pa,L′P_{a,L'}.

The proofs of Lemmas 3.2, 3.4, 4.1, and 4.2 apply with these replacements. Since eff⁡(QL,L)=eff⁡(PL,L)βδ\operatorname{eff}(Q_{L,L}) = \operatorname{eff}(P_{L,L})^{\beta\delta}, the same iteration as in Theorem 4.3 gives, for every

τ>3κlog⁡ρ2log⁡(m/n).\tau> \frac{3\kappa\log\rho}{2\log(m/n)}.

there exists an exact rational bilinear algorithm for matrix multiplication using r<vτr < v^\tau scalar multiplications for some v≥2v \ge2. In particular, exponents arbitrarily close to 2 would follow from such packings with κlog⁡ρ/log⁡(m/n)⟶4/3\kappa\log\rho/\log(m/n) \longrightarrow4/3.

Lean formalization. In a single run, Aristotle generated Lean 4 code to formalize the rational matrix-multiplication identities and the resulting arithmetic-operation bound [8], using Mathlib’s standard definitions of matrices and matrix multiplication. (We have not independently verified the generated code or its correspondence with the paper.) The formalization comprises approximately 3,600 lines, compared with approximately 20,700 lines in OpenAI’s development (which also includes substantial general-purpose infrastructure) for the 9/4 bound. It proves that, for every γ>0\gamma> 0, every positive size nn admits a correct program for rational matrix multiplication using O(n9/4+γ)O(n^{9/4+\gamma}) scalar operations, including all operations in the linear encodings and decoding. Beyond its compactness, the formalization certifies the rational identities underlying our construction: all coefficients and program constants lie in Q\mathbb{Q}. OpenAI’s formalized arithmetic bound is over C\mathbb{C}. Rational coefficients allow our identities to be implemented exactly by clearing denominators, without approximating complex constants.

AI Use Statement. OpenAI Codex (Astra) was used extensively to study [Ope26a], learn about the problem, and explore candidate constructions. While the main ideas behind the constructions and abstractions are my own, Codex was invaluable in exploring definitions and proof approaches and in formalizing proof ideas and sketches. Most of the text has been written and revised with Codex through detailed and repeated prompts from me. Claude provided feedback on the manuscript and its presentation.

Standard results

Supporting lemmas

Lemma A.1 (Linearity in the inputs). The output of a PP and its error are linear in either input list when the other is fixed. For an SL-PP, the same holds for the common left input and the right-input list.

Proof. Selected products are linear in either input when the other is fixed by (1). Applying separate linear encoders and a linear decoder, identifying the left inputs, and subtracting the target output preserve this property.

Properties of polynomial packings

Proof of Observation 2.5. Use zero insertion and output projection for padding, set discarded inputs to zero for target deletion, and ignore unused sources. For SL target deletion, zero only the unwanted right inputs, preserving the common left input. Independent copies of the maps repeat a PP; repetition multiplies both counts and both total efforts by kk. These operations preserve exactness and polynomial errors divisible by ε\varepsilon.

Proof of Lemma 2.8. Role exchanges permute exponent-range lengths and preserve pqrpqr, so (4) gives

eff⁡(Pσ)=eff⁡(P).\operatorname{eff}(P^\sigma)=\operatorname{eff}(P).

The exchange (12) follows from (AB)T=BTAT(AB)^{\mathsf{T}}=B^{\mathsf{T}}A^{\mathsf{T}}, by swapping the encoders and transposing coefficient matrices.

For (23), let P=Prod⁡I,J,K[p,q,r]P=\operatorname{Prod}_{I,J,K}[p,q,r], write PA(B)=P(A,B)P_A(B)=P(A,B), and let ι\iota invert monomial labels. Here transposing a linear map means transposing its matrix on coefficient lists. For any output list ZZ, extending coefficient lists by zero, (1) gives

[v−1]P^(AT,ιZ)=∑u∈IAuTZuv=(PATZ)v(v∈J).[v^{-1}]\widehat{P}(A^{\mathsf T},\iota Z)=\sum_{u\in I}A_u^{\mathsf T}Z_{uv}=(P_A^{\mathsf T}Z)_v \qquad(v\in J).

Thus transposing the packing identity with fixed left inputs gives

TA=DSEALER⟹TAT=(ER)TSEALTDT.T_A=D S_{E^L_A}E^R \quad\Longrightarrow\quad T_A^{\mathsf T}=(E^R)^{\mathsf T}S_{E^L_A}^{\mathsf T}D^{\mathsf T}.

Under these coefficient identifications, the dual encoders and decoder are ELE^L, DTD^{\mathsf T}, (ER)T(E^R)^{\mathsf T}. Transposition and reindexing preserve their allowed coefficients, the counts, and polynomial errors divisible by ε\varepsilon. Every role permutation is a composition of (12) and (23), so repeated application proves the PP conclusion for every σ∈S3\sigma\in S_3.

For an SL-PP, fix the common left input AA and apply the same transpose identity to its right-input map. Since every source receives AA unchanged, every dual source receives the same ATA^{\mathsf T} unchanged. Thus the new left encoder is again the copying map, and the preceding count and error conclusions also apply.

Proof of Lemma 2.9. Write Ei=(EiL,EiR)E_i=(E_i^L,E_i^R) for the encoder of packing i=1,2i=1,2. Use

E=(E2L∘E1L, E2R∘E1R),D=D1∘D2.E=(E_2^L\circ E_1^L,\ E_2^R\circ E_1^R),\qquad D=D_1\circ D_2.

Substitution proves exact correctness, with mm targets and ℓ\ell sources. Modulo ε\varepsilon, choose nonnegative integers pL,pR,pDp_L,p_R,p_D such that εpLE1L\varepsilon^{p_L}E_1^L, εpRE1R\varepsilon^{p_R}E_1^R, and εpDD1\varepsilon^{p_D}D_1 have entries polynomial in ε\varepsilon. First replace ε\varepsilon by εpL+pR+pD+1\varepsilon^{p_L+p_R+p_D+1} in (E2,D2)(E_2,D_2). By Lemma A.1, substituting the outer encoders and applying D1D_1 cancels at most pL+pR+pDp_L+p_R+p_D powers of ε\varepsilon from the inner error. The added error is therefore polynomial and divisible by ε\varepsilon. The compression rates multiply because the total effort of (Sj)(S_j) cancels in their product.

Proof of Lemma 2.7. Pair the lists, giving mm′mm' targets and nn′nn' sources. For each encoder and decoder M∈{EL,ER,D}M\in\{E^L,E^R,D\}, define its entries by

M(a,a′),(b,b′)=(M1)a,b(M2)a′,b′.M_{(a,a'),(b,b')}=(M_1)_{a,b}(M_2)_{a',b'}.

By Definition 2.6, expanding the source products and these maps gives sums that separate over the two sets of indices. Thus, if co,a,b(i)c^{(i)}_{o,a,b} is the coefficient of the product of left-input entry AaA_a and right-input entry BbB_b in output oo of packing ii, the combined coefficient is

c(o,o′),(a,a′),(b,b′)=co,a,b(1)co′,a′,b′(2).c_{(o,o'),(a,a'),(b,b')}=c^{(1)}_{o,a,b}c^{(2)}_{o',a',b'}.

Together with Lemma A.1, this proves exact correctness for arbitrary inputs. Modulo ε\varepsilon, these products remain polynomial with the required constant terms, and their degrees are at most dε+dε′d_\varepsilon+d'_\varepsilon. For SL-PPs, use the common left indices; the product of the copying encoders copies the combined left input.

Effort multiplies by (4), since the variable lists are disjoint and the matrix dimensions multiply. Summing over the paired lists multiplies the total target efforts and the total source efforts, so the compression rates multiply as well.

Proof of Lemma 2.10. Identity, inverse, and composed variable permutations prove reflexivity, symmetry, and transitivity. Regrouping or exchanging tensor factors only regroups or exchanges their disjoint variable lists. Renamings on separate factors combine into one renaming of their union, proving compatibility with tensoring. Role exchanges permute the three supports and invert the appropriate monomials; these operations commute with variable renaming and distribute over products in disjoint variables. This proves both assertions involving role exchanges.

A variable renaming induces coefficient permutations on inputs and outputs. For a target replacement, undo its input permutations before encoding and apply its output permutation after decoding. For a source replacement, permute its encoded inputs and undo its output permutation before decoding. These changes preserve the counts and correctness. For an SL-PP, one common renaming leaves the left encoder a copying map. Coefficient permutations also preserve polynomial errors divisible by ε\varepsilon.

Proof of Lemma 2.3. Empty supports give the zero product. Otherwise, univariate interpolation at a+b−1a+b-1 distinct nonzero rational points gives an exact packing for input intervals of lengths a,ba,b: their product occupies an interval of a+b−1a+b-1 exponents, and multiplying by a monomial reduces coefficient recovery to ordinary interpolation. Evaluation and recovery are linear, and any requested output coefficients outside this interval are zero. For output interval length hh, apply the same construction to the (23) and (13) role exchanges, whose input interval lengths are (a,h)(a,h) and (h,b)(h,b), respectively. Exchanging the roles back by Lemma 2.8 gives bounds a+h−1a+h-1 and b+h−1b+h-1; the scalar multiplication sources are unchanged. Thus the minimum bound is e1e_1. Tensor these interval packings over the variables by Lemma 2.7. To restrict to the actual supports, insert zeros at missing input monomials and discard unwanted output coefficients; these linear maps preserve exactness and the source count. Apply the resulting scalar packing to each triple of matrix indices and sum over the inner index; this uses pqr∏kek=eff⁡(P)pqr\prod_k e_k=\operatorname{eff}(P) scalar multiplications.

Bini’s approximate-to-exact conversion

Proof of Lemma 2.4. Regard the given bilinear algorithm as a PP with rr scalar multiplication sources, as above. Let dεd_\varepsilon bound the degree in ε\varepsilon of the output of this packing; the output is polynomial in ε\varepsilon by the definition of validity modulo ε\varepsilon. Tensor hh copies of the packing using Lemma 2.7. Constant matrix products remain constant matrix products, so this gives side vhv^h using rhr^h scalar products. Its output has degree at most hdεhd_\varepsilon in ε\varepsilon and the required matrix product as the constant term. Evaluate the rule at hdε+1hd_\varepsilon+1 distinct nonzero rational values of ε\varepsilon and interpolate its constant coefficient. Evaluation and interpolation use rational linear maps, so this gives an exact rational bilinear algorithm using at most (hdε+1)rh(hd_\varepsilon+1)r^h scalar multiplications. Since

(hdε+1)(rvτ)h⟶0,(hd_\varepsilon+1)\left(\frac{r}{v^\tau}\right)^h\longrightarrow0,

some finite hh gives fewer than VτV^\tau scalar multiplications for V=vh≥2V=v^h\ge2. All steps are computable from the given algorithm.

References

  1. [1]Josh Alman, Ran Duan, Virginia Vassilevska Williams, Yinzhan Xu, Zixuan Xu, and Renfei Zhou. More asymmetry yields faster matrix multiplication. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms, pages 2005–2039, 2025. doi:10.1137/1.9781611978322.63.DOI
  2. [2]Dario Bini, Milvio Capovani, Francesco Romani, and Grazia Lotti. O(n²·⁷⁷⁹⁹) complexity for n×n approximate matrix multiplication. Information Processing Letters, 8(5):234–235, 1979. doi:10.1016/0020-0190(79)90113-3.DOI
  3. [3]Peter Bürgisser, Michael Clausen, and Mohammad Amin Shokrollahi. Algebraic Complexity Theory. Volume 315 of Grundlehren der mathematischen Wissenschaften. Springer, 1997. doi:10.1007/978-3-662-03338-8.DOI
  4. [4]Dario Bini. Relations between exact and approximate bilinear algorithms. Applications. Calcolo, 17(1):87–97, 1980. doi:10.1007/BF02575865.DOI
  5. [5]Alin Bostan, Grégoire Lecerf, and Éric Schost. Tellegen’s principle into practice. In Proceedings of the 2003 International Symposium on Symbolic and Algebraic Computation, pages 37–44. ACM, 2003. Author’s version.DOI
  6. [6]Don Coppersmith and Shmuel Winograd. Matrix multiplication via arithmetic progressions. Journal of Symbolic Computation, 9(3):251–280, 1990. doi:10.1016/S0747-7171(08)80013-2.DOI
  7. [7]Emilien Dupont, Marvin Eisenberger, Borislav Kozlovskii, Abbas Mehrabian, Francisco J. R. Ruiz, Abigail See, Renfei Zhou, Josh Alman, Virginia Vassilevska Williams, and Matej Balog. Improving the matrix multiplication exponent with modern optimization and AlphaEvolve. Preprint, 2026. arXiv:2608.16884.arxiv.org/abs/2608.16884
  8. [8]Lean 4 formalization accompanying this paper. Aristotle project, 2026. Project page.

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type