Theorem (Matrix.IsHermitian.exists_re_trace_conjTranspose_mul_mul_eq_sum_eigenvalue).Ky Fan's maximum principle, equality case. The maximum is attained by the leading eigenvectors: for Hermitian \mathbf{A} and k \le \lvert n \rvert there is \mathbf{Q} with k orthonormal columns and \operatorname{Re} \operatorname{tr}(\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}) = \sum_{i < k} \lambda_i(\mathbf{A}).
Headline (provisional)General form: sizes are index types
Lean statement and details
Matrix.IsHermitian.exists_re_trace_conjTranspose_mul_mul_eq_sum_eigenvalue.{u_1, u_3} {๐ : Type u_1}
[RCLike ๐] {n : Type u_3} [Fintype n] {A : Matrix n n ๐} (hA : A.IsHermitian) {k : โ}
(hk : k โค Fintype.card n) :
โ Q, HasOrthonormalCols Q โง RCLike.re (Qแดด * A * Q).trace = โ i โ Finset.range k, eigenvalue A i
Theorem (Matrix.IsHermitian.re_trace_conjTranspose_mul_mul_le_sum_eigenvalue).Ky Fan's maximum principle. For Hermitian \mathbf{A} and \mathbf{Q} with orthonormal columns indexed by p, the trace of the compression is at most the sum of the \lvert p \rvert largest eigenvalues: \operatorname{Re} \operatorname{tr}(\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}) \le \sum_{i < \lvert p \rvert} \lambda_i(\mathbf{A}) \,. [HornJohnson2013, Corollary 4.3.39]; stated there for the smallest eigenvalues and increasing order.
General form: sizes are index types
Lean statement and details
Matrix.IsHermitian.re_trace_conjTranspose_mul_mul_le_sum_eigenvalue.{u_1, u_3, u_4} {๐ : Type u_1}
[RCLike ๐] {n : Type u_3} {p : Type u_4} [Fintype n] [Fintype p] [DecidableEq p]
{A : Matrix n n ๐} (hA : A.IsHermitian) {Q : Matrix n p ๐} (hQ : HasOrthonormalCols Q) :
RCLike.re (Qแดด * A * Q).trace โค โ i โ Finset.range (Fintype.card p), eigenvalue A i
General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k โฅ 1.