Bilinear forms as dot products of flattened matrices; products through leading columns
Library · Source module
Bilinear forms as dot products of flattened matrices; products through leading columns
The bilinear form \mathbf{x}^{\mathsf{T}}\mathbf{G}\mathbf{y} is the dot product of the flattened matrix (\mathbf{G}_{i,j})_{(i,j)} (Function.uncurry G) with the flattened outer product (\mathbf{x}_i \mathbf{y}_j)_{(i,j)}, and dot products of flattened outer products factor. Together they turn a bilinear form of a random matrix into a linear form of its entries (Gaussian comparison for random matrices). A matrix whose columns from k on vanish acts through its first k columns (the Krylov realisations past the grade). Powers of the two products \mathbf{C}\mathbf{D} and \mathbf{D}\mathbf{C} of rectangular matrices intertwine (block Krylov matrices). Upstream candidates for Mathlib.Data.Matrix.Mul.
Main results
* Matrix.dotProduct_mulVec_eq_dotProduct_uncurry: \mathbf{x}^{\mathsf{T}}\mathbf{G}\mathbf{y} as a dot product with Function.uncurry G. * Matrix.mulVec_eq_submatrix_castLE_mulVec: a product through the leading k columns. * Matrix.mul_pow_mul: (\mathbf{C}\mathbf{D})^j\mathbf{C} = \mathbf{C}(\mathbf{D}\mathbf{C})^j. * dotProduct_mul_eq_mul_dotProduct: the dot product of two flattened outer products is (\mathbf{x}^{\mathsf{T}}\mathbf{x}') (\mathbf{y}^{\mathsf{T}}\mathbf{y}').