NLA-lib Explorer

NLAlib.IsGSVD.rank_fromRows

Library · theorem

General form: sizes are index types

The active-coordinate count in a GSVD. For normalized generalized singular coordinates of \mathbf{A},\mathbf{B}, the rank of the stacked matrix \begin{\mathbf{b}matri\mathbf{x}}\mathbf{A}\\\mathbf{B}\end{\mathbf{b}matri\mathbf{x}} is the number of coordinates with c_i^2+s_i^2=1. Zero matrices and empty dimensions are included. [PaigeSaunders1981, pp. 398–405]; the rank statement is expressed through the normalized Gram coordinates without choosing an ordering. Result: gsvd-normalized-pair

NLAlib.IsGSVD.rank_fromRows.{u_1, u_2, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2}
  {n : Type u_3} {p : Type u_4} [Fintype m] [Fintype n] [Fintype p] [DecidableEq n]
  {A : Matrix m n 𝕜} {B : Matrix p n 𝕜} {X : Matrix n n 𝕜} {c s : n → ℝ} (h : IsGSVD A B X c s) :
  (A.fromRows B).rank = Fintype.card { i // c i ^ 2 + s i ^ 2 = 1 }

Full source on GitHub

Import NLAlib.Matrix.Factorizations.GeneralizedSVD.

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.