NLA-lib Explorer

Davis–Kahan sin Θ theorem

Library · Result group

Theorem (Matrix.IsHermitian.frobNorm_one_sub_mul_le_sqrt_two_mul_frobNorm_div_eigengap). Davis–Kahan with the gap of the unperturbed matrix, Frobenius norm: for Hermitian \mathbf{A} and \mathbf{E} with \lambda_j(\mathbf{A}) > \lambda_{j+1}(\mathbf{A}), the leading eigenframe \mathbf{U} of \mathbf{A} with j + 1 columns, and a frame \mathbf{Q} with j + 1 columns attaining the largest Rayleigh trace of \mathbf{A} + \mathbf{E}, \|(\mathbf{I} - \mathbf{U}\mathbf{U}^{\mathsf{H}})\mathbf{Q}\|_{\mathsf{F}} \le \frac{\sqrt{2} \, \|\mathbf{E}\|_{\mathsf{F}}} {\lambda_j(\mathbf{A}) - \lambda_{j+1}(\mathbf{A})}. [YuWangSamworth2015, Theorem 2].

Headline (provisional)

Lean statement and details
Matrix.IsHermitian.frobNorm_one_sub_mul_le_sqrt_two_mul_frobNorm_div_eigengap.{u_1, u_2}
  {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A E : Matrix n n 𝕜}
  (hA : A.IsHermitian) (hE : E.IsHermitian) {j : ℕ} {U Q : Matrix n (Fin (j + 1)) 𝕜}
  (hU : HasOrthonormalCols U) (hQ : HasOrthonormalCols Q)
  (hAU : A * U = U * diagonal fun i ↦ ↑(eigenvalue A ↑i))
  (hQtop : RCLike.re (Qᴴ * (A + E) * Q).trace = ∑ i ∈ Finset.range (j + 1), eigenvalue (A + E) i)
  (hgap : 0 < eigengap A (j + 1)) :
  frobNorm ((1 - U * Uᴴ) * Q) ≤ √2 * frobNorm E / eigengap A (j + 1)

Full source on GitHub

Copy link

Other forms

Theorem (Matrix.IsHermitian.frobNorm_one_sub_mul_le_sqrt_two_mul_frobNorm_div_eigengap_of_re_trace_le). Davis–Kahan with the gap of the unperturbed matrix, Frobenius norm, for a frame \mathbf{Q} whose Rayleigh trace for \mathbf{A} + \mathbf{E} is at least that of the leading eigenframe \mathbf{U} of \mathbf{A}, both with j + 1 columns, \mathbf{A} Hermitian and \lambda_j(\mathbf{A}) > \lambda_{j+1}(\mathbf{A}): \|(\mathbf{I} - \mathbf{U}\mathbf{U}^{\mathsf{H}})\mathbf{Q}\|_{\mathsf{F}} \le \frac{\sqrt{2} \, \|\mathbf{E}\|_{\mathsf{F}}} {\lambda_j(\mathbf{A}) - \lambda_{j+1}(\mathbf{A})}. [YuWangSamworth2015, Theorem 2], there for a leading eigenframe of a Hermitian \mathbf{A} + \mathbf{E}.

Lean statement and details
Matrix.IsHermitian.frobNorm_one_sub_mul_le_sqrt_two_mul_frobNorm_div_eigengap_of_re_trace_le.{u_1,
    u_2}
  {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A E : Matrix n n 𝕜}
  (hA : A.IsHermitian) {j : ℕ} {U Q : Matrix n (Fin (j + 1)) 𝕜} (hU : HasOrthonormalCols U)
  (hQ : HasOrthonormalCols Q) (hAU : A * U = U * diagonal fun i ↦ ↑(eigenvalue A ↑i))
  (hUQ : RCLike.re (Uᴴ * (A + E) * U).trace ≤ RCLike.re (Qᴴ * (A + E) * Q).trace)
  (hgap : 0 < eigengap A (j + 1)) :
  frobNorm ((1 - U * Uᴴ) * Q) ≤ √2 * frobNorm E / eigengap A (j + 1)

Full source on GitHub

Copy link

Theorem (Matrix.IsHermitian.mul_frobNorm_conjTranspose_mul_le). The \sin \Theta theorem in the Frobenius norm, residual form, for an arbitrary separation: for Hermitian \mathbf{A}, \mathbf{L}, \mathbf{M} with \mathbf{A}\mathbf{V} = \mathbf{V}\mathbf{M}, if the eigenvalues of \mathbf{L} and \mathbf{M} are pairwise at distance at least \delta, then \delta \|\mathbf{V}^{\mathsf{H}}\mathbf{U}\|_{\mathsf{F}} \le \|\mathbf{V}^{\mathsf{H}}(\mathbf{A}\mathbf{U} - \mathbf{U}\mathbf{L})\|_{\mathsf{F}}. [DavisKahan1970]; [StewartSun1990, Theorem V.3.4].

General form: sizes are index types

Lean statement and details
Matrix.IsHermitian.mul_frobNorm_conjTranspose_mul_le.{u_1, u_2, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} {p : Type u_3} {q : Type u_4} [Fintype n] [Fintype p] [Fintype q]
  {A : Matrix n n 𝕜} {V : Matrix n q 𝕜} {M : Matrix q q 𝕜} (hA : A.IsHermitian) (hM : M.IsHermitian)
  (hAV : A * V = V * M) {U : Matrix n p 𝕜} {L : Matrix p p 𝕜} (hL : L.IsHermitian) {δ : ℝ}
  (hsep : ∀ i < Fintype.card q, ∀ j < Fintype.card p, δ ≤ |eigenvalue M i - eigenvalue L j|) :
  δ * frobNorm (Vᴴ * U) ≤ frobNorm (Vᴴ * (A * U - U * L))

Full source on GitHub

Copy link

Theorem (Matrix.IsHermitian.specNorm_one_sub_mul_le_two_mul_specNorm_div_eigengap). Davis–Kahan with the gap of the unperturbed matrix, spectral norm. Let \mathbf{A} and \mathbf{E} be Hermitian with \lambda_j(\mathbf{A}) > \lambda_{j+1}(\mathbf{A}). For leading eigenframes \mathbf{U} of \mathbf{A} and \mathbf{U}' of \mathbf{A} + \mathbf{E}, both with j + 1 columns, \|(\mathbf{I} - \mathbf{U}\mathbf{U}^{\mathsf{H}})\mathbf{U}'\|_2 \le \frac{2 \|\mathbf{E}\|_2}{\lambda_j(\mathbf{A}) - \lambda_{j+1}(\mathbf{A})}. The two frames have the same number of columns, so the distance is symmetric in them (IsStarProjection.singularValues_one_sub_mul_eq_of_rank_eq). [YuWangSamworth2015, Theorem 2 context].

Lean statement and details
Matrix.IsHermitian.specNorm_one_sub_mul_le_two_mul_specNorm_div_eigengap.{u_1, u_2} {𝕜 : Type u_1}
  [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A E : Matrix n n 𝕜} (hA : A.IsHermitian)
  (hE : E.IsHermitian) {j : ℕ} {U U' : Matrix n (Fin (j + 1)) 𝕜} (hU : HasOrthonormalCols U)
  (hU' : HasOrthonormalCols U') (hAU : A * U = U * diagonal fun i ↦ ↑(eigenvalue A ↑i))
  (hAU' : (A + E) * U' = U' * diagonal fun i ↦ ↑(eigenvalue (A + E) ↑i))
  (hgap : 0 < eigengap A (j + 1)) :
  specNorm ((1 - U * Uᴴ) * U') ≤ 2 * specNorm E / eigengap A (j + 1)

Full source on GitHub

Copy link

Theorem (SymmetricGauge.mul_matrixNorm_conjTranspose_mul_le_of_eigenvalue). The Davis–Kahan \sin \Theta theorem, residual form. Let \mathbf{A} be Hermitian with \mathbf{A}\mathbf{V} = \mathbf{V}\mathbf{M}, \mathbf{M} Hermitian. If the spectrum of \mathbf{L} lies in [a, \mathbf{b}] (that is, a\mathbf{I} \preceq \mathbf{L} \preceq \mathbf{b}\mathbf{I}) and every eigenvalue of \mathbf{M} lies outside (a - \delta, \mathbf{b} + \delta), then in every unitarily invariant norm \|\cdot\|_{\Phi} \delta \|\mathbf{V}^{\mathsf{H}}\mathbf{U}\|_{\Phi} \le \|\mathbf{V}^{\mathsf{H}}(\mathbf{A}\mathbf{U} - \mathbf{U}\mathbf{L})\|_{\Phi}. [DavisKahan1970]; [Bhatia1997, Theorem VII.3.1]; [StewartSun1990, Theorem V.3.6].

General form: sizes are index types

Lean statement and details
NLAlib.SymmetricGauge.mul_matrixNorm_conjTranspose_mul_le_of_eigenvalue.{u_1, u_2, u_3, u_4}
  {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} {p : Type u_3} {q : Type u_4} [Fintype n] [Fintype p]
  [Fintype q] [DecidableEq p] (Φ : SymmetricGauge) {A : Matrix n n 𝕜} {V : Matrix n q 𝕜}
  {M : Matrix q q 𝕜} (hA : A.IsHermitian) (hM : M.IsHermitian) (hAV : A * V = V * M)
  {U : Matrix n p 𝕜} {L : Matrix p p 𝕜} {a b δ : ℝ} (hL₁ : a • 1 ≤ L) (hL₂ : L ≤ b • 1)
  (hMsep : ∀ i < Fintype.card q, eigenvalue M i ≤ a - δ ∨ b + δ ≤ eigenvalue M i) :
  δ * Φ.matrixNorm (Vᴴ * U) ≤ Φ.matrixNorm (Vᴴ * (A * U - U * L))

Full source on GitHub

Copy link

Theorem (SymmetricGauge.mul_matrixNorm_conjTranspose_mul_le_of_le). The \sin \Theta theorem, one-sided form. In residual form with a one-sided separation: for Hermitian \mathbf{A} with \mathbf{A}\mathbf{V} = \mathbf{V}\mathbf{M}, if \mathbf{M} \preceq (\alpha - \delta)\mathbf{I} and \alpha\mathbf{I} \preceq \mathbf{L}, then \delta \|\mathbf{V}^{\mathsf{H}}\mathbf{U}\|_{\Phi} \le \|\mathbf{V}^{\mathsf{H}}(\mathbf{A}\mathbf{U} - \mathbf{U}\mathbf{L})\|_{\Phi} in every unitarily invariant norm \|\cdot\|_{\Phi}.

Lean statement and details
NLAlib.SymmetricGauge.mul_matrixNorm_conjTranspose_mul_le_of_le.{u_1, u_2, u_3, u_4} {𝕜 : Type u_1}
  [RCLike 𝕜] {n : Type u_2} {p : Type u_3} {q : Type u_4} [Fintype n] [Fintype p] [Fintype q]
  [DecidableEq p] [DecidableEq q] (Φ : SymmetricGauge) {A : Matrix n n 𝕜} {V : Matrix n q 𝕜}
  {M : Matrix q q 𝕜} (hA : A.IsHermitian) (hAV : A * V = V * M) {U : Matrix n p 𝕜}
  {L : Matrix p p 𝕜} {α δ : ℝ} (hM : M ≤ (α - δ) • 1) (hL : α • 1 ≤ L) :
  δ * Φ.matrixNorm (Vᴴ * U) ≤ Φ.matrixNorm (Vᴴ * (A * U - U * L))

Full source on GitHub

Copy link

Theorem (SymmetricGauge.mul_matrixNorm_conjTranspose_mul_le_of_mul_eq_mul). The \sin \Theta theorem for two Hermitian matrices. If \mathbf{A}\mathbf{U} = \mathbf{U}\mathbf{L} with the spectrum of \mathbf{L} in [a, \mathbf{b}] (that is, a\mathbf{I} \preceq \mathbf{L} \preceq \mathbf{b}\mathbf{I}), and \mathbf{B}\mathbf{V} = \mathbf{V}\mathbf{M} with \mathbf{B}, \mathbf{M} Hermitian and every eigenvalue of \mathbf{M} outside (a - \delta, \mathbf{b} + \delta), then \delta \|\mathbf{V}^{\mathsf{H}}\mathbf{U}\|_{\Phi} \le \|\mathbf{V}^{\mathsf{H}}(\mathbf{B} - \mathbf{A})\mathbf{U}\|_{\Phi} in every unitarily invariant norm \|\cdot\|_{\Phi}. [DavisKahan1970]; [Bhatia1997, Theorem VII.3.1].

General form: sizes are index types

Lean statement and details
NLAlib.SymmetricGauge.mul_matrixNorm_conjTranspose_mul_le_of_mul_eq_mul.{u_1, u_2, u_3, u_4}
  {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} {p : Type u_3} {q : Type u_4} [Fintype n] [Fintype p]
  [Fintype q] [DecidableEq p] (Φ : SymmetricGauge) {A B : Matrix n n 𝕜} {U : Matrix n p 𝕜}
  {V : Matrix n q 𝕜} {L : Matrix p p 𝕜} {M : Matrix q q 𝕜} (hB : B.IsHermitian) (hM : M.IsHermitian)
  (hAU : A * U = U * L) (hBV : B * V = V * M) {a b δ : ℝ} (hL₁ : a • 1 ≤ L) (hL₂ : L ≤ b • 1)
  (hMsep : ∀ i < Fintype.card q, eigenvalue M i ≤ a - δ ∨ b + δ ≤ eigenvalue M i) :
  δ * Φ.matrixNorm (Vᴴ * U) ≤ Φ.matrixNorm (Vᴴ * (B - A) * U)

Full source on GitHub

Copy link

Theorem (SymmetricGauge.mul_matrixNorm_mul_le_of_mul_mul_le). The \sin \Theta theorem, projector form. Let \mathbf{Q} be an orthogonal projector commuting with \mathbf{A} (the projector onto an invariant subspace) on whose range \mathbf{A} is at most \mu, in the form \mathbf{Q}\mathbf{A}\mathbf{Q} \preceq \mu\mathbf{Q}. For any pair (\mathbf{U}, \mathbf{L}) with (\mu + \delta)\mathbf{I} \preceq \mathbf{L}, in every unitarily invariant norm \|\cdot\|_{\Phi} \delta \|\mathbf{Q}\mathbf{U}\|_{\Phi} \le \|\mathbf{Q}(\mathbf{A}\mathbf{U} - \mathbf{U}\mathbf{L})\|_{\Phi}. With \mathbf{Q} = \mathbf{I} - \mathbf{W}\mathbf{W}^{\mathsf{H}} for a frame \mathbf{W} of the rest of the spectrum, \mathbf{Q}\mathbf{U} is the distance of the range of \mathbf{U} from the range of \mathbf{W}. Only the compression \mathbf{Q}\mathbf{A}\mathbf{Q} enters, and the hypothesis makes it Hermitian, so \mathbf{A} itself need not be. [DavisKahan1970]; [Bhatia1997, Theorem VII.3.1].

Lean statement and details
NLAlib.SymmetricGauge.mul_matrixNorm_mul_le_of_mul_mul_le.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} {p : Type u_3} [Fintype n] [Fintype p] [DecidableEq p] (Φ : SymmetricGauge)
  {A Q : Matrix n n 𝕜} (hQ : IsStarProjection Q) (hAQ : A * Q = Q * A) {μ δ : ℝ}
  (hQA : Q * A * Q ≤ μ • Q) {U : Matrix n p 𝕜} {L : Matrix p p 𝕜} (hL : (μ + δ) • 1 ≤ L) :
  δ * Φ.matrixNorm (Q * U) ≤ Φ.matrixNorm (Q * (A * U - U * L))

Full source on GitHub

Copy link

Theorem (SymmetricGauge.mul_matrixNorm_one_sub_mul_le_of_add_smul_one_le). Davis–Kahan for a leading eigenspace, residual form. Let the columns of \mathbf{W} be orthonormal eigenvectors of the Hermitian matrix \mathbf{A} for its j + 1 largest eigenvalues. For any pair (\mathbf{U}, \mathbf{L}) with (\lambda_{j+1}(\mathbf{A}) + \delta)\mathbf{I} \preceq \mathbf{L}, in every unitarily invariant norm \|\cdot\|_{\Phi} \delta \|(\mathbf{I} - \mathbf{W}\mathbf{W}^{\mathsf{H}})\mathbf{U}\|_{\Phi} \le \|\mathbf{A}\mathbf{U} - \mathbf{U}\mathbf{L}\|_{\Phi}. This is the form used for Ritz pairs: no frame of the complement appears. [DavisKahan1970]; [StewartSun1990, Theorem V.3.6]; [Parlett1998, Theorem 11.7.1].

Lean statement and details
NLAlib.SymmetricGauge.mul_matrixNorm_one_sub_mul_le_of_add_smul_one_le.{u_1, u_2, u_3}
  {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} {p : Type u_3} [Fintype n] [Fintype p] [DecidableEq n]
  [DecidableEq p] (Φ : SymmetricGauge) {A : Matrix n n 𝕜} (hA : A.IsHermitian) {j : ℕ}
  {W : Matrix n (Fin (j + 1)) 𝕜} (hW : HasOrthonormalCols W)
  (hAW : A * W = W * diagonal fun i ↦ ↑(eigenvalue A ↑i)) {U : Matrix n p 𝕜} {L : Matrix p p 𝕜}
  {δ : ℝ} (hL : (eigenvalue A (j + 1) + δ) • 1 ≤ L) :
  δ * Φ.matrixNorm ((1 - W * Wᴴ) * U) ≤ Φ.matrixNorm (A * U - U * L)

Full source on GitHub

Copy link

Theorem (SymmetricGauge.mul_matrixNorm_one_sub_mul_le_of_eigenvalue_sub). Davis–Kahan for the leading eigenspaces of \mathbf{A} and \mathbf{A} + \mathbf{E}. Let \mathbf{A} and \mathbf{E} be Hermitian, let \mathbf{U} span an invariant subspace of \mathbf{A} on which \mathbf{A} is at least \lambda_j(\mathbf{A}) (\mathbf{A}\mathbf{U} = \mathbf{U}\mathbf{L}, \lambda_j(\mathbf{A})\mathbf{I} \preceq \mathbf{L}), and let the columns of \mathbf{U}' be orthonormal eigenvectors of \mathbf{A} + \mathbf{E} for its j + 1 largest eigenvalues. If \delta \le \lambda_j(\mathbf{A}) - \lambda_{j+1}(\mathbf{A} + \mathbf{E}), then in every unitarily invariant norm \|\cdot\|_{\Phi} \delta \|(\mathbf{I} - \mathbf{U}'\mathbf{U}'^{\mathsf{H}})\mathbf{U}\|_{\Phi} \le \|\mathbf{E}\mathbf{U}\|_{\Phi}. [DavisKahan1970]; [StewartSun1990, Theorem V.3.6].

Lean statement and details
NLAlib.SymmetricGauge.mul_matrixNorm_one_sub_mul_le_of_eigenvalue_sub.{u_1, u_2, u_3} {𝕜 : Type u_1}
  [RCLike 𝕜] {n : Type u_2} {p : Type u_3} [Fintype n] [Fintype p] [DecidableEq n] [DecidableEq p]
  (Φ : SymmetricGauge) {A E : Matrix n n 𝕜} (hA : A.IsHermitian) (hE : E.IsHermitian) {j : ℕ}
  {U : Matrix n p 𝕜} {L : Matrix p p 𝕜} (hAU : A * U = U * L) (hL : eigenvalue A j • 1 ≤ L)
  {U' : Matrix n (Fin (j + 1)) 𝕜} (hU' : HasOrthonormalCols U')
  (hAU' : (A + E) * U' = U' * diagonal fun i ↦ ↑(eigenvalue (A + E) ↑i)) {δ : ℝ}
  (hδ : δ ≤ eigenvalue A j - eigenvalue (A + E) (j + 1)) :
  δ * Φ.matrixNorm ((1 - U' * U'ᴴ) * U) ≤ Φ.matrixNorm (E * U)

Full source on GitHub

Copy link

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.