NLA-lib Explorer

NLAlib.re_quadForm_real_smul_one

Library · theorem

The real quadratic form of a real multiple a\mathbf{I} of the identity, written with the real scalar action, is that multiple of the squared Euclidean norm: \operatorname{Re}(\mathbf{x}^{\mathsf{H}}(a\mathbf{I})\mathbf{x}) = a\|\mathbf{x}\|^2.

NLAlib.re_quadForm_real_smul_one.{u_1, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_3} [Fintype n]
  [DecidableEq n] (a : ℝ) (x : n → 𝕜) : RCLike.re (quadForm (a • 1) x) = a * ‖WithLp.toLp 2 x‖ ^ 2

Full source on GitHub

Import NLAlib.Matrix.Basic.QuadForm.