Trace of a linear map #
This file defines the trace of a linear map.
See also LinearAlgebra/Matrix/Trace.lean
for the trace of a matrix.
Tags #
linear_map, trace, diagonal
The trace of an endomorphism given a basis.
Equations
- LinearMap.traceAux R b = Matrix.traceLinearMap ι R R ∘ₗ ↑(LinearMap.toMatrix b b)
Instances For
Trace of an endomorphism independent of basis.
Equations
- LinearMap.trace R M = if H : ∃ (s : Finset M), Nonempty (Basis { x : M // x ∈ s } R M) then LinearMap.traceAux R ⋯.some else 0
Instances For
Auxiliary lemma for trace_eq_matrix_trace
.
The trace of an endomorphism is invariant under conjugation
The trace of a linear map correspond to the contraction pairing under the isomorphism
End(M) ≃ M* ⊗ M
The trace of a linear map correspond to the contraction pairing under the isomorphism
End(M) ≃ M* ⊗ M
When M
is finite free, the trace of a linear map correspond to the contraction pairing under
the isomorphism End(M) ≃ M* ⊗ M
When M
is finite free, the trace of a linear map correspond to the contraction pairing under
the isomorphism End(M) ≃ M* ⊗ M
The trace of the identity endomorphism is the dimension of the free module
The trace of the identity endomorphism is the dimension of the free module