Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
r""" Type spaces of newforms
Let `f` be a new modular eigenform of level `\Gamma_1(N)`, and `p` a prime dividing `N`, with `N = Mp^r` (`M` coprime to `p`). Suppose the power of `p` dividing the conductor of the character of `f` is `p^c` (so `c \le r`).
Then there is an integer `u`, which is `\operatorname{min}([r/2], r-c)`, such that any twist of `f` by a character mod `p^u` also has level `N`. The *type space* of `f` is the span of the modular eigensymbols corresponding to all of these twists, which lie in a space of modular symbols for a suitable `\Gamma_H` subgroup. This space is the key to computing the isomorphism class of the local component of the newform at `p`.
""" from __future__ import absolute_import from six.moves import range
import operator from sage.misc.misc import verbose, cputime from sage.modular.arithgroup.all import GammaH from sage.modular.modform.element import Newform from sage.modular.modform.constructor import ModularForms from sage.modular.modsym.modsym import ModularSymbols from sage.rings.all import ZZ, Zmod, QQ from sage.rings.fast_arith import prime_range from sage.arith.all import crt from sage.structure.sage_object import SageObject from sage.matrix.constructor import matrix from sage.misc.cachefunc import cached_method, cached_function
from .liftings import lift_gen_to_gamma1, lift_ramified
@cached_function def example_type_space(example_no = 0): r""" Quickly return an example of a type space. Used mainly to speed up doctesting.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space() # takes a while but caches stuff (21s on sage.math, 2012) 6-dimensional type space at prime 7 of form q + ... + O(q^6)
The above test takes a long time, but it precomputes and caches various things such that subsequent doctests can be very quick. So we don't want to mark it ``# long time``. """ # a fairly generic example # a non-minimal example # a smaller example with QQ coefficients # a ramified (odd p-power level) case
def find_in_space(f, A, base_extend=False): r""" Given a Newform object `f`, and a space `A` of modular symbols of the same weight and level, find the subspace of `A` which corresponds to the Hecke eigenvalues of `f`.
If ``base_extend = True``, this will return a 2-dimensional space generated by the plus and minus eigensymbols of `f`. If ``base_extend = False`` it will return a larger space spanned by the eigensymbols of `f` and its Galois conjugates.
(NB: "Galois conjugates" needs to be interpreted carefully -- see the last example below.)
`A` should be an ambient space (because non-ambient spaces don't implement ``base_extend``).
EXAMPLES::
sage: from sage.modular.local_comp.type_space import find_in_space
Easy case (`f` has rational coefficients)::
sage: f = Newform('99a'); f q - q^2 - q^4 - 4*q^5 + O(q^6) sage: A = ModularSymbols(GammaH(99, [13])) sage: find_in_space(f, A) Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 25 for Congruence Subgroup Gamma_H(99) with H generated by [13] of weight 2 with sign 0 and over Rational Field
Harder case::
sage: f = Newforms(23, names='a')[0] sage: A = ModularSymbols(Gamma1(23)) sage: find_in_space(f, A, base_extend=True) Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 45 for Gamma_1(23) of weight 2 with sign 0 and over Number Field in a0 with defining polynomial x^2 + x - 1 sage: find_in_space(f, A, base_extend=False) Modular Symbols subspace of dimension 4 of Modular Symbols space of dimension 45 for Gamma_1(23) of weight 2 with sign 0 and over Rational Field
An example with character, indicating the rather subtle behaviour of ``base_extend``::
sage: chi = DirichletGroup(5).0 sage: f = Newforms(chi, 7, names='c')[0]; f # long time (4s on sage.math, 2012) q + c0*q^2 + (zeta4*c0 - 5*zeta4 + 5)*q^3 + ((-5*zeta4 - 5)*c0 + 24*zeta4)*q^4 + ((10*zeta4 - 5)*c0 - 40*zeta4 - 55)*q^5 + O(q^6) sage: find_in_space(f, ModularSymbols(Gamma1(5), 7), base_extend=True) # long time Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 12 for Gamma_1(5) of weight 7 with sign 0 and over Number Field in c0 with defining polynomial x^2 + (5*zeta4 + 5)*x - 88*zeta4 over its base field sage: find_in_space(f, ModularSymbols(Gamma1(5), 7), base_extend=False) # long time (27s on sage.math, 2012) Modular Symbols subspace of dimension 4 of Modular Symbols space of dimension 12 for Gamma_1(5) of weight 7 with sign 0 and over Cyclotomic Field of order 4 and degree 2
Note that the base ring in the second example is `\QQ(\zeta_4)` (the base ring of the character of `f`), *not* `\QQ`. """ raise ValueError( "Weight of space does not match weight of form" ) raise ValueError( "Level of space does not match level of form" )
else:
else:
raise ArithmeticError( "Error in find_in_space: " + "got dimension %s (should be %s)" % (D.dimension(), expected_dimension) )
class TypeSpace(SageObject): r""" The modular symbol type space associated to a newform, at a prime dividing the level. """ ################################################# # Basic initialisation and data-access functions #################################################
def __init__(self, f, p, base_extend=True): r""" EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space() # indirect doctest 6-dimensional type space at prime 7 of form q + ... + O(q^6) """ raise ValueError( "p must divide level" )
def _repr_(self): r""" String representation of self.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space()._repr_() '6-dimensional type space at prime 7 of form q + ... + O(q^6)' """
def prime(self): r""" Return the prime `p`.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space().prime() 7 """
def form(self): r""" The newform of which this is the type space.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space().form() q + ... + O(q^6) """
def conductor(self): r""" Exponent of `p` dividing the level of the form.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space().conductor() 2 """
def character_conductor(self): r""" Exponent of `p` dividing the conductor of the character of the form.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space().character_conductor() 0 """
def u(self): r""" Largest integer `u` such that level of `f_\chi` = level of `f` for all Dirichlet characters `\chi` modulo `p^u`.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space().u() 1 sage: from sage.modular.local_comp.type_space import TypeSpace sage: f = Newforms(Gamma1(5), 5, names='a')[0] sage: TypeSpace(f, 5).u() 0 """
def free_module(self): r""" Return the underlying vector space of this type space.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space().free_module() Vector space of dimension 6 over Number Field in a1 with defining polynomial ... """
def eigensymbol_subspace(self): r""" Return the subspace of self corresponding to the plus eigensymbols of `f` and its Galois conjugates (as a subspace of the vector space returned by :meth:`~free_module`).
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: T = example_type_space(); T.eigensymbol_subspace() Vector space of degree 6 and dimension 1 over Number Field in a1 with defining polynomial ... Basis matrix: [...] sage: T.eigensymbol_subspace().is_submodule(T.free_module()) True """
def tame_level(self): r""" The level away from `p`.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space().tame_level() 2 """
def group(self): r""" Return a `\Gamma_H` group which is the level of all of the relevant twists of `f`.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space().group() Congruence Subgroup Gamma_H(98) with H generated by [43] """
############################################################################### # Testing minimality: is this form a twist of a form of strictly smaller level? ###############################################################################
@cached_method def is_minimal(self): r""" Return True if there exists a newform `g` of level strictly smaller than `N`, and a Dirichlet character `\chi` of `p`-power conductor, such that `f = g \otimes \chi` where `f` is the form of which this is the type space. To find such a form, use :meth:`~minimal_twist`.
The result is cached.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space().is_minimal() True sage: example_type_space(1).is_minimal() False """
def minimal_twist(self): r""" Return a newform (not necessarily unique) which is a twist of the original form `f` by a Dirichlet character of `p`-power conductor, and which has minimal level among such twists of `f`.
An error will be raised if `f` is already minimal.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import TypeSpace, example_type_space sage: T = example_type_space(1) sage: T.form().q_expansion(12) q - q^2 + 2*q^3 + q^4 - 2*q^6 - q^8 + q^9 + O(q^12) sage: g = T.minimal_twist() sage: g.q_expansion(12) q - q^2 - 2*q^3 + q^4 + 2*q^6 + q^7 - q^8 + q^9 + O(q^12) sage: g.level() 14 sage: TypeSpace(g, 7).is_minimal() True
Test that :trac:`13158` is fixed::
sage: f = Newforms(256,names='a')[0] sage: T = TypeSpace(f,2) sage: g = T.minimal_twist(); g q - a*q^3 + O(q^6) sage: g.level() 64 """ raise ValueError( "Form is already minimal" )
##################################### # The group action on the type space. #####################################
def _rho_s(self, g): r""" Calculate the action of ``g`` on the type space, where ``g`` has determinant `1`. For internal use; this gets called by :meth:`~rho`.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: T = example_type_space(2) sage: T._rho_s([1,1,0,1]) [ 0 0 0 -1] [ 0 0 -1 0] [ 0 1 -2 1] [ 1 0 -1 1] sage: T._rho_s([0,-1,1,0]) [ 0 1 -2 1] [ 0 0 -1 0] [ 0 -1 0 0] [ 1 -2 1 0] sage: example_type_space(3)._rho_s([1,1,0,1]) [ 0 1] [-1 -1] """
else:
@cached_method def _second_gen_unramified(self): r""" Calculate the action of the matrix [0, -1; 1, 0] on the type space, in the unramified (even level) case.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: T = example_type_space(2) sage: T._second_gen_unramified() [ 0 1 -2 1] [ 0 0 -1 0] [ 0 -1 0 0] [ 1 -2 1 0] sage: T._second_gen_unramified()**4 == 1 True """
def _rho_unramified(self, g): r""" Calculate the action of ``g`` on the type space, in the unramified (even level) case. Uses the two standard generators, and a solution of the word problem in `{\rm SL}_2(\ZZ / p^u \ZZ)`.
INPUT:
- ``g`` -- 4-tuple of integers (or more generally anything that can be converted into an element of the matrix group `{\rm SL}_2(\ZZ / p^u \ZZ)`).
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: T = example_type_space(2) sage: T._rho_unramified([2,1,1,1]) [-1 1 -1 1] [ 0 0 0 1] [ 1 -1 0 1] [ 1 -2 1 0] sage: T._rho_unramified([1,-2,1,-1]) == T._rho_unramified([2,1,1,1]) * T._rho_unramified([0,-1,1,0]) True """
def _rho_ramified(self, g): r""" Calculate the action of a group element on the type space in the ramified (odd conductor) case.
For internal use (called by :meth:`~rho`).
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: T = example_type_space(3) sage: T._rho_ramified([1,0,3,1]) [-1 -1] [ 1 0] sage: T._rho_ramified([1,3,0,1]) == 1 True """
def _group_gens(self): r""" Return a set of generators of the group `S(K_0) / S(K_u)` (which is either `{\rm SL}_2(\ZZ / p^u \ZZ)` if the conductor is even, and a quotient of an Iwahori subgroup if the conductor is odd).
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space()._group_gens() [[1, 1, 0, 1], [0, -1, 1, 0]] sage: example_type_space(3)._group_gens() [[1, 1, 0, 1], [1, 0, 3, 1], [2, 0, 0, 5]] """ else: return [ [ZZ(1), ZZ(1), ZZ(0), ZZ(1)], [ZZ(1), ZZ(0), ZZ(p), ZZ(1)] ] else: [ZZ(a), 0, 0, ZZ(~a)] ]
def _intertwining_basis(self, a): r""" Return a basis for the set of homomorphisms between this representation and the same representation conjugated by [a,0; 0,1], where a is a generator of `(Z/p^uZ)^\times`. These are the "candidates" for extending the rep to a `\mathrm{GL}_2`-rep.
Depending on the example, the hom-space has dimension either `1` or `2`.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space(2)._intertwining_basis(2) [ [ 1 -2 1 0] [ 1 -1 0 1] [ 1 0 -1 1] [ 0 1 -2 1] ] sage: example_type_space(3)._intertwining_basis(2) [ [ 1 0] [0 1] [-1 -1], [1 0] ] """ else:
# f is smallest p-power such that rho is trivial modulo f
def _discover_torus_action(self): r""" Calculate and store the data necessary to extend the action of `S(K_0)` to `K_0`.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: example_type_space(2).rho([2,0,0,1]) # indirect doctest [ 1 -2 1 0] [ 1 -1 0 1] [ 1 0 -1 1] [ 0 1 -2 1] """ raise NotImplementedError
def rho(self, g): r""" Calculate the action of the group element `g` on the type space.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: T = example_type_space(2) sage: m = T.rho([2,0,0,1]); m [ 1 -2 1 0] [ 1 -1 0 1] [ 1 0 -1 1] [ 0 1 -2 1] sage: v = T.eigensymbol_subspace().basis()[0] sage: m * v == v True
We test that it is a left action::
sage: T = example_type_space(0) sage: a = [0,5,4,3]; b = [0,2,3,5]; ab = [1,4,2,2] sage: T.rho(ab) == T.rho(a) * T.rho(b) True
An odd level example::
sage: from sage.modular.local_comp.type_space import TypeSpace sage: T = TypeSpace(Newform('54a'), 3) sage: a = [0,1,3,0]; b = [2,1,0,1]; ab = [0,1,6,3] sage: T.rho(ab) == T.rho(a) * T.rho(b) True """ raise NotImplementedError( "Group action on non-minimal type space not implemented" )
# silly special case: rep is principal series or special, so SL2 # action on type space is trivial raise ValueError( "Representation is not supercuspidal" )
# g is in S(K_0) (easy case)
# g is in K_0, but not in S(K_0)
# funny business
if all([x.valuation(p) > 0 for x in g]): eps = self.form().character()(crt(1, p, f, self.tame_level())) return ~eps * self.rho([x // p for x in g]) else: raise ArithmeticError( "g(={0}) not in K".format(g) )
else:
def _unif_ramified(self): r""" Return the action of [0,-1,p,0], in the ramified (odd p-power level) case.
EXAMPLES::
sage: from sage.modular.local_comp.type_space import example_type_space sage: T = example_type_space(3) sage: T._unif_ramified() [-1 0] [ 0 -1]
""" |