NLAlib.HasOrthonormalCols.re_trace_cfc_mul_cfc_eq_sum
Library ยท theorem
The overlap formula: if \mathbf{A} = \mathbf{U}\operatorname{diag}(\mathbf{a})\mathbf{U}^{\mathsf{H}} and \mathbf{B} = \mathbf{V}\operatorname{diag}(\mathbf{b})\mathbf{V}^{\mathsf{H}} with \mathbf{a}, \mathbf{b} real and \mathbf{U}, \mathbf{V} unitary (orthonormal columns, as many columns as rows), then \operatorname{Re} \operatorname{tr}(f(\mathbf{A}) g(\mathbf{B})) = \sum_{i, j} \lvert (\mathbf{U}^{\mathsf{H}}\mathbf{V})_{i,j} \rvert^2 f(\mathbf{a}_i) g(\mathbf{b}_j) \,.
NLAlib.HasOrthonormalCols.re_trace_cfc_mul_cfc_eq_sum.{u_1, u_2, u_3, u_4} {๐ : Type u_1} [RCLike ๐]
{n : Type u_2} [Fintype n] [DecidableEq n] {r : Type u_3} {s : Type u_4} [Fintype r] [Fintype s]
[DecidableEq r] [DecidableEq s] {A B : Matrix n n ๐} {U : Matrix n r ๐} {V : Matrix n s ๐}
{a : r โ โ} {b : s โ โ} (hU : HasOrthonormalCols U) (hV : HasOrthonormalCols V)
(hr : Fintype.card r = Fintype.card n) (hs : Fintype.card s = Fintype.card n)
(hA : A = (U * diagonal fun i โฆ โ(a i)) * Uแดด) (hB : B = (V * diagonal fun i โฆ โ(b i)) * Vแดด)
(f g : โ โ โ) :
RCLike.re (cfc f A * cfc g B).trace = โ i, โ j, โ(Uแดด * V) i jโ ^ 2 * (f (a i) * g (b j))Import NLAlib.Matrix.Functions.TracePowers.