Theorem. The finite overlap construction [fdip-014D]

Let \(K\) be graded-hermitian on a finite-dimensional complex Hilbert space with self-adjoint grading \(\Gamma \), and let \(\Gamma K\) be invertible. The sign grading \(\Gamma _K\) is a real polynomial in \(\Gamma K\). For \(a>0\) the overlap operator \(D_K\) satisfies the Ginsparg–Wilson relation with modified grading \(-\Gamma _K\), and \[\operatorname {sdim}\ker D_K=\tfrac 12(\operatorname {tr}\Gamma -\operatorname {tr}\Gamma _K).\] The trace of \(\Gamma _K\) counts the positive eigenvalues of \(\Gamma K\) minus the negative ones, with multiplicity.

Mathlib's LinearMap.IsSymmetric.eigenvectorBasis supplies the Hermitian eigenbasis, and Lagrange.eval_interpolate_at_node gives the value of the interpolating polynomial at each distinct node.