Hi folks,
A couple of remarks.
> Note that this [the Atkin--Lehner on X1(N)] no longer needs to be an involution, and is also
> no longer defined over Q, but they still gives an automorphism.
I think w_N, (or more generally w_Q for any factor Q of N such that
(Q, N/Q) = 1), *is* always an involution when considered as a map from
the modular curve to itself. There is a normalization issue when
defining it as a Hecke operator on modular forms spaces of weight k >
2, which means that some authors have w_N^2 = multiplication by
N^{k-2} etc. It is indeed not defined over Q. (Actually it
interchanges two natural rational structures on X1(N) -- there is a
model of X1(N) that classifies elliptic curves with a point of order
N, and a model which classifies modular curves with an embedding of
the group scheme mu_N, and w_N swaps these.)
> I thought getting w_Q on cusp forms would be straightforward from the
> fact that we have it on modular symbols. Unfortunately, the function
> that one might hope would do this, _convert_matrix_from_modsyms in
> sage/modular/modsym/cuspidal_submodule.py, has the following
> documentation:
> [...]
> This might be a technical restriction which exists for speed reasons.
Unfortunately it's not. It's a genuine shortcoming of the algorithm,
and arises from the fact that there isn't a canonical isomorphism
between modular forms and modular symbols unless you extend to CC (the
periods of forms with rational q-expansions are not rational). The
algorithm used in Sage amounts to cheating, by first computing the
Hecke *algebra* using modular symbols, and then using the fact that
spaces of cusp forms are canonically isomorphic to the duals of their
own Hecke algebras via the pairing (f, T) --> a_1(T . f). If you look
at the code of _convert_matrix_from_modsyms, you can see that it is
actually decomposing the given matrix with respect to a basis of the
Hecke algebra, and it will either fail or return random garbage if the
given matrix isn't in the Hecke algebra in the first place.
The only way I can see to calculate the matrix of the w_Q on a space
of modular forms, with respect to the q-expansion basis, would be to
do it separately on the subspace corresponding to newforms of level D,
for each D dividing N, by doing the calculation at level D first and
then using formulae for how w_Q interacts with the degeneracy maps
from level D to level N. Even the newform calculation is a headache
when the character is nontrivial (because w_N does not commute with
the T_n's in this case either, as it sends a newform f to a scalar
multiple of its complex conjugate).
One of John's former students, Barinder Banwait, was thinking about
this problem at some stage, because he wanted to compute the action of
SL2(Z / p) on modular forms of level Gamma(p); computing the action of
[0, -1; 1, 0] is equivalent to computing the Atkin--Lehner operator on
forms on some GammaH group of level p^2. I don't know exactly how far
he got with this. John?
David
(PS: This email crossed over with John's, but I thought I might as
well send it anyway.)