NLA-lib Explorer

Pseudospectral shattering and Gaussian regularization

A matrix can have eigenvalues that are arbitrarily ill conditioned, or no basis of eigenvectors at all. A small random perturbation removes both problems with high probability. For a deterministic \mathbf{M} of order n, a scale \gamma>0 and a standard complex Gaussian matrix \mathbf{G} (independent entries of mean square modulus one), the perturbation

\mathbf{M}+\gamma n^{-1/2}\mathbf{G}

has, outside an event of small probability, simple eigenvalues with all gaps above t and an eigenvector matrix \mathbf{V} with \|\mathbf{V}\|_2\|\mathbf{V}^{-1}\|_2\le1/t. This is pseudospectral shattering (Banks, Garza-Vargas, Kulkarni and Srivastava): the \varepsilon-pseudospectrum splits into small components, one around each eigenvalue. Randomized eigensolvers such as the randomized shifted inverse iteration of BGS III perturb their input in this way, so that every later step can assume a diagonalizable matrix with a known condition number and eigenvalue separation.

The library proves the two tails in an elementary polynomial form. Its exponents are weaker than the printed ones, and the tails are stated so that sharper ones can replace them. This page collects the tails and the deterministic and probabilistic facts they are built from. It is meant to grow as further results are added.

The two tails

Theorem (Eigenvalue gap of a Ginibre perturbation). Let \mathbf{G} be a standard complex Gaussian matrix of order n, \mathbf{M} deterministic, 0<2\gamma\le\|\mathbf{M}\|_2 and 0<t\le\gamma. Then

\mathbb{P}\bigl[\text{no eigenvalue listing of }\mathbf{M}+\gamma n^{-1/2}\mathbf{G}\text{ has }|\lambda_i-\lambda_j|>t\text{ for all }i\ne j\bigr]\le2048e\,n^{11/3}\Bigl(\frac t\gamma\Bigr)^{2/3}\Bigl(\frac{\|\mathbf{M}\|_2}{\gamma}+\log\frac{\gamma}{t}\Bigr)^2.

Lean statement and details
NLAlib.measureReal_not_exists_isEigenvalueListing_le_le_log_sq_of_hasLaw_complexGaussianMatrix.{u_1,
    u_2}
  {n : Type u_1} [Fintype n] [DecidableEq n] {Ω : Type u_2} [MeasurableSpace Ω] {μ : Measure Ω}
  {G : Ω → Matrix n n ℂ} (hG : HasLaw G (complexGaussianMatrix n n) μ) (M : Matrix n n ℂ) {γ t : ℝ}
  (hγ : 0 < γ) (hγM : 2 * γ ≤ specNorm M) (ht : 0 < t) (htγ : t ≤ γ) :
  μ.real
      {ω |
        ¬∃ d,
            IsEigenvalueListing (M + (γ / √↑(Fintype.card n)) • G ω) d ∧
              ∀ (i j : n), i ≠ j → t < ‖d i - d j‖} ≤
    2048 * rexp 1 * ↑(Fintype.card n) ^ (11 / 3) * (t / γ) ^ (2 / 3) *
      (specNorm M / γ + Real.log (γ / t)) ^ 2

Full source on GitHub

Copy link

This is a weaker polynomial form of Lemma B.1 of BGS III. The exponent of t/\gamma is 2/3 here and 2 in the source. The proof covers a disk containing the spectrum by a net of 36(R/t)^2 points. Two eigenvalues close to a net point force a small second-smallest singular value (see eigenvalue clustering below), whose tail is of fourth order. The proof then combines the condition tail below at the cutoff (\gamma/(nt))^{1/3}, which balances the net term against the condition tail, with a norm cutoff.

Theorem (Eigenvector condition number of a Ginibre perturbation). Let \mathbf{G} be a standard complex Gaussian matrix of order n, \mathbf{M} deterministic, 0<2\gamma\le\|\mathbf{M}\|_2 and 0<t\le1. Then

\mathbb{P}\bigl[\mathbf{M}+\gamma n^{-1/2}\mathbf{G}\text{ has no diagonalization }\mathbf{V}\operatorname{diag}(\mathbf{d})\mathbf{V}^{-1}\text{ with }\|\mathbf{V}\|_2\|\mathbf{V}^{-1}\|_2\le1/t\bigr]\le128e\,n^3t^2\Bigl(\frac{\|\mathbf{M}\|_2}{\gamma}+\log\frac1t\Bigr)^2.

Lean statement and details
NLAlib.measureReal_not_exists_pseudoConditionNumber_le_le_log_sq_of_hasLaw_complexGaussianMatrix.{u_1,
    u_2}
  {n : Type u_1} [Fintype n] [DecidableEq n] {Ω : Type u_2} [MeasurableSpace Ω] {μ : Measure Ω}
  {G : Ω → Matrix n n ℂ} (hG : HasLaw G (complexGaussianMatrix n n) μ) (M : Matrix n n ℂ) {γ t : ℝ}
  (hγ : 0 < γ) (hγM : 2 * γ ≤ specNorm M) (ht : 0 < t) (ht1 : t ≤ 1) :
  μ.real
      {ω |
        ¬∃ V d,
            IsUnit V ∧
              (M + (γ / √↑(Fintype.card n)) • G ω) * V = V * diagonal d ∧
                pseudoConditionNumber V ≤ t⁻¹} ≤
    128 * rexp 1 * ↑(Fintype.card n) ^ 3 * t ^ 2 * (specNorm M / γ + Real.log t⁻¹) ^ 2

Full source on GitHub

Copy link

This is Theorem 1.5 of Banks, Kulkarni, Mukherjee and Srivastava in a polynomial-tail form. The proof integrates the area of the \varepsilon-pseudospectrum inside a disk over the Gaussian law, using Fubini and the shifted smallest-singular-value tail. Fatou's lemma bounds the expected lower limit of the normalized areas. A matrix without a good diagonalizer has a large lower limit, by the pseudospectral area inequality, so Markov's inequality applies without choosing eigenvectors measurably.

Theorem (The diagonalization class, from the two tails). Let records c_1 and c_2 bound the gap tail and the condition tail. Let \gamma>0, 0<t_1\le\gamma and 0<t_2\le1, and put K=(\|\mathbf{M}\|_2+4\gamma)/\gamma. Then \mathbf{M}+\gamma n^{-1/2}\mathbf{G} has no diagonalization \mathbf{V}\operatorname{diag}(\mathbf{d})\mathbf{V}^{-1} with \|\mathbf{V}\|_2\|\mathbf{V}^{-1}\|_2\le1/t_2 and |d_i-d_j|\ge t_1 for i\ne j with probability at most

\bar C_1n^{\bar a_1}(t_1/\gamma)^{\bar \mathbf{b}_1}\bigl(K+\log(\gamma/t_1)\bigr)^{\bar c_1}+\bar C_2n^{\bar a_2}t_2^{\bar \mathbf{b}_2}\bigl(K+\log(1/t_2)\bigr)^{\bar c_2},

where (\bar C_i,\bar a_i,\bar \mathbf{b}_i,\bar c_i) is the record c_i normalized. No norm condition is needed: when \|\mathbf{M}\|_2<2\gamma the tails are applied to \mathbf{M}+4\gamma\mathbf{I}.

Lean statement and details
NLAlib.measureReal_not_exists_class_le_of_hasLaw_complexGaussianMatrix {c₁ c₂ : PolyLogTail}
  (hA : c₁.BoundsGinibreGap) (hB : c₂.BoundsGinibreCondition) {Ω : Type} {_mΩ : MeasurableSpace Ω}
  {μ : Measure Ω} {n : Type} [Fintype n] [DecidableEq n] {G : Ω → Matrix n n ℂ}
  (hG : HasLaw G (complexGaussianMatrix n n) μ) (M : Matrix n n ℂ) {γ t₁ t₂ : ℝ} (hγ : 0 < γ)
  (ht₁ : 0 < t₁) (ht₁γ : t₁ ≤ γ) (ht₂ : 0 < t₂) (ht₂1 : t₂ ≤ 1) :
  μ.real
      {ω |
        ¬∃ V d,
            IsUnit V ∧
              (M + (γ / √↑(Fintype.card n)) • G ω) * V = V * diagonal d ∧
                pseudoConditionNumber V ≤ t₂⁻¹ ∧ ∀ (i j : n), i ≠ j → t₁ ≤ ‖d i - d j‖} ≤
    c₁.normalize.C * ↑(Fintype.card n) ^ c₁.normalize.a * (t₁ / γ) ^ c₁.normalize.b *
        ((specNorm M + 4 * γ) / γ + Real.log (γ / t₁)) ^ c₁.normalize.c +
      c₂.normalize.C * ↑(Fintype.card n) ^ c₂.normalize.a * t₂ ^ c₂.normalize.b *
        ((specNorm M + 4 * γ) / γ + Real.log t₂⁻¹) ^ c₂.normalize.c

Full source on GitHub

Copy link

The tails are recorded as four numbers (C,a,\mathbf{b},c), the bound C\,n^a\,s^\mathbf{b}\,(K+\log(1/s))^c (PolyLogTail). The predicates BoundsGinibreGap and BoundsGinibreCondition say that a record bounds the gap or the condition tail. The library proves them for the records ginibreGapTail =(2048e,11/3,2/3,2) and ginibreConditionTail =(128e,3,2,2) (boundsGinibreGap_ginibreGapTail, boundsGinibreCondition_ginibreConditionTail). The theorems that use the tails take a record as a hypothesis, and each has an unconditional corollary at the proved records. So a sharper tail, such as the printed gap exponent 2, plugs in without changing them.

Ingredients

Small balls and singular values

Theorem (Shifted small ball). Let \mathbf{g} be a standard complex Gaussian vector, \mathbf{P} a nonzero orthogonal projector and \mathbf{c} a deterministic vector. Then \mathbb{P}\bigl[\|\mathbf{P}(\mathbf{g}+\mathbf{c})\|\le s\bigr]\le s^2 for every s\ge0.

Lean statement and details
NLAlib.measureReal_norm_mulVec_add_le_le_of_hasLaw_complexGaussianVector.{u_1, u_3} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} [Fintype n] {g : Ω → n → ℂ}
  (hg : HasLaw g (complexGaussianVector n) μ) {P : Matrix n n ℂ} (hP : IsStarProjection P)
  (hP₀ : P ≠ 0) (a : n → ℂ) {s : ℝ} (hs : 0 ≤ s) :
  μ.real {ω | ‖WithLp.toLp 2 (P *ᵥ (g ω + a))‖ ≤ s} ≤ s ^ 2

Full source on GitHub

Copy link

Theorem (Smallest singular value of a shifted Ginibre matrix). For any deterministic \mathbf{M} of order n and \gamma>0, \mathbf{x}\ge0,

\mathbb{P}\bigl[\sigma_{\min}(\mathbf{M}+\gamma n^{-1/2}\mathbf{G})\le \mathbf{x}\bigr]\le e\,n^2\mathbf{x}^2/\gamma^2.

Lean statement and details
NLAlib.measureReal_singularValues_add_smul_le_le_exp_one_mul_of_hasLaw_complexGaussianMatrix.{u_1,
    u_4}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {r : Type u_4} [Fintype r]
  {G : Ω → Matrix r r ℂ} (hG : HasLaw G (complexGaussianMatrix r r) μ) (M : Matrix r r ℂ) {k : ℕ}
  (hk : k + 1 = Fintype.card r) {γ x : ℝ} (hγ : 0 < γ) (hx : 0 ≤ x) :
  μ.real {ω | singularValues (M + (γ / √↑(Fintype.card r)) • G ω) k ≤ x} ≤
    rexp 1 * ↑(Fintype.card r) ^ 2 * x ^ 2 / γ ^ 2

Full source on GitHub

Copy link

The source of this bound is Lemma 3.3 of Banks, Kulkarni, Mukherjee and Srivastava, which has constant 1 in place of e. The proof here is the probe argument of Sankar, Spielman and Teng, in its complex version.

Theorem (Second-smallest singular value). For any deterministic \mathbf{M} of order n\ge2 and \gamma>0, \mathbf{x}\ge0, the second-smallest singular value satisfies

\mathbb{P}\bigl[\sigma_{n-2}(\mathbf{M}+\gamma n^{-1/2}\mathbf{G})\le \mathbf{x}\bigr]\le n^5(\mathbf{x}/\gamma)^4.

The singular values are indexed from 0 in non-increasing order.

Lean statement and details
NLAlib.measureReal_singularValues_add_smul_le_le_pow_four_of_hasLaw_complexGaussianMatrix.{u_1, u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} [Fintype n]
  {G : Ω → Matrix n n ℂ} (hG : HasLaw G (complexGaussianMatrix n n) μ) (M : Matrix n n ℂ) {k : ℕ}
  (hk : k + 2 = Fintype.card n) {γ x : ℝ} (hγ : 0 < γ) (hx : 0 ≤ x) :
  μ.real {ω | singularValues (M + (γ / √↑(Fintype.card n)) • G ω) k ≤ x} ≤
    ↑(Fintype.card n) ^ 5 * (x / γ) ^ 4

Full source on GitHub

Copy link

Pseudospectral area

Theorem (Area of the pseudospectrum and eigenvalue condition numbers). For a diagonalizable matrix with distinct eigenvalues strictly inside a disk of radius R, the sum of the squared condition numbers of its eigenvalues is at most the lower limit, as \varepsilon\to0, of 4/(\pi\varepsilon^2) times the area of \{z:\sigma_{\min}(z\mathbf{I}-\mathbf{A})\le\varepsilon\} inside the disk.

Lean statement and details
NLAlib.ofReal_sum_sq_le_liminf_measure_inter_ball_of_mul_eq_mul_diagonal.{u_1} {n : Type u_1}
  [Fintype n] [DecidableEq n] {A V : Matrix n n ℂ} {d : n → ℂ} (hV : IsUnit V)
  (hAV : A * V = V * diagonal d) (hd : Function.Injective d) {k : ℕ} (hk : k + 1 = Fintype.card n)
  {R : ℝ} (hR : ∀ (i : n), ‖d i‖ < R) {e : ℕ → ℝ} (he : ∀ (j : ℕ), 0 < e j)
  (he0 : Filter.Tendsto e Filter.atTop (𝓝 0)) :
  ENNReal.ofReal (∑ i, (‖WithLp.toLp 2 (V.col i)‖ * ‖WithLp.toLp 2 (V⁻¹.row i)‖) ^ 2) ≤
    Filter.liminf
      (fun j ↦
        ENNReal.ofReal (4 / (π * e j ^ 2)) *
          ℙ ({z | singularValues (z • 1 - A) k ≤ e j} ∩ Metric.ball 0 R))
      Filter.atTop

Full source on GitHub

Copy link

Theorem (Pseudospectral area inequality). Let \mathbf{A} of order n have simple spectrum, \|\mathbf{A}\|_2<R and B>0. If \mathbf{A} has no diagonalization \mathbf{V}\operatorname{diag}(\mathbf{d})\mathbf{V}^{-1} with \|\mathbf{V}\|_2\|\mathbf{V}^{-1}\|_2\le B, then for every positive sequence \varepsilon_j\to0,

\frac{B^2}n\le\liminf_{j\to\infty}\frac4{\pi\varepsilon_j^2}\operatorname{area}\bigl(\{z:\sigma_{\min}(z\mathbf{I}-\mathbf{A})\le\varepsilon_j\}\cap\{|z|<R\}\bigr).

Lean statement and details
NLAlib.ofReal_sq_div_card_le_liminf_measure_inter_ball_of_not_exists.{u_1} {n : Type u_1}
  [Fintype n] [DecidableEq n] {A : Matrix n n ℂ} (hA : A.charpoly.Separable) {R B : ℝ}
  (hR : specNorm A < R) (hB : 0 < B)
  (hbad : ¬∃ V d, IsUnit V ∧ A * V = V * diagonal d ∧ pseudoConditionNumber V ≤ B) {k : ℕ}
  (hk : k + 1 = Fintype.card n) {e : ℕ → ℝ} (he : ∀ (j : ℕ), 0 < e j)
  (he0 : Filter.Tendsto e Filter.atTop (𝓝 0)) :
  ENNReal.ofReal (B ^ 2 / ↑(Fintype.card n)) ≤
    Filter.liminf
      (fun j ↦
        ENNReal.ofReal (4 / (π * e j ^ 2)) *
          ℙ ({z | singularValues (z • 1 - A) k ≤ e j} ∩ Metric.ball 0 R))
      Filter.atTop

Full source on GitHub

Copy link

Both are Lemmas 3.1 and 3.2 of Banks, Kulkarni, Mukherjee and Srivastava, with the sufficient factor 4 of the local area estimate.

Eigenvalue clustering

Theorem (Two close eigenvalues force a small second singular value). If a diagonalizer \mathbf{V} of \mathbf{A} has two distinct columns whose eigenvalues are within r\ge0 of z, then the second-smallest singular value of z\mathbf{I}-\mathbf{A} is at most r\,\|\mathbf{V}\|_2\|\mathbf{V}^{-1}\|_2.

Lean statement and details
NLAlib.singularValues_le_mul_pseudoConditionNumber_of_mul_eq_mul_diagonal.{u_1, u_2} {n : Type u_1}
  [Fintype n] [DecidableEq n] {𝕜 : Type u_2} [RCLike 𝕜] {A V : Matrix n n 𝕜} {d : n → 𝕜}
  (hV : IsUnit V) (hAV : A * V = V * diagonal d) {k : ℕ} (hk : k + 2 = Fintype.card n) {i j : n}
  (hij : i ≠ j) (z : 𝕜) {r : ℝ} (hr : 0 ≤ r) (hi : ‖z - d i‖ ≤ r) (hj : ‖z - d j‖ ≤ r) :
  singularValues (z • 1 - A) k ≤ r * pseudoConditionNumber V

Full source on GitHub

Copy link

Theorem (A net detects close eigenvalue pairs). Let \mathbf{A} of order n\ge2 have a diagonalizer \mathbf{V} with \|\mathbf{V}\|_2\|\mathbf{V}^{-1}\|_2\le B, let \|\mathbf{A}\|_2<R and r>0, and let Z be a finite set such that every point of the disk of radius R is within r/2 of Z. If no eigenvalue listing of \mathbf{A} has all gaps above r, then some z\in Z has second-smallest singular value of z\mathbf{I}-\mathbf{A} at most 2rB.

Lean statement and details
NLAlib.exists_mem_singularValues_le_of_not_exists_isEigenvalueListing.{u_1, u_2} {n : Type u_1}
  [Fintype n] [DecidableEq n] {𝕜 : Type u_2} [RCLike 𝕜] {A V : Matrix n n 𝕜} {d : n → 𝕜}
  (hV : IsUnit V) (hAV : A * V = V * diagonal d) {k : ℕ} (hk : k + 2 = Fintype.card n) {r R B : ℝ}
  (hr : 0 < r) (hR : specNorm A < R) (hB : pseudoConditionNumber V ≤ B) (Z : Finset 𝕜)
  (hZ : ∀ (z : 𝕜), ‖z‖ ≤ R → ∃ y ∈ Z, ‖z - y‖ ≤ r / 2)
  (hbad : ¬∃ e, IsEigenvalueListing A e ∧ ∀ (i j : n), i ≠ j → r < ‖e i - e j‖) :
  ∃ y ∈ Z, singularValues (y • 1 - A) k ≤ 2 * r * B

Full source on GitHub

Copy link

Simple spectrum

Theorem (Almost surely simple spectrum). For any deterministic \mathbf{M} and any complex c\ne0, the matrix \mathbf{M}+c\,\mathbf{G} has simple spectrum almost surely: its characteristic polynomial is separable.

Lean statement and details
NLAlib.ae_charpoly_separable_of_hasLaw_complexGaussianMatrix.{u_1, u_2} {n : Type u_1} [Fintype n]
  [DecidableEq n] {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {G : Ω → Matrix n n ℂ}
  (hG : HasLaw G (complexGaussianMatrix n n) μ) (M : Matrix n n ℂ) {c : ℂ} (hc : c ≠ 0) :
  ∀ᵐ (ω : Ω) ∂μ, (M + c • G ω).charpoly.Separable

Full source on GitHub

Copy link

Formal definitions

Background

Used by algorithms

Broader topics