Theorem (exists_forall_isUpperTriangular_inv_mul_mul_iff). Simultaneous triangularization by a similarity is equivalent to unitary triangularization. For an arbitrary family \mathbf{A}_i over the real or complex field \Bbbk, indexed by any type, there is an invertible \mathbf{V} with every \mathbf{V}^{-1}\mathbf{A}_i\mathbf{V} upper triangular if and only if there is a unitary \mathbf{U} with every \mathbf{U}^{\mathsf{H}}\mathbf{A}_i\mathbf{U} upper triangular. The matrix labels form a finite linearly ordered type, which may be empty; the family may be infinite and need not commute. Over \mathbb{R} the unitary matrix is orthogonal. No printed source. Generalized from tchen-research/NLAlib, commit 77514ce42a0e437d837797a063ac161f41022730, exists_simultaneous_triangular_similarity_iff_unitary, using the existing QR factorization.
Headline (provisional)
Lean statement and details
NLAlib.exists_forall_isUpperTriangular_inv_mul_mul_iff.{u_1, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
{ι : Type u_3} {n : Type u_4} [Fintype n] [DecidableEq n] [LinearOrder n] (A : ι → Matrix n n 𝕜) :
(∃ V, IsUnit V ∧ ∀ (i : ι), (V⁻¹ * A i * V).IsUpperTriangular) ↔
∃ U, HasOrthonormalCols U ∧ ∀ (i : ι), (Uᴴ * A i * U).IsUpperTriangular