NLAlib.isLeastSquaresSolution_iff_isMinOn
Library · theorem
A least-squares solution is a global minimiser of the residual norm, in Mathlib's vocabulary. The constrained problem, minimising over a subspace K as Krylov methods do, is IsMinOn (fun y => ‖WithLp.toLp 2 (b - A *ᵥ y)‖) K x; it has no separate predicate.
NLAlib.isLeastSquaresSolution_iff_isMinOn.{u_1, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_3}
{n : Type u_4} [Fintype m] [Fintype n] {A : Matrix m n 𝕜} {b : m → 𝕜} {x : n → 𝕜} :
IsLeastSquaresSolution A b x ↔ IsMinOn (fun y ↦ ‖WithLp.toLp 2 (b - A *ᵥ y)‖) Set.univ xImport NLAlib.Matrix.Pseudoinverse.LeastSquares.