NLA-lib Explorer

Matrix.IsHermitian.re_trace_smul_one_add_cfc_sign

Library · theorem

The trace of a spectral projector is the inertia: for Hermitian \mathbf{A} and c not an eigenvalue, \operatorname{Re}\operatorname{tr}\tfrac12(\mathbf{I} + \operatorname{sign}(\mathbf{A} - c\mathbf{I})) = i_+(\mathbf{A} - c\mathbf{I}). [Shah2024, proof of Lemma 4.1].

Matrix.IsHermitian.re_trace_smul_one_add_cfc_sign.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {c : ℝ}
  (hc : ∀ x ∈ spectrum ℝ A, x ≠ c) :
  RCLike.re (2⁻¹ • (1 + cfc Real.sign (A - c • 1))).trace = ↑(inertiaPos (A - c • 1))

Full source on GitHub

Import NLAlib.Matrix.Functions.Sign.