NLA-lib Explorer

EuclideanSpace.norm_toLp_const

Library · theorem

A constant coordinate vector has norm equal to the coordinate norm times the square root of the dimension, including dimension zero. This is the Euclidean specialization of PiLp.norm_toLp_const.

EuclideanSpace.norm_toLp_const.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
  (c : 𝕜) : ‖WithLp.toLp 2 fun x ↦ c‖ = √↑(Fintype.card n) * ‖c‖

Full source on GitHub

Import NLAlib.ForMathlib.Analysis.InnerProductSpace.PiL2.