Theorem (HasOrthonormalCols.exists_eq_mul_diagonal_of_isUpperHessenberg). The implicit Q theorem. If \mathbf{H}_1 = \mathbf{Q}_1^{\mathsf{H}}\mathbf{A}\mathbf{Q}_1 and \mathbf{H}_2 = \mathbf{Q}_2^{\mathsf{H}}\mathbf{A}\mathbf{Q}_2 are upper Hessenberg with \mathbf{Q}_1, \mathbf{Q}_2 unitary with the same first column, and the subdiagonal of \mathbf{H}_1 has no zero, then \mathbf{Q}_2 = \mathbf{Q}_1\mathbf{D} and \mathbf{H}_2 = \mathbf{D}^{\mathsf{H}}\mathbf{H}_1\mathbf{D} for a diagonal \mathbf{D} whose entries have unit modulus, the first one being 1. [GolubVanLoan2013, Theorem 7.4.2].
Headline
Lean statement and details
NLAlib.HasOrthonormalCols.exists_eq_mul_diagonal_of_isUpperHessenberg.{u_1} {𝕜 : Type u_1}
[RCLike 𝕜] {n : ℕ} {A Q₁ Q₂ : Matrix (Fin (n + 1)) (Fin (n + 1)) 𝕜} (hQ₁ : HasOrthonormalCols Q₁)
(hQ₂ : HasOrthonormalCols Q₂) (hH₁ : IsUnreducedHessenberg (Q₁ᴴ * A * Q₁))
(hH₂ : IsUpperHessenberg (Q₂ᴴ * A * Q₂)) (hcol : Q₁.col 0 = Q₂.col 0) :
∃ d,
(∀ (i : Fin (n + 1)), ‖d i‖ = 1) ∧
d 0 = 1 ∧
Q₂ = Q₁ * diagonal d ∧ Q₂ᴴ * A * Q₂ = diagonal (star d) * (Q₁ᴴ * A * Q₁) * diagonal d