Theorem (IsEigenvalueListing.exists_hasOrthonormalCols_isUpperTriangular). Schur triangularisation with a prescribed diagonal. If \mathbf{d} lists the eigenvalues of \mathbf{A}, there is a unitary \mathbf{U} with \mathbf{U}^{\mathsf{H}}\mathbf{A}\mathbf{U} upper triangular with diagonal \mathbf{d}, in the given order: (\mathbf{U}^{\mathsf{H}}\mathbf{A}\mathbf{U})_{i,i} = \mathbf{d}_i. Over \mathbb{R} this is orthogonal triangularisation of a matrix with real eigenvalues. [HornJohnson2013, Theorem 2.3.1].
Headline
Lean statement and details
NLAlib.IsEigenvalueListing.exists_hasOrthonormalCols_isUpperTriangular.{u_1, u_4} {𝕜 : Type u_1}
[RCLike 𝕜] {n : Type u_4} [Fintype n] [DecidableEq n] [LinearOrder n] {A : Matrix n n 𝕜}
{d : n → 𝕜} (hd : IsEigenvalueListing A d) :
∃ U, HasOrthonormalCols U ∧ (Uᴴ * A * U).IsUpperTriangular ∧ ∀ (i : n), (Uᴴ * A * U) i i = d i