TITLE: Intuition behind the Eichler-Shimura relation?
QUESTION [40 upvotes]: The modular curve $X_0(N)$ has good reduction at all primes $p$ not dividing $N$.  At such a prime, the Eichler-Shimura relation expresses the Hecke operator $T_p$ (as an element of the ring of correspondences on the points of $X_0(N)$ in $\overline{ \mathbb{F}_p }$) in terms of the geometric Frobenius map.  This is already weird enough; the definitions of the Hecke operators with which I'm familiar give no indication that such a relation should be true, and the sources I've read so far give no intuition as to why such a relation should be true.  (In fact, I still don't feel very comfortable with the Hecke operators themselves; I like the definition given in Milne the best so far, but any enlightening alternate definitions are welcome if they shed light on the question.)
What's much weirder, to me anyway, is an important corollary of the Eichler-Shimura relation, which says that given a cusp eigenform $f$ of weight $2$ with respect to $\Gamma_0(N)$ it is possible to construct an elliptic curve $E_f$ whose L-function is (more or less) the Mellin transform of $f$.  
There are several reasons this is weird to me, but here's a specific one.  The modular form $f$ satisfies a functional equation more or less by definition.  Its Mellin transform therefore satisfies a corresponding functional equation (part of which has been absorbed into the fact that $f$ is written in terms of its Fourier coefficients), again more or less by definition.  The zeta function of an elliptic curve, however, satisfies a functional equation because (or so I'm told) of Poincaré duality in the étale cohomology.  So:
What on Earth does Poincaré duality have to do with modular symmetry?
(Ignore the above; I seem to have mixed up the local and global functional equations again.)  
One of the many things that's weird about the above is that the L-function of an elliptic curve naturally has an Euler product, but for modular forms the Euler product for the Mellin transform comes about because of certain properties of the Hecke operators (which, again, I don't really understand conceptually).  What do these properties have to do with multiplying local zeta functions together?  

I guess I should also clarify what I mean by "intuition":
For the first part of the question, if something in the definition of the Hecke operators suggests that they should be related to the Frobenius map if certain natural things were true, and the proof of Eichler-Shimura (which I haven't really looked at yet...) consists of verifying these natural things are true, that would be great intuition.  I would appreciate an answer telling me whether or not this was the case in terms of "first principles."
For the second part of the question, intuition might more naturally come from a more sophisticated perspective.  Here I would appreciate an answer about the "big picture" instead, giving some vague high-level sense of how this all fits into more general things people know about automorphic forms and so forth.

REPLY [27 votes]: Let me highlight some issues that Emerton doesn't:
1) you seem to hint that you don't know that modular forms can be viewed as a product of a bunch of local terms. So there is an adelic story, where GL_2(R)/GL_2(Z) gets replaced by GL_2(adeles)/GL_2(Q), and in that story Hecke operators are entirely local objects, each with its own local Euler factor on an eigenform etc etc. Maybe if you knew this story some stuff would be clearer---e.g. a modular form really does have a "local factor at p" for p a prime, but it's an infinite-dimensional representation of GL_2(Q_p)!
2) the "big picture" story of Eichler-Shimura, as I'm sure I've typed into this forum before somewhere, is that Langlands, a long time ago, made conjectures about how the cohomology of a very general class of Shimura varieties can be completely explained using automorphic forms, but the conjectures in full generality are very difficult to explain and have many subtleties (coming from endoscopy, non-compactness at infinity, multiplicity issues and so on). For modular curves the conjectures boil down to the statement that, vaguely speaking, the Tate module of the Jacobian of a compact modular curve X_0(N) should break up into 2-dimensional pieces each explained by an eigenform of weight 2 and level N. But there is a lot of stuff secretly built in there: you're using X_0(N) instead of Y_0(N), you're assuming "multiplicity 1" holds for cusp forms on GL_2, which is a theorem of Jacquet and Langlands, and so on. Once you take all this on board, the precise relation between the pieces and the modular forms is given to you by Eichler-Shimura. If you look at it in this way you can start to guess what e.g. the H^3 of the Siegel modular variety parametrising princ polarized abelian surfaces might look like, but your guess might be wrong, because now endoscopy and failure of multiplicity 1 and issues involving compactification really start rearing their ugly heads in a less trivial way. Somehow there are hundreds of pages of Corvallis devoted to this sort of thing, and one thing Clozel, Harris, Taylor and their collaborators have done in the last few years is to completely sort these issues out in the case of unitary groups when the Shimura variety is compact. Langlands' conjectures are stronger than, but imply, a generalised Eichler-Shimura correspondence in this setting, and probably Matt's approach involving considering correspondences in char p will also give some insights into what the precise statement should be. But my feeling is that it is genuinely hard to explain the big picture without a lot of work the moment one leaves GL_2. If you want to read about another case other than classical modular forms, perhaps the next easiest case is Hilbert modular forms. Good luck!
3) A nice place to read about Eichler-Shimura for GL_2/Q is the appendix by Conrad to "lectures on Serre's Conjectures" by Ribet-Stein.