NLAlib.pinv_submatrix_mulVec_single_eq_backSubst
Library · theorem
This statement changed in the recorded rename: 2026-10-rules.
The progressive form: step k solves the leading least-squares problem. For an upper Hessenberg (q + 1) \times q matrix \mathbf{H} and k \le q, if the leading (k + 1) \times k block has full column rank (a hypothesis on the input, equivalent to nonzero pivots by forall_givensHessenbergR_apply_self_ne_zero_iff), the least-squares solution \mathbf{H}_k^{+}\mathbf{e}_0 of the leading (k + 1) \times k block is back substitution with the leading k \times k block of the rotated matrix and the first k entries of the rotated \mathbf{e}_0. Later steps do not change these blocks, so the problems of all sizes are solved along the way. [Saad2003, §6.5.3]; locator to verify.
NLAlib.pinv_submatrix_mulVec_single_eq_backSubst.{u_1} {𝕜 : Type u_1} [RCLike 𝕜] {q : ℕ}
{H : Matrix (Fin (q + 1)) (Fin q) 𝕜} (hH : IsUpperHessenberg H) {k : ℕ} (hk : k ≤ q)
(hk₁ : k + 1 ≤ q + 1)
(hHk : Function.Injective (H.submatrix (Fin.castLE hk₁) (Fin.castLE hk)).mulVec) :
pinv (H.submatrix (Fin.castLE hk₁) (Fin.castLE hk)) *ᵥ Pi.single 0 1 =
backSubst
((givensHessenbergState H k).2.submatrix (fun i ↦ Fin.castLE hk₁ i.castSucc) (Fin.castLE hk))
fun i ↦ ((givensHessenbergState H k).1ᴴ *ᵥ Pi.single 0 1) (Fin.castLE hk₁ i.castSucc)Import NLAlib.Matrix.Factorizations.GivensHessenberg.