NLA-lib Explorer

NLAlib.IsSVD.eq_add

Library ยท theorem

An SVD whose singular triples are split into two groups writes \mathbf{A} as a sum of two pieces with mutually orthogonal factors: if [\mathbf{U}_1 \; \mathbf{U}_2], (\boldsymbol{\sigma}_1, \boldsymbol{\sigma}_2), [\mathbf{V}_1 \; \mathbf{V}_2] is an SVD of \mathbf{A}, then \mathbf{A} = \mathbf{U}_1 \operatorname{diag}(\boldsymbol{\sigma}_1) \mathbf{V}_1^{\mathsf{H}} + \mathbf{U}_2 \operatorname{diag}(\boldsymbol{\sigma}_2) \mathbf{V}_2^{\mathsf{H}}. This is the form in which Wedin's theorem and the analysis of truncation consume an SVD.

NLAlib.IsSVD.eq_add.{u_1, u_3, u_4, u_6, u_7} {๐•œ : Type u_1} [RCLike ๐•œ] {m : Type u_3}
  {n : Type u_4} {rโ‚ : Type u_6} {rโ‚‚ : Type u_7} [Fintype m] [Fintype n] [Fintype rโ‚] [Fintype rโ‚‚]
  [DecidableEq rโ‚] [DecidableEq rโ‚‚] {A : Matrix m n ๐•œ} {Uโ‚ : Matrix m rโ‚ ๐•œ} {Uโ‚‚ : Matrix m rโ‚‚ ๐•œ}
  {ฯƒโ‚ : rโ‚ โ†’ โ„} {ฯƒโ‚‚ : rโ‚‚ โ†’ โ„} {Vโ‚ : Matrix n rโ‚ ๐•œ} {Vโ‚‚ : Matrix n rโ‚‚ ๐•œ}
  (h : IsSVD A (Uโ‚.fromCols Uโ‚‚) (ฯƒโ‚ โŠ•แตฅ ฯƒโ‚‚) (Vโ‚.fromCols Vโ‚‚)) :
  A = (Uโ‚ * diagonal fun i โ†ฆ โ†‘(ฯƒโ‚ i)) * Vโ‚แดด + (Uโ‚‚ * diagonal fun i โ†ฆ โ†‘(ฯƒโ‚‚ i)) * Vโ‚‚แดด

Full source on GitHub

Import NLAlib.Matrix.Spectral.SVD.