Cayley–Hamilton TheoremCayley–Hamilton TheorempA(A)=0wherepA(λ)=det(λI−A)Every square matrix satisfies its own characteristic polynomialRead more → — the proof of Cayley–Hamilton for matrices over a commutative ring uses the trace (and more generally the symmetric functions of eigenvalues) to identify coefficients of the characteristic polynomial
Determinant MultiplicativityDeterminant Multiplicativitydet(AB)=det(A)det(B)The determinant of a product equals the product of determinantsRead more → — both trace and determinant are similarity invariants; tr(PAP−1)=tr(A) follows from the cyclic property applied to P, A, P−1
Sylvester Determinant TheoremSylvester Determinant Theoremdet(Im+AB)=det(In+BA)det(Im + AB) = det(In + BA) for any m×n matrix A and n×m matrix B.Read more → — a determinant analogue: just as det(I+AB)=det(I+BA), the cyclic property gives tr(AB)=tr(BA) as a first-order version of the same symmetry
Lean4 Proof
importMathlib.LinearAlgebra.Matrix.Trace/-- Trace cyclic property: tr(A * B) = tr(B * A).
Mathlib's direct alias is `Matrix.trace_mul_comm`. -/theorem trace_cyclic
{R : Type*} [AddCommMonoidR] [CommMagmaR]
{m n : Type*} [Fintype m] [Fintype n]
(A : Matrix m n R) (B : Matrix n m R) :
Matrix.trace (A * B) = Matrix.trace (B * A) :=
Matrix.trace_mul_comm AB