Structured proof · Unit 140
lemma Data.det_heckeOnGood_eq
trace_heckeOnGood_eq: \operatorname{paramW}(D, v, .) has gap h(D) for s and for s' at every infinite place v, and \operatorname{HasRigidLabels}(D, V) and \operatorname{HasRigidLabels}(D, V') hold. Then for every p in \operatorname{heckeAlgebra}(D) the determinant of \operatorname{heckeOnGood}(D, V)(p) on \operatorname{goodForms}(D, V) equals the determinant of \operatorname{heckeOnGood}(D, V')(p) on \operatorname{goodForms}(D, V').charpoly_eq_mul_of_trace_pow_add), hence equal determinants.Write each determinant as the determinant of the matrix in a basis of the good forms, that is, the product of the roots of its characteristic polynomial.
Uses
LinearMap.det_toMatrix / det_eq_prod_roots_charpoly It suffices that the two characteristic polynomials are equal, and for that (characteristic 0, algebraically closed) that \operatorname{tr}(A^m) = \operatorname{tr}(B^m) for every m \ge 0; the case m = 0 is the equality of the dimensions of the two spaces of good forms, which are not assumed equal.
The m-th power of the matrix of \operatorname{heckeOnGood}(D, V)(p) is the matrix of \operatorname{heckeOnGood}(D, V)(p^m) (a monoid homomorphism), and its trace equals that for V' by
trace_heckeOnGood_eqapplied to p^m.