AFTD Auto-Formalizing Theoretical Domains

Matrix.IsHermitian.spectrum_subset_Iic_of_sub

theoremverifiedformalizationimported Lean

Matrix.IsHermitian.spectrum_subset_Iic_of_sub

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Matrix in
open BigOperators in
variable {n ๐•œ : Type*} in
variable [RCLike ๐•œ] [DecidableEq n] in
open scoped ComplexOrder MatrixOrder in
open ComplexOrder in
theorem Matrix.IsHermitian.spectrum_subset_Iic_of_sub {d ๐•œ : Type*} [Fintype d] [DecidableEq d] [RCLike ๐•œ]
  {A x : Matrix d d ๐•œ} (hA : A.IsHermitian) (hl : (A - x).PosSemidef) :
    spectrum โ„ x โІ Set.Iic (โจ† i, hA.eigenvalues i)
Formalizes
QuantumInfo, `Matrix.IsHermitian.spectrum_subset_Iic_of_sub`
Lean proof
By Alex Meiburg, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2025 Alex Meiburg. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
17 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
Used by 1

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Matrix in
open BigOperators in
variable {n ๐•œ : Type*} in
variable [RCLike ๐•œ] [DecidableEq n] in
open scoped ComplexOrder MatrixOrder in
open ComplexOrder in
theorem Matrix.IsHermitian.spectrum_subset_Iic_of_sub {d ๐•œ : Type*} [Fintype d] [DecidableEq d] [RCLike ๐•œ]
  {A x : Matrix d d ๐•œ} (hA : A.IsHermitian) (hl : (A - x).PosSemidef) :
    spectrum โ„ x โІ Set.Iic (โจ† i, hA.eigenvalues i) := by
  have h := spectrum_subset_Ici_of_sub hA.neg (x := -x) ?_
  ยท rcases isEmpty_or_nonempty d
    ยท simp
    rw [โ† spectrum.neg_eq] at h
    intro ฮผ hฮผ
    specialize h (Set.neg_mem_neg.mpr hฮผ)
    rw [โ† Set.mem_neg, Set.neg_Ici] at h
    convert! h
    rw [iInf, iSup, โ† spectrum_real_eq_range_eigenvalues, โ† spectrum_real_eq_range_eigenvalues]
    rw [โ† spectrum.neg_eq, csInf_neg ?_ (A.finite_real_spectrum.bddAbove), neg_neg]
    exact ContinuousFunctionalCalculus.spectrum_nonempty _ hA
  ยท convert hl using 1
    abel
See it in the graphDiscuss this resultChallenge it