hermitian_l1_diagonal_dominance_pos_semidef
A finite Hermitian complex matrix is positive semidefinite when each diagonal entry dominates the sum of the absolute real and imaginary parts of the off-diagonal entries in its row.
Statement
theorem hermitian_l1_diagonal_dominance_pos_semidef {n : Type*} [Fintype n] [DecidableEq n] (A : Matrix n n ℂ) (hA : A.IsHermitian) (hdom : ∀ i, (∑ j ∈ Finset.univ.erase i, (|(A i j).re| + |(A i j).im|)) ≤ (A i i).re) : A.PosSemidef
- Source
- Standard Hermitian diagonal-dominance criterion via eigenvalue localization.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Used by 1
- hermitian_l1_residual_factorization_pos_semidefA positive multiple of a complex matrix is positive semidefinite if it is a Gram matrix plus a Hermitian diagonally dominant residual.
The proof, explained
A Hermitian matrix is positive semidefinite if and only if all its eigenvalues are non-negative. By the Gershgorin circle theorem, each eigenvalue λ lies in a closed disk centered at some diagonal entry A_jj with radius bounded by the off-diagonal row sum of norms. Applying the inequality ‖z‖ ≤ |Re(z)| + |Im(z)| and the row diagonal dominance hypothesis shows that the distance from λ to Re(A_jj) is at most Re(A_jj), which guarantees λ ≥ 0.
To show that A is positive semidefinite, it suffices to prove that each of its eigenvalues is non-negative.
For a Hermitian matrix, positive semidefiniteness is equivalent to all eigenvalues being non-negative (hA.posSemidef_iff_eigenvalues_nonneg). Introducing an arbitrary eigenvalue index i reduces the goal to showing 0 ≤ hA.eigenvalues i.
uses
hA.posSemidef_iff_eigenvalues_nonnegset_option maxHeartbeats 4000000 in classical rw [hA.posSemidef_iff_eigenvalues_nonneg] intro i change 0 ≤ hA.eigenvalues i
The i-th eigenvalue of A is an eigenvalue of the linear endomorphism induced by A, witnessed by a non-zero eigenvector v.
Let v be the i-th vector of the orthonormal eigenvector basis for A. Since basis vectors in an orthonormal family are non-zero, v ≠ 0 by hA.eigenvectorBasis.orthonormal.ne_zero and ofLp_eq_zero. By definition of the eigenvector basis (hA.mulVec_eigenvectorBasis), Matrix.toLin' A v = λ_i • v via Matrix.toLin'_apply and RCLike.real_smul_eq_coe_smul. Therefore, λ_i is an eigenvalue of Matrix.toLin' A by Module.End.hasEigenvalue_of_hasEigenvector and Module.End.mem_eigenspace_iff.mpr.
uses
ofLp_eq_zero,hA.eigenvectorBasis.orthonormal.ne_zero,Matrix.toLin'_apply,RCLike.real_smul_eq_coe_smul,hA.mulVec_eigenvectorBasis,Module.End.hasEigenvalue_of_hasEigenvector,Module.End.mem_eigenspace_iff.mprlet v : n → ℂ := ⇑(hA.eigenvectorBasis i) have hv : v ≠ 0 := (ofLp_eq_zero 2).ne.2 (hA.eigenvectorBasis.orthonormal.ne_zero i) have heq : Matrix.toLin' A v = ((hA.eigenvalues i : ℝ) : ℂ) • v := by rw [Matrix.toLin'_apply] simpa [v, RCLike.real_smul_eq_coe_smul] using hA.mulVec_eigenvectorBasis i have hev : Module.End.HasEigenvalue (Matrix.toLin' A) ((hA.eigenvalues i : ℝ) : ℂ) := by apply Module.End.hasEigenvalue_of_hasEigenvector exact ⟨Module.End.mem_eigenspace_iff.mpr heq,hv⟩
The eigenvalue λ_i lies in the Gershgorin disk centered at some diagonal entry A_jj with radius equal to the sum of the norms of the off-diagonal entries in row j.
By the Gershgorin circle theorem (eigenvalue_mem_ball), every eigenvalue of A belongs to a closed ball centered at A_jj with radius ∑_{l ≠ j} ‖A_jl‖ for some index j. Unfolding Metric.mem_closedBall and rewriting dist with dist_eq_norm gives ‖λ_i - A_jj‖ ≤ ∑_{l ≠ j} ‖A_jl‖.
uses
eigenvalue_mem_ball,Metric.mem_closedBall,dist_eq_normobtain ⟨j,hball⟩ := eigenvalue_mem_ball hev have hnorm : ‖((hA.eigenvalues i : ℝ) : ℂ) - A j j‖ ≤ ∑ l ∈ Finset.univ.erase j, ‖A j l‖ := by simpa only [Metric.mem_closedBall, dist_eq_norm] using hball
The sum of the norms of the off-diagonal entries in row j is bounded by the sum of their absolute real and imaginary parts.
For every complex entry, its Euclidean norm is bounded by the sum of the absolute values of its real and imaginary parts (Complex.norm_le_abs_re_add_abs_im). Summing this inequality over all off-diagonal indices in row j using Finset.sum_le_sum bounds the Gershgorin radius.
uses
Finset.sum_le_sum,Complex.norm_le_abs_re_add_abs_imhave hsum : (∑ l ∈ Finset.univ.erase j, ‖A j l‖) ≤ ∑ l ∈ Finset.univ.erase j, (|(A j l).re| + |(A j l).im|) := by apply Finset.sum_le_sum intro l hl exact Complex.norm_le_abs_re_add_abs_im _
The distance |λ_i - Re(A_jj)| is bounded by Re(A_jj).
The absolute value of the real part of λ_i - A_jj is bounded by its complex norm (Complex.abs_re_le_norm). Since λ_i is real, simplifying the real part with Complex.sub_re and Complex.ofReal_re yields |λ_i - Re(A_jj)| ≤ ‖λ_i - A_jj‖. Combining this with the Gershgorin radius bound and the row diagonal dominance hypothesis hdom j, linear arithmetic (linarith) proves |λ_i - Re(A_jj)| ≤ Re(A_jj).
uses
Complex.abs_re_le_norm,Complex.sub_re,Complex.ofReal_rehave hre := Complex.abs_re_le_norm (((hA.eigenvalues i : ℝ) : ℂ) - A j j) have hbound : |hA.eigenvalues i - (A j j).re| ≤ (A j j).re := by have hh := hdom j simp only [Complex.sub_re, Complex.ofReal_re] at hre linarith
The eigenvalue λ_i is non-negative, which proves that A is positive semidefinite.
Since -x ≤ |x| for any real number (neg_le_abs), we have -(λ_i - Re(A_jj)) ≤ |λ_i - Re(A_jj)| ≤ Re(A_jj). Linear arithmetic (linarith) immediately deduces 0 ≤ λ_i, completing the proof.
uses
neg_le_abshave hneg : -(hA.eigenvalues i - (A j j).re) ≤ |hA.eigenvalues i - (A j j).re| := neg_le_abs _ linarith
hA.posSemidef_iff_eigenvalues_nonneg- A Hermitian matrix is positive semidefinite if and only if all of its eigenvalues are non-negative.
ofLp_eq_zero- An element of an Lp space is zero if and only if its underlying function is zero.
hA.eigenvectorBasis.orthonormal.ne_zero- Every element of an orthonormal basis is non-zero.
Matrix.toLin'_apply- Applying the linear map associated with a matrix to a vector equals the matrix-vector product.
RCLike.real_smul_eq_coe_smul- Scalar multiplication by a real scalar equals scalar multiplication by its coercion into the scalar field.
hA.mulVec_eigenvectorBasis- Multiplying a Hermitian matrix by an element of its eigenvector basis scales the vector by the corresponding eigenvalue.
Module.End.hasEigenvalue_of_hasEigenvector- An endomorphism has a given eigenvalue if it possesses an eigenvector for that eigenvalue.
Module.End.mem_eigenspace_iff.mpr- A vector belongs to the eigenspace of an endomorphism for a scalar if the endomorphism scales the vector by that scalar.
eigenvalue_mem_ball- Every eigenvalue of a matrix lies in the closed Gershgorin disk centered at some diagonal entry with radius equal to the sum of the norms of the off-diagonal entries in that row.
Metric.mem_closedBall- A point belongs to a closed metric ball if and only if its distance to the center is at most the radius.
dist_eq_norm- The metric distance between two points in a normed space equals the norm of their difference.
Finset.sum_le_sum- If each term of one finite sum is bounded by the corresponding term of another, the first sum is bounded by the second.
Complex.norm_le_abs_re_add_abs_im- The Euclidean norm of a complex number is bounded by the sum of the absolute values of its real and imaginary parts.
Complex.abs_re_le_norm- The absolute value of the real part of a complex number is bounded by its complex norm.
Complex.sub_re- The real part of a difference of complex numbers is the difference of their real parts.
Complex.ofReal_re- The real part of a real number coerced to the complex numbers is the number itself.
neg_le_abs- The negation of a real number is bounded by its absolute value.
- In Step 2, the coercion between the Euclidean space type WithLp 2 (n → ℂ) used by the spectral theorem in Mathlib and the function type n → ℂ requires the lemma ofLp_eq_zero.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
open scoped ComplexOrderopen WithLptheorem hermitian_l1_diagonal_dominance_pos_semidef {n : Type*} [Fintype n] [DecidableEq n] (A : Matrix n n ℂ) (hA : A.IsHermitian) (hdom : ∀ i, (∑ j ∈ Finset.univ.erase i, (|(A i j).re| + |(A i j).im|)) ≤ (A i i).re) : A.PosSemidef := by set_option maxHeartbeats 4000000 in classical rw [hA.posSemidef_iff_eigenvalues_nonneg] intro i change 0 ≤ hA.eigenvalues i let v : n → ℂ := ⇑(hA.eigenvectorBasis i) have hv : v ≠ 0 := (ofLp_eq_zero 2).ne.2 (hA.eigenvectorBasis.orthonormal.ne_zero i) have heq : Matrix.toLin' A v = ((hA.eigenvalues i : ℝ) : ℂ) • v := by rw [Matrix.toLin'_apply] simpa [v, RCLike.real_smul_eq_coe_smul] using hA.mulVec_eigenvectorBasis i have hev : Module.End.HasEigenvalue (Matrix.toLin' A) ((hA.eigenvalues i : ℝ) : ℂ) := by apply Module.End.hasEigenvalue_of_hasEigenvector exact ⟨Module.End.mem_eigenspace_iff.mpr heq,hv⟩ obtain ⟨j,hball⟩ := eigenvalue_mem_ball hev have hnorm : ‖((hA.eigenvalues i : ℝ) : ℂ) - A j j‖ ≤ ∑ l ∈ Finset.univ.erase j, ‖A j l‖ := by simpa only [Metric.mem_closedBall, dist_eq_norm] using hball have hsum : (∑ l ∈ Finset.univ.erase j, ‖A j l‖) ≤ ∑ l ∈ Finset.univ.erase j, (|(A j l).re| + |(A j l).im|) := by apply Finset.sum_le_sum intro l hl exact Complex.norm_le_abs_re_add_abs_im _ have hre := Complex.abs_re_le_norm (((hA.eigenvalues i : ℝ) : ℂ) - A j j) have hbound : |hA.eigenvalues i - (A j j).re| ≤ (A j j).re := by have hh := hdom j simp only [Complex.sub_re, Complex.ofReal_re] at hre linarith have hneg : -(hA.eigenvalues i - (A j j).re) ≤ |hA.eigenvalues i - (A j j).re| := neg_le_abs _ linarith