In category theory, a branch of mathematics, the categorical trace is a generalization of the trace of a matrix.
The trace is defined in the context of a symmetric monoidal category C, i.e., a category equipped with a suitable notion of a product
⊗
X\vee
f:X\toX
tr(f):1 \stackrel{coev}{\longrightarrow} X ⊗ X\vee \stackrel{f ⊗ \operatorname{id}}{\longrightarrow} X ⊗ X\vee \stackrel{twist}{\longrightarrow} X\vee ⊗ X \stackrel{eval}{\longrightarrow} 1
The same definition applies, to great effect, also when C is a symmetric monoidal ∞-category.
k\tok
which is the multiplication by the trace of the endomorphism f in the usual sense of linear algebra.
tr(\operatorname{id}V)=\sumi(-1)i\operatorname{rank}Vi.
have used categorical trace methods to prove an algebro-geometric version of the Atiyah–Bott fixed point formula, an extension of the Lefschetz fixed point formula.