NLA-lib Explorer

The singular value decomposition

Library · Source module

The singular value decomposition

NLAlib.IsSVD A U σ V says that \mathbf{A} = \mathbf{U} \operatorname{diag}(\boldsymbol{\sigma}) \mathbf{V}^{\mathsf{H}} with \mathbf{U} and \mathbf{V} having orthonormal columns and \boldsymbol{\sigma} nonnegative. The columns are indexed by an arbitrary finite type r, so the predicate covers the compact SVD, the thin SVD and partial decompositions, and with r a sum type and Matrix.fromCols it expresses the splitting of \mathbf{A} into two blocks of singular triples. The factors need not be square and no rectangular diagonal matrix appears. A full SVD with unitary factors is obtained from a thin one by orthonormal completion (NLAlib.HasOrthonormalCols.exists_fromCols).

\boldsymbol{\sigma} is not required to be sorted. When the columns are indexed by Fin k and \boldsymbol{\sigma} is non-increasing, \boldsymbol{\sigma} is the sequence of singular values (NLAlib.IsSVD.singularValues_eq).

The library's chosen thin SVD of a matrix, NLAlib.svdU A and NLAlib.svdV A, is the lexicographically least one in fixed real coordinates; NLAlib.truncatedSVD is built from it.

Main definitions

* NLAlib.IsSVD: the thin singular value decomposition, as a predicate. * NLAlib.svdU, NLAlib.svdV: the factors of the chosen thin SVD.

Main results

* NLAlib.exists_isSVD: every matrix has an SVD with k columns, for every k between its rank and its smaller dimension, with \boldsymbol{\sigma} the singular values. * NLAlib.isSVD_svdU_svdV, NLAlib.IsSVD.toLex_equivFun_svdU_svdV_le: the chosen SVD is an SVD, and the lexicographically least one. * NLAlib.IsSVD.singularValues_eq, NLAlib.IsSVD.exists_equiv_singularValues_eq: the entries of \boldsymbol{\sigma} are the singular values. * NLAlib.IsSVD.rank_eq, NLAlib.IsSVD.specNorm_eq, NLAlib.IsSVD.frobNorm_sq_eq: rank and norms from any SVD; NLAlib.IsSVD.frobInner_eq for two matrices with the same singular vectors. * NLAlib.IsSVD.conjTranspose, NLAlib.IsSVD.mul_left, NLAlib.IsSVD.reindex: stability. * NLAlib.IsSVD.eq_add, NLAlib.exists_isSVD_fromCols: splitting into two blocks. * Matrix.IsHermitian.exists_equiv_abs_eigenvalue_eq_singularValues: the singular values of a Hermitian matrix are the absolute values of its eigenvalues. * NLAlib.HasOrthonormalCols.singularValues_eq_one: the singular values of an isometry.

Declarations