Documentation

CertifiedGaps.Spectral.TraceBounds

Bounds on ∑ᵢ f(λᵢ) from eigenvalue counts #

For an antitone weight f (in applications f x = exp (-b x) with b ≥ 0, so ∑ᵢ f(λᵢ) is the partition function Tr e^{-bH}), sums of f over a finite family are controlled by the counting function t ↦ #{i : aᵢ < t} alone:

theorem CertifiedGaps.Spectral.countBelow_mono_set {ι : Type u_1} {s s' : Finset ι} (h : s ⊆ s') (a : ι → ℝ) (t : ℝ) :
theorem CertifiedGaps.Spectral.countBelow_erase_add_one {ι : Type u_1} [DecidableEq ι] {s : Finset ι} {a : ι → ℝ} {t : ℝ} {i : ι} (hi : i ∈ s) (hit : a i < t) :
countBelow (s.erase i) a t + 1 = countBelow s a t

Removing a value below the cut lowers the count by one.

theorem CertifiedGaps.Spectral.countBelow_eq_zero {ι : Type u_1} {s : Finset ι} {a : ι → ℝ} {t : ℝ} (h : ∀ i ∈ s, t ≤ a i) :
countBelow s a t = 0

No value lies below a cut t ≤ min a.

theorem CertifiedGaps.Spectral.sum_le_sum_of_countBelow_le {ι : Type u_1} {κ : Type u_2} [DecidableEq ι] [DecidableEq κ] {f : ℝ → ℝ} (hf : Antitone f) (hf0 : ∀ (x : ℝ), 0 ≤ f x) (s : Finset ι) (a : ι → ℝ) (u : Finset κ) (b : κ → ℝ) (h : ∀ (t : ℝ), countBelow s a t ≤ countBelow u b t) :
∑ i ∈ s, f (a i) ≤ ∑ j ∈ u, f (b j)

Sum comparison by counts. For an antitone nonnegative f, if #{i ∈ s : aᵢ < t} ≤ #{j ∈ u : bⱼ < t} for every t, then ∑_{i ∈ s} f(aᵢ) ≤ ∑_{j ∈ u} f(bⱼ).

Binned bounds #

theorem CertifiedGaps.Spectral.le_binned_pointwise {f : ℝ → ℝ} (hf : Antitone f) {t : ℕ → ℝ} (ht : Monotone t) {x : ℝ} (hx : t 0 ≤ x) (m : ℕ) :
f x ≤ (∑ k ∈ Finset.range m, if x < t (k + 1) then f (t k) - f (t (k + 1)) else 0) + f (t m)

Pointwise Abel bound behind sum_le_binned.

theorem CertifiedGaps.Spectral.sum_ite_lt_eq {ι : Type u_1} (s : Finset ι) (a : ι → ℝ) (t c : ℝ) :
(∑ i ∈ s, if a i < t then c else 0) = ↑(countBelow s a t) * c

∑_{i ∈ s} [aᵢ < t] c = #{aᵢ < t} c.

theorem CertifiedGaps.Spectral.sum_le_binned {ι : Type u_1} {f : ℝ → ℝ} (hf : Antitone f) (s : Finset ι) (a : ι → ℝ) {t : ℕ → ℝ} (ht : Monotone t) (m : ℕ) (h0 : ∀ i ∈ s, t 0 ≤ a i) (N : ℕ → ℕ) (hN : ∀ k < m, countBelow s a (t (k + 1)) ≤ N (k + 1)) :
∑ i ∈ s, f (a i) ≤ ∑ k ∈ Finset.range m, ↑(N (k + 1)) * (f (t k) - f (t (k + 1))) + ↑s.card * f (t m)

Binned upper bound. Let t₀ ≤ t₁ ≤ ⋯ be thresholds with every aᵢ ≥ t₀, and let #{i ∈ s : aᵢ < t_{k+1}} ≤ N_{k+1} for k < m. Then for antitone f, ∑ f(aᵢ) ≤ ∑_{k<m} N_{k+1} (f(tₖ) - f(t_{k+1})) + |s| f(tₘ).

theorem CertifiedGaps.Spectral.binned_le_pointwise {f : ℝ → ℝ} (hf : Antitone f) (hf0 : ∀ (x : ℝ), 0 ≤ f x) {t : ℕ → ℝ} (ht : Monotone t) (x : ℝ) (m : ℕ) :
((∑ k ∈ Finset.range m, if x < t k then f (t k) - f (t (k + 1)) else 0) + if x < t m then f (t m) else 0) ≤ f x

Pointwise bound behind binned_le_sum: ∑_{k<m} [x < tₖ] (f(tₖ) - f(t_{k+1})) ≤ f x.

theorem CertifiedGaps.Spectral.binned_le_sum {ι : Type u_1} {f : ℝ → ℝ} (hf : Antitone f) (hf0 : ∀ (x : ℝ), 0 ≤ f x) (s : Finset ι) (a : ι → ℝ) {t : ℕ → ℝ} (ht : Monotone t) (m : ℕ) (M : ℕ → ℕ) (hM : ∀ k < m, M k ≤ countBelow s a (t k)) :
∑ k ∈ Finset.range m, ↑(M k) * (f (t k) - f (t (k + 1))) ≤ ∑ i ∈ s, f (a i)

Binned lower bound. For antitone f ≥ 0, thresholds t₀ ≤ t₁ ≤ ⋯ and counts M_k ≤ #{i ∈ s : aᵢ < tₖ} for k < m, ∑_{k<m} M_k (f(tₖ) - f(t_{k+1})) ≤ ∑ f(aᵢ).

The Boltzmann weight #

theorem CertifiedGaps.Spectral.antitone_exp_neg_mul {b : ℝ} (hb : 0 ≤ b) :
Antitone fun (x : ℝ) => Real.exp (-(b * x))

The Boltzmann weight x ↦ exp (-b x) is antitone for b ≥ 0.

Eigenvalue sums #

theorem CertifiedGaps.Spectral.sum_le_of_eigCount_le {κ : Type u_2} {𝕜 : Type u_3} [RCLike 𝕜] {n : Type u_4} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) [DecidableEq κ] {f : ℝ → ℝ} (hf : Antitone f) (hf0 : ∀ (x : ℝ), 0 ≤ f x) (u : Finset κ) (ℓ : κ → ℝ) (h : ∀ (t : ℝ), eigCount hA t ≤ countBelow u ℓ t) :
∑ i : n, f (hA.eigenvalues i) ≤ ∑ j ∈ u, f (ℓ j)

Trace bound from lower bounds on sorted eigenvalues. If the eigenvalue counts of A are dominated by those of a family ℓ (equivalently, the sorted eigenvalues satisfy λₖ ≥ ℓₖ), then ∑ᵢ f(λᵢ) ≤ ∑ⱼ f(ℓⱼ) for antitone f ≥ 0.

theorem CertifiedGaps.Spectral.sum_le_sum_of_posSemidef {𝕜 : Type u_3} [RCLike 𝕜] {n : Type u_4} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {f : ℝ → ℝ} (hf : Antitone f) (hf0 : ∀ (x : ℝ), 0 ≤ f x) {B : Matrix n n 𝕜} (hB : B.IsHermitian) (h : (A - B).PosSemidef) :
∑ i : n, f (hA.eigenvalues i) ≤ ∑ i : n, f (hB.eigenvalues i)

Trace comparison. If B ≤ A in the Loewner order then ∑ f(λᵢ(A)) ≤ ∑ f(λᵢ(B)) for antitone f ≥ 0; with f x = exp (-b x), Tr e^{-bA} ≤ Tr e^{-bB}.

theorem CertifiedGaps.Spectral.sum_compression_le {𝕜 : Type u_3} [RCLike 𝕜] {n : Type u_4} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {k : Type u_5} [Fintype k] [DecidableEq k] {f : ℝ → ℝ} (hf : Antitone f) (hf0 : ∀ (x : ℝ), 0 ≤ f x) (Z : Matrix n k 𝕜) (hZ : Z.conjTranspose * Z = 1) (hM : (Z.conjTranspose * A * Z).IsHermitian) :
∑ j : k, f (hM.eigenvalues j) ≤ ∑ i : n, f (hA.eigenvalues i)

Rayleigh–Ritz lower bound. For Z with orthonormal columns, the Ritz values (the eigenvalues of Zᴴ A Z) satisfy ∑ⱼ f(θⱼ) ≤ ∑ᵢ f(λᵢ(A)) for antitone f ≥ 0; with f x = exp (-b x) this is the variational lower bound on the partition function.