Theorem (HasOrthonormalCols.eq_arnoldiMatrix_of_isUpperHessenberg). Arnoldi basis of a Hessenberg reduction. With positive real subdiagonal entries, the unitary factor is exactly \mathsf{arnoldiMatrix}(\mathbf{A},\mathbf{Q}_{:,0},k+1). [GolubVanLoan2013, §7.4.3].
Headline (provisional)
Lean statement and details
NLAlib.HasOrthonormalCols.eq_arnoldiMatrix_of_isUpperHessenberg.{u_1} {𝕜 : Type u_1} [RCLike 𝕜]
{k : ℕ} {A Q : Matrix (Fin (k + 1)) (Fin (k + 1)) 𝕜} (hQ : HasOrthonormalCols Q)
(hH : IsUpperHessenberg (Qᴴ * A * Q)) (hpos : ∀ (i : Fin k), 0 < (Qᴴ * A * Q) i.succ i.castSucc) :
Q = arnoldiMatrix A (Q.col 0) (k + 1)