Documentation

CertifiedGaps.Spectral.Counting

Counting eigenvalues by subspaces #

All results are dimension counts against the eigenspaces of a Hermitian matrix A (over any RCLike field). Write N(t) = eigCount hA t = #{i : λᵢ(A) < t}.

theorem CertifiedGaps.Spectral.exists_ne_zero_mem_inf {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] (E V : Submodule 𝕜 (n → 𝕜)) (h : Fintype.card n < Module.finrank 𝕜 ↥E + Module.finrank 𝕜 ↥V) :
∃ x ∈ E, x ∈ V ∧ x ≠ 0

Two subspaces whose dimensions add up to more than the ambient dimension meet nontrivially.

Spans of eigenvectors #

def CertifiedGaps.Spectral.extendZero {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [DecidableEq n] (s : Finset n) :
(↥s → 𝕜) →ₗ[𝕜] n → 𝕜

Extension by zero from a finite set of indices.

Equations
Instances For
    theorem CertifiedGaps.Spectral.extendZero_apply_of_mem {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [DecidableEq n] (s : Finset n) (c : ↥s → 𝕜) {i : n} (h : i ∈ s) :
    (extendZero s) c i = c ⟨i, h⟩
    theorem CertifiedGaps.Spectral.extendZero_apply_of_not_mem {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [DecidableEq n] (s : Finset n) (c : ↥s → 𝕜) {i : n} (h : i ∉ s) :
    (extendZero s) c i = 0
    noncomputable def CertifiedGaps.Spectral.eigSpan {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) (s : Finset n) :
    Submodule 𝕜 (n → 𝕜)

    The span of the eigenvectors hA.eigenvectorBasis i, i ∈ s.

    Equations
    Instances For
      theorem CertifiedGaps.Spectral.finrank_eigSpan {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) (s : Finset n) :
      Module.finrank 𝕜 ↥(eigSpan hA s) = s.card
      theorem CertifiedGaps.Spectral.le_qform_of_mem_eigSpan {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {s : Finset n} {t : ℝ} (hs : ∀ i ∈ s, t ≤ hA.eigenvalues i) {x : n → 𝕜} (hx : x ∈ eigSpan hA s) :
      t * nsq x ≤ qform A x

      On the span of eigenvectors with eigenvalues ≥ t, the form is ≥ t ‖x‖².

      theorem CertifiedGaps.Spectral.qform_lt_of_mem_eigSpan {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {s : Finset n} {t : ℝ} (hs : ∀ i ∈ s, hA.eigenvalues i < t) {x : n → 𝕜} (hx : x ∈ eigSpan hA s) (hx0 : x ≠ 0) :
      qform A x < t * nsq x

      On the span of eigenvectors with eigenvalues < t, the form is < t ‖x‖² for x ≠ 0.

      Counting #

      theorem CertifiedGaps.Spectral.eigCount_le_of_forall_le_qform {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {t : ℝ} (V : Submodule 𝕜 (n → 𝕜)) {K : ℕ} (hdim : Fintype.card n ≤ Module.finrank 𝕜 ↥V + K) (hV : ∀ x ∈ V, t * nsq x ≤ qform A x) :
      eigCount hA t ≤ K

      Count by subspace. If the form of A - t is nonnegative on a subspace V of codimension at most K, then at most K eigenvalues lie strictly below t.

      theorem CertifiedGaps.Spectral.eigCount_le_of_ker {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {ι : Type u_3} [Fintype ι] {t : ℝ} (f : (n → 𝕜) →ₗ[𝕜] ι → 𝕜) (hV : ∀ (x : n → 𝕜), f x = 0 → t * nsq x ≤ qform A x) :

      Count by a kernel. If the form of A - t is nonnegative on the kernel of a linear map to ι → 𝕜, then at most card ι eigenvalues lie strictly below t.

      theorem CertifiedGaps.Spectral.eigCount_le_card_of_vanishing {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) (B : Finset n) {t : ℝ} (hB : ∀ (x : n → 𝕜), (∀ i ∈ B, x i = 0) → t * nsq x ≤ qform A x) :

      Count by vanishing coordinates. If the form of A - t is nonnegative on every vector vanishing on a set B of coordinates, then at most |B| eigenvalues lie strictly below t. This is eigCount_le_of_ker for the restriction to B; with A ≥ D for a diagonal D, the set B is the set of basis states with D σσ < t.

      theorem CertifiedGaps.Spectral.le_eigCount_of_forall_qform_lt {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {t : ℝ} (V : Submodule 𝕜 (n → 𝕜)) (hV : ∀ x ∈ V, x ≠ 0 → qform A x < t * nsq x) :
      Module.finrank 𝕜 ↥V ≤ eigCount hA t

      Count from below. If the form of A - t is negative on every nonzero vector of V, then at least dim V eigenvalues lie strictly below t.

      theorem CertifiedGaps.Spectral.le_eigCount_of_compression {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {k : Type u_3} [Fintype k] {t : ℝ} (Z : Matrix n k 𝕜) (P : Submodule 𝕜 (k → 𝕜)) (hP : ∀ c ∈ P, c ≠ 0 → qform (Z.conjTranspose * A * Z) c < t * qform (Z.conjTranspose * Z) c) :
      Module.finrank 𝕜 ↥P ≤ eigCount hA t

      Rayleigh–Ritz with a Gram matrix. For any matrix Z (columns need not be orthonormal), if Re ⟪c, Zᴴ A Z c⟫ < t Re ⟪c, Zᴴ Z c⟫ for every nonzero c ∈ P, then at least dim P eigenvalues of A lie strictly below t.

      theorem CertifiedGaps.Spectral.eigCount_compression_le {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {k : Type u_3} [Fintype k] [DecidableEq k] (Z : Matrix n k 𝕜) (hZ : Z.conjTranspose * Z = 1) (hM : (Z.conjTranspose * A * Z).IsHermitian) (t : ℝ) :

      Cauchy interlacing in counting form: for Z with orthonormal columns (Zᴴ Z = 1) the compression Zᴴ A Z has at most as many eigenvalues below t as A.

      theorem CertifiedGaps.Spectral.eigCount_le_of_compression {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {k : Type u_3} [Fintype k] {t : ℝ} (Z : Matrix n k 𝕜) (S : Submodule 𝕜 (n → 𝕜)) (hspan : Z.mulVecLin.range ⊔ S = ⊤) (P : Submodule 𝕜 (k → 𝕜)) (hP : ∀ c ∈ P, ∀ u ∈ S, t * nsq (Z.mulVec c + u) ≤ qform A (Z.mulVec c + u)) :

      Count through a compression. Let S be a subspace and Z : n × k a matrix with range Z + S the whole space. If the form of A - t is nonnegative on every vector Z c + u with c ∈ P and u ∈ S, then N(t) + dim P ≤ k, that is N(t) ≤ codim P.

      Weyl monotonicity #

      theorem CertifiedGaps.Spectral.eigCount_le_eigCount_of_qform_le {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {B : Matrix n n 𝕜} (hB : B.IsHermitian) (h : ∀ (x : n → 𝕜), qform B x ≤ qform A x) (t : ℝ) :

      Weyl monotonicity in counting form: if Re ⟪x, B x⟫ ≤ Re ⟪x, A x⟫ for all x, then A has at most as many eigenvalues below any t as B.

      theorem CertifiedGaps.Spectral.qform_nonneg_of_posSemidef {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] {M : Matrix n n 𝕜} (hM : M.PosSemidef) (x : n → 𝕜) :
      0 ≤ qform M x

      The form of a positive semidefinite matrix is nonnegative.

      theorem CertifiedGaps.Spectral.eigCount_le_eigCount_of_posSemidef {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {B : Matrix n n 𝕜} (hB : B.IsHermitian) (h : (A - B).PosSemidef) (t : ℝ) :

      Weyl monotonicity for the Loewner order B ≤ A (that is, A - B positive semidefinite): #{i : λᵢ(A) < t} ≤ #{i : λᵢ(B) < t} for every t.

      Sorted eigenvalues #

      theorem CertifiedGaps.Spectral.le_of_countBelow_le_of_antitone {N : ℕ} {a b : Fin N → ℝ} (ha : Antitone a) (hb : Antitone b) (h : ∀ (t : ℝ), countBelow Finset.univ a t ≤ countBelow Finset.univ b t) (k : Fin N) :
      b k ≤ a k

      For two antitone (decreasingly sorted) sequences, domination of the counting functions, #{j : aⱼ < t} ≤ #{j : bⱼ < t} for all t, is pointwise domination bₖ ≤ aₖ.

      The counting function is the same whether computed from eigenvalues or from the sorted eigenvalues₀.

      theorem CertifiedGaps.Spectral.eigenvalues₀_le_of_posSemidef {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {B : Matrix n n 𝕜} (hB : B.IsHermitian) (h : (A - B).PosSemidef) (k : Fin (Fintype.card n)) :

      Weyl monotonicity for sorted eigenvalues. If B ≤ A in the Loewner order then λₖ(B) ≤ λₖ(A) for the decreasingly sorted eigenvalues eigenvalues₀.

      Residual bound #

      theorem CertifiedGaps.Spectral.exists_eigenvalue_near {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) [Nonempty n] (x : n → 𝕜) (θ : ℝ) :
      ∃ (i : n), (hA.eigenvalues i - θ) ^ 2 * nsq x ≤ nsq (A.mulVec x - ↑θ • x)

      Residual bound. For every vector x and real θ, some eigenvalue satisfies (λᵢ - θ)² ‖x‖² ≤ ‖A x - θ x‖².