NLA-lib Explorer

Matrix.IsHermitian.isGreatest_re_trace_exp_add_cfc_log

Library · theorem

The variational formula behind Lieb's theorem: for Hermitian \mathbf{H}, \operatorname{tr} \exp(\mathbf{H} + \log(\mathbf{A})) = \max_{\mathbf{T}} \bigl[\operatorname{tr}(\mathbf{T}\mathbf{H}) + \operatorname{tr} \mathbf{A} - D(\mathbf{T}; \mathbf{A})\bigr] over positive definite \mathbf{T}, traces through their real parts. The formula needs no hypothesis on \mathbf{A}; it is used for positive definite \mathbf{A}. [Tropp2015, §8.3].

Matrix.IsHermitian.isGreatest_re_trace_exp_add_cfc_log.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} [Fintype n] [DecidableEq n] {H : Matrix n n 𝕜} (hH : H.IsHermitian)
  (A : Matrix n n 𝕜) :
  IsGreatest
    ((fun T ↦ RCLike.re (T * H).trace + RCLike.re A.trace - relativeEntropy T A) '' {T | T.PosDef})
    (RCLike.re (NormedSpace.exp (H + cfc Real.log A)).trace)

Full source on GitHub

Import NLAlib.Matrix.Functions.Lieb.