NLAlib.isTotalLeastSquaresSolution_iff_eq_of_lt_singularValues
Library · theorem
This statement changed in the recorded rename: 2026-11-total-least-squares.
General form: sizes are index types
Generic total least squares solution. Let \mu be the smallest eigenvalue of the Gram matrix of [\mathbf{A}\ \mathbf{b}]. If \mu is strictly smaller than the least eigenvalue of \mathbf{A}^{\mathsf{H}}\mathbf{A}, the unique solution is (\mathbf{A}^{\mathsf{H}}\mathbf{A}- \mu\mathbf{I})^{-1}\mathbf{A}^{\mathsf{H}}\mathbf{b}. [GolubVanLoan2013, §6.3]. Result: total-least-squares-svd
NLAlib.isTotalLeastSquaresSolution_iff_eq_of_lt_singularValues.{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 𝕜) (b : m → 𝕜) (x : n → 𝕜) {k : ℕ} (hk : k + 1 = Fintype.card n)
(hgap : singularValues (A.fromCols (replicateCol Unit b)) (Fintype.card n) < singularValues A k) :
IsTotalLeastSquaresSolution A b x ↔
x =
(Aᴴ * A - singularValues (A.fromCols (replicateCol Unit b)) (Fintype.card n) ^ 2 • 1)⁻¹ *ᵥ
Aᴴ *ᵥ bImport NLAlib.Matrix.Pseudoinverse.TotalLeastSquares.
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.