Theorem (convexOn_re_trace_cfc). A convex function gives a convex trace function: for f convex on s, the function \mathbf{A} \mapsto \operatorname{Re} \operatorname{tr} f(\mathbf{A}) is convex on the Hermitian matrices with spectrum in s. [Carlen2010, Theorem 2.10]; [Bhatia1997, Problem IX.8.14 context].
Headline
Lean statement and details
NLAlib.convexOn_re_trace_cfc.{u_1, u_3} {๐ : Type u_1} [RCLike ๐] {n : Type u_3} [Fintype n]
[DecidableEq n] {f : โ โ โ} {s : Set โ} (hf : ConvexOn โ s f) :
ConvexOn โ {A | A.IsHermitian โง spectrum โ A โ s} fun A โฆ RCLike.re (cfc f A).trace