[step:Sum over the symmetric determinant-$n$ correspondence]Summing the one-sheet identity over $\alpha\in R_n$ and using the double-coset expression for $T_n$ gives
\begin{align*}
(T_n f,g)_{\mathrm{Pet}}
=
n^{k/2-1}
\sum_{\alpha\in R_n}
\int_{\mathcal{F}}
f(w)\overline{(g|_k\alpha^\vee)(w)}\,(\operatorname{Im}w)^k\,d\mu_{\mathbb{H}}(w).
\end{align*}
It remains only to identify the finite sum in the second variable with $T_n g$.
Define the determinant-$n$ Hecke correspondence as the quotient
\begin{align*}
\mathcal{C}_n
:=
(\mathbb{H}\times\Delta_n)/(\Gamma\times\Gamma),
\end{align*}
where
\begin{align*}
(\gamma_1,\gamma_2)\cdot(z,\alpha)
:=
(\gamma_2^{-1}z,\gamma_1\alpha\gamma_2).
\end{align*}
The two maps
\begin{align*}
p_1([z,\alpha])&:=[z],\\
p_2([z,\alpha])&:=[\alpha z]
\end{align*}
from $\mathcal{C}_n$ to $\Gamma\backslash\mathbb{H}$ are well defined. In the sheet decomposition determined by the left-coset representatives $R_n$, the operator $T_n$ is the pull-push operator $n^{k/2-1}p_{1*}p_2^*$, which is precisely the sum
\begin{align*}
n^{k/2-1}\sum_{\alpha\in R_n}g|_k\alpha.
\end{align*}
The map
\begin{align*}
\tau:\mathcal{C}_n&\to\mathcal{C}_n\\
[z,\alpha]&\mapsto[\alpha z,\alpha^\vee]
\end{align*}
is well defined. Indeed, for $\gamma_1,\gamma_2\in\Gamma$,
\begin{align*}
(\gamma_1\alpha\gamma_2)^\vee
=
\gamma_2^{-1}\alpha^\vee\gamma_1^{-1},
\end{align*}
which is exactly the [equivalence relation](/page/Equivalence%20Relation) in $\mathcal{C}_n$. Also
\begin{align*}
(\alpha^\vee)^\vee=\alpha,
\end{align*}
so $\tau$ is an involution. Finally,
\begin{align*}
p_1\circ\tau=p_2,
\qquad
p_2\circ\tau=p_1.
\end{align*}
Thus the same correspondence is obtained after swapping the two projections. Consequently the adjoint finite sum
\begin{align*}
n^{k/2-1}\sum_{\alpha\in R_n}g|_k\alpha^\vee
\end{align*}
is the same pull-push operator as
\begin{align*}
n^{k/2-1}\sum_{\alpha\in R_n}g|_k\alpha
=
T_n g.
\end{align*}
This is an equality of the correspondence operator, not a termwise replacement of right cosets by left cosets.
Substituting this identification into the previous displayed formula gives
\begin{align*}
(T_n f,g)_{\mathrm{Pet}}
&=
\int_{\mathcal{F}}
f(w)\overline{(T_n g)(w)}\,(\operatorname{Im}w)^k\,d\mu_{\mathbb{H}}(w)\\
&=
(f,T_n g)_{\mathrm{Pet}}.
\end{align*}
The cusp condition gives exponential decay at the cusp, so all integrals above are absolutely convergent and all finite sums may be interchanged with integration.[/step]