Write for the two given congruence subgroups, to distinguish them from the notation . Their double coset has a finite decomposition
Finiteness follows because has finite index in . To check this without assuming integrality of , clear its denominators: a sufficiently deep principal congruence subgroup lies both in and, after conjugation by , in . Representatives for give the displayed decomposition.
Using the Hecke-normalized rational slash operator from the PDF, define the double-coset operator on modular forms by
Replacing by for changes no term because . Right multiplication by permutes these left cosets, so . Each summand is holomorphic in the complex upper half-plane. At any rational modular cusp, factor with and upper triangular of positive slope, as in 2(i). The cusp expansion of has no negative terms, and substitution by preserves boundedness. The sum is periodic in a cusp coordinate for , so it has a removable singularity there. This proves
If vanishes at all its cusps, the same argument gives vanishing for the image too.
Now set . For an integer prime to , choose with lower-right entry congruent to modulo . Such a lift exists by choosing with and using . The subgroup is normal in , and its quotient is through the lower-right entry. Define the diamond operator by
Different lifts differ by a member of , so this is well defined. The diamond operators satisfy .
For a prime , put and define the Hecke operator
Choose with and set . A complete set of left-coset representatives is
Here and , with both right factors in . To prove completeness, consists of the members of whose upper-right entry is divisible by . Reduction of modulo is onto : use the Chinese remainder theorem to impose identity modulo and any chosen determinant-one matrix modulo , then lift to by elementary matrices. Reduction of is the lower triangular subgroup. Its left cosets correspond to the lines of top rows in . The right factors give lines , while the last factor gives with . They are all the lines, proving the decomposition.
The printed slash normalization now gives and
Thus
To prove commutation, use the marked-lattice model of a modular form. A pair consists of a lattice and a point of exact order modulo , and a weight- function satisfies . In a basis with , it represents . The diamond operator multiplies by . The same Hecke operator is
Every marked point retains exact order : multiplication by is invertible on its cyclic group, since . This lattice sum agrees with the displayed slash sum. Its overlattices with basis give the first terms, and the remaining one with basis has normalized marked point , giving . Multiplying the mark by commutes with passage to each overlattice and does not change the set of overlattices. Hence
Finally write . The first term of contains the finite average
It therefore contributes to the coefficient of . The second term contributes if , and zero otherwise. This proves the good-prime and bad-prime Hecke coefficient formula at a good prime, without assuming that has a particular character:
where a nonintegral coefficient index means zero. For both terms are retained. On a diamond-character eigenspace the second term becomes .