[step:Reduce the Hecke operator to its special fibre correspondence]Let $k := \overline{\mathbb F}_p$, and let
\begin{align*}
C := X_0(N)_k
\end{align*}
denote the smooth proper modular curve over $k$ obtained as the geometric special fibre. Let
\begin{align*}
H := H^1_{\mathrm{\acute{e}t}}(C,\mathbb Q_\ell)
\end{align*}
denote its first $\ell$-adic étale cohomology group. Since $p \nmid N$, the modular curve $X_0(N)$ has good reduction at $p$, so $C$ is smooth and proper over $k$, and the usual $p$-th Hecke correspondence extends to the integral model over $\mathbb Z_p$.
Let $Y_0(N,p)_k$ be the special fibre over $k$ of the modular curve classifying triples $(E,G,H_p)$, where $E$ is an elliptic curve over a $k$-scheme, $G \subset E$ is a cyclic subgroup of order $N$, and $H_p \subset E$ is a finite flat subgroup of order $p$. Define the two degeneracy maps
\begin{align*}
\alpha,\beta: Y_0(N,p)_k &\to C
\end{align*}
by
\begin{align*}
\alpha(E,G,H_p) &= (E,G), \\
\beta(E,G,H_p) &= (E/H_p,(G+H_p)/H_p).
\end{align*}
The action of the reduced Hecke correspondence on $H$ is the pull-push operator
\begin{align*}
T_p := \beta_*\alpha^*: H \to H,
\end{align*}
where $\alpha^*$ is pullback in étale cohomology and $\beta_*$ is the trace pushforward for the finite morphism $\beta$.
The equality of the generic Hecke action with this special fibre action follows from the [proper smooth base change theorem](/page/Proper%20Smooth%20Base%20Change): the model is proper and smooth at $p$, and $\ell \ne p$, so $H^1_{\mathrm{\acute{e}t}}$ is identified after specialization in a way compatible with finite correspondences.[/step]