NLAlib.norm_toLp_sq_eq_add_one_sub_rangeProjector
Library · theorem
Pythagoras for a vector and a column space: \|\mathbf{x}\|^2 = \|\mathbf{P}_{\mathbf{B}}\mathbf{x}\|^2 + \|(\mathbf{I} - \mathbf{P}_{\mathbf{B}})\mathbf{x}\|^2. [TrefethenBau1997, Lecture 6] (locator to check).
NLAlib.norm_toLp_sq_eq_add_one_sub_rangeProjector.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜]
{m : Type u_2} {n : Type u_3} [Fintype m] [Fintype n] [DecidableEq m] (B : Matrix m n 𝕜)
(x : m → 𝕜) :
‖WithLp.toLp 2 x‖ ^ 2 =
‖WithLp.toLp 2 (rangeProjector B *ᵥ x)‖ ^ 2 + ‖WithLp.toLp 2 ((1 - rangeProjector B) *ᵥ x)‖ ^ 2Import NLAlib.Matrix.Basic.ComplementaryProjector.