NLA-lib Explorer

NLAlib.isLeast_frobNorm_sub_smul_sq

Library · theorem

Headline of procrustes-scaled General form: sizes are index types

The nearest scaled isometry in Frobenius norm. For \mathbf{A} \in \Bbbk^{m \times n} with \lvert n \rvert \le \lvert m \rvert, the least value of \|\mathbf{A} - c\mathbf{U}\|_{\mathsf{F}}^2 over all c \in \mathbb{R} and all \mathbf{U} \in \Bbbk^{m \times n} with orthonormal columns is \|\mathbf{A}\|_{\mathsf{F}}^2 - \frac{\|\mathbf{A}\|_*^2}{\lvert n \rvert}\,. It is attained by an isometric polar extension scaled by the average singular value. This includes negative competing scales and rank-deficient matrices. For empty columns the minimum is zero, with division by zero interpreted as zero. No uniqueness is asserted. [HornJohnson2013, §7.4.4], the square case; here generalized to rectangular matrices over any RCLike field and arbitrary finite index types, including empty columns. Generalizes NLAlib.isLeast_frobSq_sub_scaled_orthogonal and NLAlib.isLeast_frobSq_sub_scaled_orthogonal_of_isEmpty from the original NLAlib formal library, NLAlib.Matrix.Factorizations.ScaledOrthogonal, commit 77514ce42a0e437d837797a063ac161f41022730, from square real to rectangular RCLike matrices, combining the nonempty and empty cases. Result: procrustes-scaled

NLAlib.isLeast_frobNorm_sub_smul_sq.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2}
  {n : Type u_3} [Fintype m] [Fintype n] [DecidableEq n] (A : Matrix m n 𝕜)
  (hcard : Fintype.card n ≤ Fintype.card m) :
  IsLeast {z | ∃ c U, HasOrthonormalCols U ∧ frobNorm (A - c • U) ^ 2 = z}
    (frobNorm A ^ 2 - nuclearNorm A ^ 2 / ↑(Fintype.card n))

Full source on GitHub

Import NLAlib.Matrix.Factorizations.Procrustes.

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.