NLA-lib Explorer

Singular values

Library · Source module

Singular values

NLAlib.singularValues A k is \sigma_k(\mathbf{A}), the k-th largest singular value of a matrix \mathbf{A} of any shape, indexed from 0, non-increasing, and 0 for k at least the rank of \mathbf{A}. It is Mathlib's LinearMap.singularValues of the map \mathbf{x} \mapsto \mathbf{A}\mathbf{x} between Euclidean spaces, as a function ℕ → ℝ; NLAlib.singularValues_eq_linearMap is the bridge, by rfl.

The largest singular value is \sigma_0(\mathbf{A}) = \|\mathbf{A}\|_2. For a matrix with columns indexed by n, the smallest singular value is \sigma_k(\mathbf{A}) with k + 1 = \lvert n \rvert; it is positi\mathbf{v}e e\mathbf{x}actly when \mathbf{A} has full column rank. The zeros beyond the rank are padding, so an index quantified by ∃, or by ∀ in a hypothesis, needs a range: ∃ k, singularValues A k < 1 holds for every matrix. See the module docstring of NLAlib/Matrix/Spectral/Eigenvalues.lean.

Main definitions

* NLAlib.singularValues: the sorted, zero-padded singular values.

Main results

* NLAlib.singularValues_sq: \sigma_k(\mathbf{A})^2 = \lambda_k(\mathbf{A}^{\mathsf{H}}\mathbf{A}), for every k. * NLAlib.singularValues_pos_iff: positivity exactly below the rank. * NLAlib.singularValues_zero_eq_specNorm, NLAlib.frobNorm_sq_eq_sum_singularValues_sq: the two norms in terms of singular values. * NLAlib.HasOrthonormalCols.singularValues_mul_left: invariance under orthonormal factors. * NLAlib.le_singularValues_of_forall_mem, NLAlib.singularValues_le_of_forall_mem: the variational bounds. * NLAlib.exists_submodule_singularValues_mul_norm_le, NLAlib.exists_submodule_norm_mulVec_le: the subspaces attaining them. * NLAlib.singularValues_last_mul_norm_le: the smallest singular value bounds \|\mathbf{A}\mathbf{x}\| below. * NLAlib.singularValues_conjTranspose_mul_self, NLAlib.singularValues_mul_conjTranspose_self: the singular values of a Gram matrix are the squared singular values. * NLAlib.HasOrthonormalCols.eigenvalue_mul_mul_conjTranspose: a frame conjugation of a positive semidefinite matrix keeps its eigenvalue sequence.

Declarations