NLA-lib Explorer

NLAlib.sub_vecMulVec_mulVec_eq_zero

Library · theorem

Subtracting the rank-at-most-one outer product along a unit direction whose last coordinate is nonzero makes the corrected system consistent at the associated finite solution.

NLAlib.sub_vecMulVec_mulVec_eq_zero.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2}
  {n : Type u_3} [Fintype n] (C : Matrix m (n ⊕ Unit) 𝕜) {v : n ⊕ Unit → 𝕜}
  (hv : ‖WithLp.toLp 2 v‖ = 1) (hl : v (Sum.inr ()) ≠ 0) :
  (C - vecMulVec (C *ᵥ v) (star v)) *ᵥ ((fun i ↦ -v (Sum.inl i) / v (Sum.inr ())) ⊕ᵥ fun x ↦ -1) = 0

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.TotalLeastSquares.