Proposition. Dual-frame trace is natural and cyclic [fdip-00KF]

Let \(M,N,M'\) be finite free modules over a commutative unital ring \(k\). The intrinsic trace is independent of the finite dual frame used to compute it and is linear in its endomorphism. For \(f:M\to N\), \(g:N\to M\) and an isomorphism \(P:M\to M'\), \[\operatorname {tr}_M(gf)=\operatorname {tr}_N(fg),\qquad \operatorname {tr}_{M'}(PTP^{-1})=\operatorname {tr}_M(T).\] The first identity permits distinct modules. The empty frame gives trace zero on the zero module; all identities include the zero ring.

The duality convention is [stacks2017stacks, More on Algebra, Lemma 74.1], Tag 0FNJ. [stacks2017stacks, Exercises, Exercise 22.6], Tag 02DU asks for trace, naturality and cyclicity on finite locally free modules. The proof here supplies the finite-free case; it is not attributed to a proof in that exercise.

Mathlib's LinearMap.trace is totalized. On the finite-free commutative-ring domain, LinearMap.trace_comp_comm' is rectangular cyclicity and LinearMap.trace_conj' is conjugacy by a linear equivalence. These are the domain and identities used here.