Proposition. The index of the generalized kernel [fdip-013P]

Let \(V\) be a finite-dimensional space over a field \(k\) with \(2\ne 0\), and let \(A\) be odd for a grading \(\Gamma \) of \(V\). Its kernel and generalized kernel are stable under \(\Gamma \), and \[\operatorname {sdim}\ker A^{\dim V}=\operatorname {sdim} V=\dim V_+-\dim V_-.\] The image of this integer in \(k\) is \(\operatorname {tr}\Gamma \). In characteristic zero the trace determines the integer index.

Mathlib's LinearMap.isCompl_iSup_ker_pow_iInf_range_pow gives complementary stabilized kernels and images under the Artinian and Noetherian module hypotheses. Here the parity exchange on the image gives the equality of indices.