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 = LinearMap.comp (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, Nonempty (Basis { x // x ∈ s } R M) then LinearMap.traceAux R (Nonempty.some (_ : Nonempty (Basis { x // x ∈ Exists.choose H } R M))) 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