NLA-lib Explorer

The trace inequality for Hermitian matrices

Library Β· Result group

Theorem (Matrix.IsHermitian.re_trace_mul_le_sum_eigenvalue_mul). The trace inequality for Hermitian matrices. \operatorname{Re} \operatorname{tr}(\mathbf{A}\mathbf{B}) \le \sum_{i < \lvert n \rvert} \lambda_i(\mathbf{A}) \, \lambda_i(\mathbf{B}) \,, the eigenvalues of each matrix in non-increasing order. [HornJohnson2013, Theorem 4.3.53].

Headline (provisional) General form: sizes are index types

Lean statement and details
Matrix.IsHermitian.re_trace_mul_le_sum_eigenvalue_mul.{u_1, u_3} {π•œ : Type u_1} [RCLike π•œ]
  {n : Type u_3} [Fintype n] {A B : Matrix n n π•œ} (hA : A.IsHermitian) (hB : B.IsHermitian) :
  RCLike.re (A * B).trace ≀ βˆ‘ i ∈ Finset.range (Fintype.card n), eigenvalue A i * eigenvalue B i

Full source on GitHub

Copy link

Other forms

Theorem (abs_frobInner_le_sum_singularValues_mul). von Neumann's trace inequality for the Frobenius inner product: \lvert \langle \mathbf{A}, \mathbf{B} \rangle_{\mathsf{F}} \rvert \le \sum_{i < \min(\lvert m \rvert, \lvert n \rvert)} \sigma_i(\mathbf{A}) \, \sigma_i(\mathbf{B}). [HornJohnson2013, Theorem 7.4.1.1].

General form: sizes are index types

Lean statement and details
NLAlib.abs_frobInner_le_sum_singularValues_mul.{u_1, u_2, u_3} {π•œ : Type u_1} [RCLike π•œ]
  {m : Type u_2} {n : Type u_3} [Fintype m] [Fintype n] (A B : Matrix m n π•œ) :
  |frobInner A B| ≀
    βˆ‘ i ∈ Finset.range (min (Fintype.card m) (Fintype.card n)),
      singularValues A i * singularValues B i

Full source on GitHub

Copy link

Theorem (norm_trace_conjTranspose_mul_le_sum_singularValues_mul). von Neumann's trace inequality. \lvert \operatorname{tr}(\mathbf{A}^{\mathsf{H}}\mathbf{B}) \rvert \le \sum_{i < \min(\lvert m \rvert, \lvert n \rvert)} \sigma_i(\mathbf{A}) \, \sigma_i(\mathbf{B}) \,. [HornJohnson2013, Theorem 7.4.1.1].

General form: sizes are index types

Lean statement and details
NLAlib.norm_trace_conjTranspose_mul_le_sum_singularValues_mul.{u_1, u_2, u_3} {π•œ : Type u_1}
  [RCLike π•œ] {m : Type u_2} {n : Type u_3} [Fintype m] [Fintype n] (A B : Matrix m n π•œ) :
  β€–(Aα΄΄ * B).traceβ€– ≀
    βˆ‘ i ∈ Finset.range (min (Fintype.card m) (Fintype.card n)),
      singularValues A i * singularValues B i

Full source on GitHub

Copy link

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.