The flattening bound for matrix multiplication #
A bilinear algorithm for p × q by q × r matrix multiplication, over a nontrivial commutative
ring, needs at least p r multiplications (Cslib.Tensor.mul_le_of_rank_mm), one for each entry
of the product. The p r output coordinates of ⟨p, q, r⟩ are bilinear forms, and each is a
combination of the s rank-one forms of a decomposition. The matrix of the output coordinates has
a right inverse that reads entry (i, k) off the inputs e_{i 0} and e_{0 k}, so its rank is
p r, and it factors through s coordinates.
Main results #
Cslib.Tensor.mul_le_of_rank_mm:Rank s (mm p q r)with0 < qgivesp * r ≤ s.Cslib.Tensor.mul_self_le_of_rank_mm:Rank s (mm v v v)givesv * v ≤ s.
theorem Cslib.Tensor.mul_self_le_of_rank_mm {K : Type u_1} [CommRing K] [Nontrivial K] {v s : ℕ} (h : Rank s (mm v v v)) :
A rank decomposition of ⟨v, v, v⟩ has at least v ^ 2 terms.