NLA-lib Explorer

Gram matrices

Library · Source module

Gram matrices

The Gram matrix of \mathbf{A} is \mathbf{A}^{\mathsf{H}}\mathbf{A}; it has no definition of its own. Mathlib has its positive semidefiniteness (Matrix.posSemidef_conjTranspose_mul_self), rank (Matrix.rank_conjTranspose_mul_self) and kernel (Matrix.ker_mulVecLin_conjTranspose_mul_self). This file adds the entries of \mathbf{A}^{\mathsf{H}}\mathbf{B}, of the Gram matrix and of a compression \mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q} as pairings of columns, the characterisations of invertibility, and two identities for a matrix scaled as a sketch: its action on a vector row by row, and its Gram matrix.

"Full column rank" is spelled Function.Injective A.mulVec throughout the library, the hypothesis of Mathlib's Matrix.PosDef.conjTranspose_mul_self. The equivalent forms IsUnit (Aᴴ * A) and A.rank = Fintype.card n are reached through the lemmas here.

Main results

* NLAlib.conjTranspose_mul_apply, NLAlib.conjTranspose_mul_self_apply, NLAlib.conjTranspose_mul_mul_apply: entries as pairings of columns. * NLAlib.isUnit_conjTranspose_mul_self_iff: \mathbf{A}^{\mathsf{H}}\mathbf{A} is invertible iff \mathbf{x} \mapsto \mathbf{A}\mathbf{x} is injective. * NLAlib.mulVec_injective_iff_rank_eq: \mathbf{x} \mapsto \mathbf{A}\mathbf{x} is injective iff \operatorname{rank} \mathbf{A} is the number of columns. * NLAlib.posDef_conjTranspose_mul_self_iff: \mathbf{A}^{\mathsf{H}}\mathbf{A} is positive definite iff \mathbf{x} \mapsto \mathbf{A}\mathbf{x} is injective. * NLAlib.conjTranspose_mul_self_eq_gram: the bridge to Mathlib's Matrix.gram. * NLAlib.dotProduct_mul_conjTranspose_inv_mulVec_nonneg: the inverse Gram matrix of a real matrix is positive semidefinite, as a quadratic form. * NLAlib.norm_inv_sqrt_card_smul_mulVec_sq, NLAlib.conjTranspose_mul_self_sqrt_card_div_smul_conjTranspose_mul: a matrix scaled as a sketch, on a vector and in its Gram matrix.

Declarations