Eigenvalues: traces of powers, common eigenvectors, Amitsur's theorem, Sylvester's law
Lib.General.LinearAlgebra.Eigenvalues.lean
Reading
Upstream documentation written by Claude
This file collects linear algebra on eigenvalues and characteristic polynomials. It expresses traces of powers and determinants such as
det (1 - c N)through the roots of the characteristic polynomial.Main definitions and results
New.exists_eigenvector_of_commute: common eigenvectors of endomorphisms that preserve a finite-dimensional subspaceSand commute on it, over an algebraically closed field.New.exists_eigenvector_of_trace_mul_eq: if twisted traces of a commuting familyA'are proportional to traces of a commuting familyA, a generalised eigensystem ofAon which one operator has non-zero trace extends to an eigensystem ofA'that is invariant under the twist.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
New.amitsur_charpoly_mem_of_span(Amitsur): for an algebra map to matrices, it suffices to check on a spanning set that the coefficients of the characteristic polynomials lie in the base ring. The proof works with det (1 - t ρ(w)) modulo a power of t and factors 1 - t ρ(w) step by step.New.isConj_diagonal_of_isRoot_charpoly: a complex square matrix whose characteristic polynomial vanishes at pairwise distinct numbers x_i, one for each index i, is conjugate to the diagonal matrix with entries x_i.New.sylvester_law_of_inertia: Sylvester's law of inertia for sign matrices.
Relation to the literature
Known result: Amitsur's theorem that integral characteristic polynomials on a spanning set give them on the whole algebra. It is a consequence of Amitsur's formula for the characteristic polynomial of a sum of matrices. Source: S. A. Amitsur, On the characteristic polynomial of a sum of matrices, Linear and Multilinear Algebra 8 (1980), no. 3, 177-182; G. Chenevier, The p-adic analytic space of pseudocharacters of a profinite group and pseudorepresentations over arbitrary rings, LMS Lecture Note Ser. 414 (2014), (1.5).
Declarations
lemma sylvester_law_of_inertia {s t : n → ℤˣ} (h_form : hᴴ * signMatrix s * h = signMatrix t) : ∃ τ : Perm n, ∀ j : n, s (τ j) = t j
Import route to Main
Lib.General.LinearAlgebra.Eigenvalues → New.Congruences.FirstOrder.RibetMethod (pinned import) → New.Congruences.FirstOrder.RibetLemma (pinned import) → New.Congruences.FirstOrder.RibetElement (pinned import) → New.Congruences.FirstOrder.DenominatorBound (pinned import) → New.Congruences.FitTwistsExist (pinned import) → New.Determinant.Twist.LongForms (pinned import) → New.Reduction.MainInequality (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)