Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Weyl's inequality: sorted eigenvalues of Hermitian matrices are monotone in the Loewner order

Proved
Matrix.IsHermitian.sorted_eigenvalues_le_add_of_re_dotProduct_le

by Mazecto · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

linear-algebra

Let A,BA,BA,B be Hermitian n×nn\times nn×n matrices over R\mathbb{R}R or C\mathbb{C}C and ε∈R\varepsilon\in\mathbb{R}ε∈R with

Re⁡ x∗Ax  ≤  Re⁡ x∗Bx+ε ∣x∣2for all x,\operatorname{Re}\,x^*Ax\;\le\;\operatorname{Re}\,x^*Bx+\varepsilon\,|x|^2\qquad\text{for all }x,Rex∗Ax≤Rex∗Bx+ε∣x∣2for all x,

i.e. A≤B+εIA\le B+\varepsilon IA≤B+εI. Then for the eigenvalues sorted in decreasing order (eigenvalues₀, which Mathlib proves antitone),

λj(A)  ≤  λj(B)+εfor every j.\lambda_j(A)\;\le\;\lambda_j(B)+\varepsilon\qquad\text{for every }j.λj​(A)≤λj​(B)+εfor every j.

Proof idea (Courant–Fischer by a dimension count): if λj(A)>λj(B)+ε\lambda_j(A)>\lambda_j(B)+\varepsilonλj​(A)>λj​(B)+ε, the span PPP of the first j+1j+1j+1 eigenvectors of AAA (where x∗Ax≥λj(A)∣x∣2x^*Ax\ge\lambda_j(A)|x|^2x∗Ax≥λj​(A)∣x∣2) and the span RRR of the last n−jn-jn−j eigenvectors of BBB (where x∗Bx≤λj(B)∣x∣2x^*Bx\le\lambda_j(B)|x|^2x∗Bx≤λj​(B)∣x∣2) meet only in 000, but dim⁡P+dim⁡R=n+1\dim P+\dim R=n+1dimP+dimR=n+1.

Preamble
import Mathlib.Analysis.Matrix.Spectrum

open Matrix
Formal statement
theorem Matrix.IsHermitian.sorted_eigenvalues_le_add_of_re_dotProduct_le {𝕜 : Type*} [RCLike 𝕜] {n : Type*} [Fintype n] [DecidableEq n]
    {A B : Matrix n n 𝕜} (hA : A.IsHermitian) (hB : B.IsHermitian) (ε : ℝ)
    (h : ∀ x : n → 𝕜, RCLike.re (star x ⬝ᵥ (A *ᵥ x)) ≤
      RCLike.re (star x ⬝ᵥ (B *ᵥ x)) + ε * RCLike.re (star x ⬝ᵥ x))
    (j : Fin (Fintype.card n)) : hA.eigenvalues₀ j ≤ hB.eigenvalues₀ j + ε := by sorry
Source
Weyl's monotonicity / perturbation inequality (H. Weyl, Math. Ann. 71 (1912)); see Horn–Johnson, Matrix Analysis, 2nd ed., Cor. 4.3.12. Mathlib (rev 0df444a) has sorted Hermitian eigenvalues but no min–max theorem.
Human review
  • Endorsed by Shuze Chen · Nov 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Nov 8, 2026

    Confirmed by the mission captain (proposal self-audit).

  • Endorsed by iris · Nov 10, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me