feat(LinearAlgebra/Eigenspace/Matrix): a scalar is in the spectrum iff it's an eigenvalue#39635
Conversation
…f it's an eigenvalue
PR summary 6bdb86423aImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
Co-authored-by: Monica Omar <[email protected]>
| IsUnit f ↔ ∀ v, f v = 0 → v = 0 := by | ||
| simp_rw [← spectrum.zero_notMem_iff K, ← hasEigenvalue_iff_mem_spectrum, | ||
| hasEigenvalue_iff_exists_map_eq_smul, zero_smul] | ||
| grind only |
There was a problem hiding this comment.
This is a weird detour, going through spectrum to show this.
This is actually a one-liner, and doesn't need Field, only DivisonRing:
theorem isUnit_iff_forall_map_eq_zero [FiniteDimensional K V] {f : End K V} :
IsUnit f ↔ ∀ v, f v = 0 → v = 0 :=
f.isUnit_iff_ker_eq_bot.trans f.ker_eq_bot'given that, I think just remove this? Or perhaps move to another PR if you think it's necessary?
There was a problem hiding this comment.
Sure, but you were the one who asked me to add this in the first place
I think mem_spectrum_of_map_eq_smul is also unnecessary
There was a problem hiding this comment.
Looking back at it maybe I misunderstood and you only asked for a linear map version of mem_spectrum_of_mulVec_eq_smul and not all three
There was a problem hiding this comment.
Sorry, I should've been clearer. I think mem_spectrum_of_map_eq_smul could be useful (just like the matrix version)?
| simp_rw [← spectrum_toLin', ← hasEigenvalue_iff_mem_spectrum, | ||
| hasEigenvalue_iff_exists_map_eq_smul, toLin'_apply] | ||
|
|
||
| theorem isUnit_iff_forall_mulVec_eq_zero {K : Type*} [Field K] {A : Matrix n n K} : |
There was a problem hiding this comment.
I don't think this belongs in this file now (not using anything about spectrum anymore)
|
|
||
| alias ⟨_, HasEigenvalue.of_mem_spectrum⟩ := hasEigenvalue_iff_mem_spectrum | ||
|
|
||
| theorem mem_spectrum_of_map_eq_smul {f : End R M} {v : M} {a : R} (h0 : v ≠ 0) (h : f v = a • v) : |
There was a problem hiding this comment.
to keep things consistent with the files, can you use \mu instead of a for the eigenvalue (here and below, and also for the matrix lemmas)?
#Is there code for X? > Matrix eigenvalues: spectrum and mulVec