AFTD Auto-Formalizing Theoretical Domains

HermitianMat.ne_zero_iff_ne_zero_spectrum

theoremverifiedformalizationimported Lean

HermitianMat.ne_zero_iff_ne_zero_spectrum

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open HermitianMat in
variable {ฮฑ R ๐•œ : Type*} {m n : Type*} in
variable [Star R] [TrivialStar R] in
variable [RCLike ๐•œ] in
variable {d dโ‚‚ : Type*} [Fintype d] [DecidableEq d] [Fintype dโ‚‚] [DecidableEq dโ‚‚] in
variable [Fintype n] [DecidableEq n] [Fintype m] [DecidableEq m] in
theorem HermitianMat.ne_zero_iff_ne_zero_spectrum (A : HermitianMat n ๐•œ) :
    A โ‰  0 โ†” โˆƒ x โˆˆ spectrum โ„ A.mat, x โ‰  0
Formalizes
QuantumInfo, `HermitianMat.ne_zero_iff_ne_zero_spectrum`
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 83

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open HermitianMat in
variable {ฮฑ R ๐•œ : Type*} {m n : Type*} in
variable [Star R] [TrivialStar R] in
variable [RCLike ๐•œ] in
variable {d dโ‚‚ : Type*} [Fintype d] [DecidableEq d] [Fintype dโ‚‚] [DecidableEq dโ‚‚] in
variable [Fintype n] [DecidableEq n] [Fintype m] [DecidableEq m] in
theorem HermitianMat.ne_zero_iff_ne_zero_spectrum (A : HermitianMat n ๐•œ) :
    A โ‰  0 โ†” โˆƒ x โˆˆ spectrum โ„ A.mat, x โ‰  0 := by
  constructor;
  ยท intro h_nonzero
    contrapose! h_nonzero
    simp only [HermitianMat.ext_iff, mat_zero]
    rw [A.H.spectral_theorem]
    ext i j
    simp [Matrix.mul_apply, Matrix.diagonal]
    refine Finset.sum_eq_zero fun x _ โ†ฆ ?_
    simp [h_nonzero _ <| A.H.spectrum_real_eq_range_eigenvalues.symm โ–ธ Set.mem_range_self _]
  ยท rintro โŸจx, hx, hx'โŸฉ h
    simp [h, spectrum, resolventSet, Algebra.algebraMap_eq_smul_one,
      hx', Matrix.isUnit_iff_isUnit_det] at hx
See it in the graphDiscuss this resultChallenge it