NLA-lib Explorer

Matrix.integral_trace

Library · theorem

The trace commutes with the integral: for integrable \mathbf{X}, \mathbb{E}\operatorname{tr}\mathbf{X} = \operatorname{tr}\mathbb{E}\mathbf{X}.

Matrix.integral_trace.{u_1, u_2, u_5} {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω}
  {𝕜 : Type u_2} [RCLike 𝕜] {n : Type u_5} [Fintype n] [DecidableEq n] {X : Ω → Matrix n n 𝕜}
  (hX : Integrable X μ) : ∫ (ω : Ω), (X ω).trace ∂μ = (∫ (ω : Ω), X ω ∂μ).trace

Full source on GitHub

Import NLAlib.ForMathlib.MeasureTheory.SpecificCodomains.Matrix.