NLA-lib Explorer

Matrix equations and stability

Sylvester and Lyapunov equations describe continuous-time relations between operators; Stein equations provide their discrete-time counterpart. Spectral separation and stability determine solvability and the behavior of matrix-power series. Numerical solution methods require additional algorithmic analysis.

Results

Theorem (Convergence to a fixed idempotent).

For an idempotent \mathbf{P} satisfying \mathbf{T}\mathbf{P}=\mathbf{P}\mathbf{T}=\mathbf{P}, \mathbf{T}^k\longrightarrow\mathbf{P}\quad\Longleftrightarrow\quad \rho(\mathbf{T}-\mathbf{P})<1\,. The idempotent may be oblique, and no normality or diagonalizability is required. No printed source. This is a consequence of the zero-limit power criterion. Adapted from tchen-research/NLAlib at 77514ce42a0e437d837797a063ac161f41022730, tendsto_matrix_pow_projector_of_deflated_spectralRadius_lt_one, generalized from real matrices to either scalar field and from an implication to an equivalence.

Lean statement and details
NLAlib.tendsto_pow_iff_specRadius_sub_lt_one.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2}
  [Fintype n] [DecidableEq n] (T P : Matrix n n ๐•œ) (hP : IsIdempotentElem P) (hTP : T * P = P)
  (hPT : P * T = P) : Filter.Tendsto (fun k โ†ฆ T ^ k) Filter.atTop (๐“ P) โ†” specRadius (T - P) < 1

Full source on GitHub

Copy link

Theorem (Gelfand's formula).

as k \to \infty, \|\mathbf{A}^k\|_2^{1/k} \to \rho(\mathbf{A})\,. [HornJohnson2013, Corollary 5.6.14].

Lean statement and details
NLAlib.tendsto_specNorm_pow_rpow_specRadius.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2}
  [Fintype n] [DecidableEq n] (A : Matrix n n ๐•œ) :
  Filter.Tendsto (fun k โ†ฆ specNorm (A ^ k) ^ (1 / โ†‘k)) Filter.atTop (๐“ (specRadius A))

Full source on GitHub

Copy link

Theorem (Landweber error multipliers).

For any singular value decomposition \mathbf{A}=\mathbf{U}\operatorname{diag}(\boldsymbol{\sigma})\mathbf{V}^{\mathsf{H}}, every real step size and every q\ge0, (\mathbf{I}-\eta\mathbf{A}^{\mathsf{H}}\mathbf{A})^q = \mathbf{I}-\mathbf{V}\mathbf{V}^{\mathsf{H}}+ \mathbf{V}\operatorname{diag}((1-\eta\boldsymbol{\sigma}_i^2)^q) \mathbf{V}^{\mathsf{H}}\,. The identity permits zero singular values and empty dimensions. [FesslerNadakuditi2024, ยงยง9.2โ€“9.2.3].

Lean statement and details
NLAlib.IsSVD.one_sub_smul_conjTranspose_mul_self_pow.{u_1, u_2, u_3, u_4} {๐•œ : Type u_1} [RCLike ๐•œ]
  {n : Type u_2} [Fintype n] [DecidableEq n] {m : Type u_3} {r : Type u_4} [Fintype m] [Fintype r]
  [DecidableEq r] {A : Matrix m n ๐•œ} {U : Matrix m r ๐•œ} {ฯƒ : r โ†’ โ„} {V : Matrix n r ๐•œ}
  (h : IsSVD A U ฯƒ V) (ฮท : โ„) (q : โ„•) :
  (1 - ฮท โ€ข (Aแดด * A)) ^ q = 1 - V * Vแดด + (V * diagonal fun i โ†ฆ โ†‘((1 - ฮท * ฯƒ i ^ 2) ^ q)) * Vแดด

Full source on GitHub

Copy link

Theorem (Lyapunov coercivity, unitarily invariant inverse estimate).

For a>0 and \tfrac12(\mathbf{A}+\mathbf{A}^{\mathsf{H}})\preceq-a\mathbf{I}, every matrix \mathbf{E} and every symmetric gauge \Phi satisfy \|\mathbf{E}\|_{\Phi}\le \frac{\|\mathbf{A}\mathbf{E}+\mathbf{E}\mathbf{A}^{\mathsf{H}}\|_{\Phi}}{2a}\,. This includes Frobenius, spectral, and nuclear norms without requiring Hermitian errors. Applying it to the difference between an exact and an approximate solution bounds the error by the residual. The constant is attained for \mathbf{A}=-a\mathbf{I} on a nonempty index type. No printed source. Generalizes the Frobenius and Hermitian spectral estimates in tchen-research/NLAlib at 77514ce42a0e437d837797a063ac161f41022730, frobNorm_le_lyapunov_div and specNorm_le_lyapunov_div.

Lean statement and details
NLAlib.SymmetricGauge.matrixNorm_le_div_of_hermitianPart_le.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ]
  {n : Type u_2} [Fintype n] [DecidableEq n] (ฮฆ : SymmetricGauge) {A : Matrix n n ๐•œ} {a : โ„}
  (ha : 0 < a) (hA : hermitianPart A โ‰ค -a โ€ข 1) (E : Matrix n n ๐•œ) :
  ฮฆ.matrixNorm E โ‰ค ฮฆ.matrixNorm (A * E + E * Aแดด) / (2 * a)

Full source on GitHub

Copy link

Theorem (Continuous Lyapunov equation, positivity).

If a>0, \tfrac12(\mathbf{A}+\mathbf{A}^{\mathsf{H}})\preceq-a\mathbf{I}, and \mathbf{Q} is positive semidefinite, every solution of \mathbf{A}\mathbf{X}+\mathbf{X}\mathbf{A}^{\mathsf{H}}=-\mathbf{Q} is positive semidefinite. The coefficient matrix may be nonnormal, and empty index types are included. No printed source. Adapted from tchen-research/NLAlib at 77514ce42a0e437d837797a063ac161f41022730, posSemidef_lyapunov_solution_of_quadratic_bound.

Lean statement and details
Matrix.PosSemidef.posSemidef_of_mul_add_mul_conjTranspose_eq_neg.{u_1, u_2} {๐•œ : Type u_1}
  [RCLike ๐•œ] {n : Type u_2} [Fintype n] [DecidableEq n] {A Q X : Matrix n n ๐•œ} (hQ : Q.PosSemidef)
  {a : โ„} (ha : 0 < a) (hA : hermitianPart A โ‰ค -a โ€ข 1) (hX : A * X + X * Aแดด = -Q) : X.PosSemidef

Full source on GitHub

Copy link

Theorem (Stein equation, unique solvability).

For \rho(\mathbf{A})<1 and every forcing \mathbf{Q}, there is exactly one \mathbf{X} satisfying \mathbf{X}-\mathbf{A}\mathbf{X}\mathbf{A}^{\mathsf{H}}=\mathbf{Q}. [Boyd2009, slide 13โ€“22] treats real matrices with symmetric forcing. The present statement allows arbitrary forcing over RCLike. Adapted from tchen-research/NLAlib commit 77514ce42a0e437d837797a063ac161f41022730.

Lean statement and details
NLAlib.existsUnique_sub_mul_mul_conjTranspose_eq.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2}
  [Fintype n] [DecidableEq n] (A Q : Matrix n n ๐•œ) (hA : specRadius A < 1) :
  โˆƒ! X, X - A * X * Aแดด = Q

Full source on GitHub

Copy link

Theorem (Stein series truncation, norm bound).

If \|\mathbf{A}\|_2\le q<1, then every unitarily invariant norm satisfies \left\|\sum_{j\ge0}\mathbf{A}^j\mathbf{Q}(\mathbf{A}^{\mathsf{H}})^j\right\|_{\Phi} \le \frac{\|\mathbf{Q}\|_{\Phi}}{1-q^2}\,. No printed source. Generalizes the spectral and Frobenius estimates of tchen-research/NLAlib commit 77514ce42a0e437d837797a063ac161f41022730.

Lean statement and details
NLAlib.SymmetricGauge.matrixNorm_tsum_pow_mul_mul_conjTranspose_le.{u_1, u_2} {๐•œ : Type u_1}
  [RCLike ๐•œ] {n : Type u_2} [Fintype n] [DecidableEq n] (ฮฆ : SymmetricGauge) {A Q : Matrix n n ๐•œ}
  {q : โ„} (hA : specNorm A โ‰ค q) (hq : q < 1) :
  ฮฆ.matrixNorm (โˆ‘' (j : โ„•), A ^ j * Q * Aแดด ^ j) โ‰ค ฮฆ.matrixNorm Q / (1 - q ^ 2)

Full source on GitHub

Copy link

Theorem (Discrete Lyapunov stability criterion).

A matrix over any RCLike field has spectral radius less than one exactly when there is a positive definite \mathbf{X} for which \mathbf{X}-\mathbf{A}\mathbf{X}\mathbf{A}^{\mathsf{H}} is positive definite. This includes the empty index type, where positive definiteness is vacuous and the spectral radius is zero. [Boyd2009, slides 13โ€“21 through 13โ€“23] gives the real case; extended here to RCLike. Generalizes and consolidates the real and complex versions of tchen-research/NLAlib commit 77514ce42a0e437d837797a063ac161f41022730.

Lean statement and details
NLAlib.specRadius_lt_one_iff_exists_posDef_sub_mul_mul_conjTranspose.{u_1, u_2} {๐•œ : Type u_1}
  [RCLike ๐•œ] {n : Type u_2} [Fintype n] [DecidableEq n] (A : Matrix n n ๐•œ) :
  specRadius A < 1 โ†” โˆƒ X, X.PosDef โˆง (X - A * X * Aแดด).PosDef

Full source on GitHub

Copy link

Theorem (Block intertwiners).

Suppose the characteristic polynomials of \mathbf{A}_i and \mathbf{B}_j are coprime whenever i\ne j. A matrix intertwines the block diagonal matrices with blocks \mathbf{A}_i and \mathbf{B}_i exactly when it is block diagonal with matching blocks \mathbf{X}_i satisfying \mathbf{A}_i\mathbf{X}_i=\mathbf{X}_i\mathbf{B}_i. The blocks \mathbf{X}_i may be rectangular or empty, over any field. [HornJohnson2013, Corollary 2.4.4.2]; generalized from spectral disjointness to coprimality. Adapted from tchen-research/NLAlib at 77514ce42a0e437d837797a063ac161f41022730, eq_blockDiagonal'_of_intertwines_of_disjoint_spectrum, strengthened to an equivalence.

Lean statement and details
NLAlib.blockDiagonal'_mul_eq_mul_blockDiagonal'_iff_of_isCoprime_charpoly.{u_1, u_4, u_5, u_6}
  {K : Type u_1} [Field K] {ฮน : Type u_4} [Fintype ฮน] [DecidableEq ฮน] {p : ฮน โ†’ Type u_5}
  {q : ฮน โ†’ Type u_6} [(i : ฮน) โ†’ Fintype (p i)] [(i : ฮน) โ†’ DecidableEq (p i)]
  [(i : ฮน) โ†’ Fintype (q i)] [(i : ฮน) โ†’ DecidableEq (q i)] (A : (i : ฮน) โ†’ Matrix (p i) (p i) K)
  (B : (i : ฮน) โ†’ Matrix (q i) (q i) K)
  (h : โˆ€ (i j : ฮน), i โ‰  j โ†’ IsCoprime (A i).charpoly (B j).charpoly)
  (X : Matrix ((i : ฮน) ร— p i) ((i : ฮน) ร— q i) K) :
  blockDiagonal' A * X = X * blockDiagonal' B โ†”
    X = blockDiagonal' X.blockDiag' โˆง โˆ€ (i : ฮน), A i * X.blockDiag' i = X.blockDiag' i * B i

Full source on GitHub

Copy link

Used by algorithms

Broader topics