The polynomial multiplication tensors #
Tensor.full a b is the tensor of multiplying a polynomial of length a (degree below a) by
one of length b, returning all a + b - 1 coefficients of the product: the full product
Full_{a,b} of Pass, §2.1. All three legs are indexed by Fin (a + b - 1): the
input legs are padded by zero rows, so that every polynomial tensor of the same output length
has the same index types and the leg exchanges act on one type. The middle product
Tensor.mid a b = swap23 (full a b) is the dual Mid_{a,b} = Full_{a,b}^{23}
of Pass, equation (2): from A of length a and the coefficients of a product
A Q, recover b coefficients of Q.
Exchanging the two inputs exchanges the lengths (Tensor.swap12_full,
Pass, equation (9)), and full 1 1 is the unit tensor.
Rank (Pass, Lemma 2.3, for the full product): full a b has rank at most
a + b - 1 over a field of characteristic zero, by evaluation at a + b - 1 integer points and
Lagrange interpolation (Tensor.rank_full). The bound transfers to mid a b and to the other
leg exchanges, since rank is invariant under them.
Main definitions #
Cslib.Tensor.full,Cslib.Tensor.mid: the full and middle polynomial products.
Main results #
Cslib.Tensor.bil_full: the bilinear map offull a bis polynomial multiplication.Cslib.Tensor.swap12_full,Cslib.Tensor.full_one_one: symmetry and the base case.Cslib.Tensor.rank_full,Cslib.Tensor.rank_mid: the interpolation rank bound.
References #
- R. Pass, Matrix Multiplication from Polynomial Packings, §2.1, Lemma 2.3 and equation (9)
Interpolation bound (Pass, Lemma 2.3): Full_{a,b} has rank at most
a + b - 1 over a field of characteristic zero. Evaluate both inputs at the integer points
0, …, a + b - 2, multiply the values, and recover the coefficients of the product by Lagrange
interpolation.