Zulip Chat Archive
Stream: Is there code for X?
Topic: matrix det
Alex Zhang (Jul 10 2021 at 20:04):
Is there any code for " the det of a square matrix is the product of its eigenvalues"?
Kevin Buzzard (Jul 10 2021 at 20:06):
You have to be careful what you mean by eigenvalues here, for example there are issues with multiplicities and with eigenvalues not being defined over the base field. What I'm saying is that you are asking for a proof but it might even be nontrivial to write down the statement. Why not try it?
Alex Zhang (Jul 10 2021 at 20:09):
Yeah, it is not trivial to formalise the statement. I was just being lazy here to ask for any existing code.
I will try to write it down myself.
Anne Baanen (Jul 11 2021 at 16:18):
We have docs#det_eq_sign_char_poly_coeff, but nothing connecting the characteristic polynomial and eigenvalues as far as I know.
Kevin Buzzard (Jul 11 2021 at 16:39):
What we would need here is a theory of algebraic (and geometric?) multiplicities of eigenvalues. The geometric multiplicity is the dimension of the eigenspace. The algebraic multiplicity is the dimension of the generalised eigenspace. Do we have either of these?
Adam Topaz (Jul 11 2021 at 17:35):
We have both docs#module.End.eigenspace and docs#module.End.generalized_eigenspace
Kevin Buzzard (Jul 11 2021 at 18:54):
That's not the generalised eigenspace because it takes an extra parameter
Adam Topaz (Jul 11 2021 at 19:16):
You're right, of course, and we also have this (with a strange name) docs#module.End.maximal_generalized_eigenspace
David Wärn (Jul 11 2021 at 19:29):
Probably what you need is that multiplicity of a root in the characteristic polynomial equals dimension of generalised eigenspace
Kevin Buzzard (Jul 11 2021 at 19:32):
A natural proof of this would go via structure theorem of f.g. modules over a PID.
Kevin Buzzard (Jul 11 2021 at 19:32):
and also the theory of internal direct sums, which I will get around to at some point
David Wärn (Jul 11 2021 at 19:39):
It's natural but maybe a sledgehammer?
David Wärn (Jul 11 2021 at 19:42):
If you have a subspace and an endomorphism which restricts to , then there's is also an endomorphism , and . The generalised eigenspace in an example of such a , so this expresses the char poly as a product
David Wärn (Jul 11 2021 at 19:43):
The eigenvalue is not a root of the second poly (since the corresponding matrix is invertible). But you need to prove that the char poly of a nilpotent matrix is
David Wärn (Jul 11 2021 at 20:05):
Although for the original question you can just define the multisets of eigenvalues as the roots of the characteristic polynomial. Then you should be able to prove in mathlib that the product is the determinant?
Last updated: Dec 20 2023 at 11:08 UTC