Matrix.dotProduct_mulVec_eq_dotProduct_uncurry
Library · theorem
A bilinear form is a linear form of the entries: \mathbf{x}^{\mathsf{T}}\mathbf{G}\mathbf{y} is the dot product of the flattened outer product (\mathbf{x}_i \mathbf{y}_j)_{(i,j)} with the flattened matrix (\mathbf{G}_{i,j})_{(i,j)} (Function.uncurry G): \mathbf{x}^{\mathsf{T}}\mathbf{G}\mathbf{y} = \sum_{(i,j)} \mathbf{x}_i \mathbf{y}_j \mathbf{G}_{i,j}.
Matrix.dotProduct_mulVec_eq_dotProduct_uncurry.{u_1, u_2, u_3} {R : Type u_1} [CommSemiring R]
{m : Type u_2} {n : Type u_3} [Fintype m] [Fintype n] (x : m → R) (G : Matrix m n R) (y : n → R) :
x ⬝ᵥ G *ᵥ y = (fun p ↦ x p.1 * y p.2) ⬝ᵥ Function.uncurry GImport NLAlib.ForMathlib.Data.Matrix.Mul.