AFTD Auto-Formalizing Theoretical Domains

HermitianMat.spectrum_rcLike

theoremverifiedformalizationimported Lean

We fix a simp-normal form that, for HermitianMat, we always work in terms of the real 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
@[simp]
theorem HermitianMat.spectrum_rcLike (A : HermitianMat n π•œ) :
    spectrum π•œ A.mat = RCLike.ofReal '' spectrum ℝ A.mat
Formalizes
QuantumInfo, `HermitianMat.spectrum_rcLike`
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
16 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 81
Used by 94

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
/-- We fix a simp-normal form that, for HermitianMat, we always work in terms of the real spectrum. -/
@[simp]
theorem HermitianMat.spectrum_rcLike (A : HermitianMat n π•œ) :
    spectrum π•œ A.mat = RCLike.ofReal '' spectrum ℝ A.mat := by
  exact A.H.spectrum_rcLike.symm
See it in the graphDiscuss this resultChallenge it