Spaces of distributions for Pollack-Stevens modular symbols¶
The Pollack-Stevens version of modular symbols take values on a
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import Symk
sage: S = Symk(6); S
Sym^6 Q^2
sage: v = S(list(range(7))); v
(0, 1, 2, 3, 4, 5, 6)
sage: v.act_right([1,2,3,4])
(18432, 27136, 39936, 58752, 86400, 127008, 186624)
sage: S = Symk(4,Zp(5)); S
Sym^4 Z_5^2
sage: S([1,2,3,4,5])
(1 + O(5^20), 2 + O(5^20), 3 + O(5^20), 4 + O(5^20), 5 + O(5^21))
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions
sage: D = OverconvergentDistributions(3, 11, 5); D
Space of 11-adic distributions with k=3 action and precision cap 5
sage: D([1,2,3,4,5])
(1 + O(11^5), 2 + O(11^4), 3 + O(11^3), 4 + O(11^2), 5 + O(11))
- class sage.modular.pollack_stevens.distributions.OverconvergentDistributions_abstract(k, p=None, prec_cap=None, base=None, character=None, adjuster=None, act_on_left=False, dettwist=None, act_padic=False, implementation=None)[source]¶
Bases:
ModuleParent object for distributions. Not to be used directly, see derived classes
Symk_classandOverconvergentDistributions_class.INPUT:
k– integer; is the usual modular forms weight minus 2p–Noneor primeprec_cap–Noneor positive integerbase–Noneor the base ring over which to construct the distributionscharacter–Noneor Dirichlet characteradjuster–Noneor a way to specify the action among different conventionsact_on_left– boolean (default:False)dettwist–Noneor integer (twist by determinant); ignored for Symk spacesact_padic– boolean (default:False); ifTrue, will allow action by -adic matricesimplementation– string (default:None); either automatic (ifNone),'vector'or'long'
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions sage: OverconvergentDistributions(2, 17, 100) Space of 17-adic distributions with k=2 action and precision cap 100 sage: D = OverconvergentDistributions(2, 3, 5); D Space of 3-adic distributions with k=2 action and precision cap 5 sage: type(D) <class 'sage.modular.pollack_stevens.distributions.OverconvergentDistributions_class_with_category'>
- acting_matrix(g, M)[source]¶
Return the matrix for the action of
onself, truncated to the first moments.EXAMPLES:
sage: V = Symk(3) sage: from sage.modular.pollack_stevens.sigma0 import Sigma0 sage: V.acting_matrix(Sigma0(1)([3,4,0,1]), 4) [27 36 48 64] [ 0 9 24 48] [ 0 0 3 12] [ 0 0 0 1] sage: from sage.modular.btquotients.pautomorphicform import _btquot_adjuster sage: V = Symk(3, adjuster = _btquot_adjuster()) sage: from sage.modular.pollack_stevens.sigma0 import Sigma0 sage: V.acting_matrix(Sigma0(1)([3,4,0,1]), 4) [ 1 4 16 64] [ 0 3 24 144] [ 0 0 9 108] [ 0 0 0 27]
- approx_module(M=None)[source]¶
Return the
-th approximation module, or if is not specified, return the largest approximation module.INPUT:
M–Noneor nonnegative integer that is at most the precision cap
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions sage: D = OverconvergentDistributions(0, 5, 10) sage: D.approx_module() Ambient free module of rank 10 over the principal ideal domain 5-adic Ring with capped absolute precision 10 sage: D.approx_module(1) Ambient free module of rank 1 over the principal ideal domain 5-adic Ring with capped absolute precision 10 sage: D.approx_module(0) Ambient free module of rank 0 over the principal ideal domain 5-adic Ring with capped absolute precision 10
Note that
Mmust be at most the precision cap, and must be nonnegative:sage: D.approx_module(11) Traceback (most recent call last): ... ValueError: M (=11) must be less than or equal to the precision cap (=10) sage: D.approx_module(-1) Traceback (most recent call last): ... ValueError: rank (=-1) must be nonnegative
- basis(M=None)[source]¶
Return a basis for this space of distributions.
INPUT:
M– (default:None) if notNone, specifies theM-th approximation module, in case that this makes sense
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions, Symk sage: D = OverconvergentDistributions(0, 7, 4); D Space of 7-adic distributions with k=0 action and precision cap 4 sage: D.basis() [(1 + O(7^4), O(7^3), O(7^2), O(7)), (O(7^4), 1 + O(7^3), O(7^2), O(7)), (O(7^4), O(7^3), 1 + O(7^2), O(7)), (O(7^4), O(7^3), O(7^2), 1 + O(7))] sage: D.basis(2) [(1 + O(7^2), O(7)), (O(7^2), 1 + O(7))] sage: D = Symk(3, base=QQ); D Sym^3 Q^2 sage: D.basis() [(1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1)] sage: D.basis(2) Traceback (most recent call last): ... ValueError: Sym^k objects do not support approximation modules
- clear_cache()[source]¶
Clear some caches that are created only for speed purposes.
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions, Symk sage: D = OverconvergentDistributions(0, 7, 10) sage: D.clear_cache()
- lift(p=None, M=None, new_base_ring=None)[source]¶
Return distribution space that contains lifts with given
p, precision capM, and base ringnew_base_ring.INPUT:
p– prime orNoneM– nonnegative integer orNonenew_base_ring– ring orNone
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions, Symk sage: D = Symk(0, Qp(7)); D Sym^0 Q_7^2 sage: D.lift(M=20) Space of 7-adic distributions with k=0 action and precision cap 20 sage: D.lift(p=7, M=10) Space of 7-adic distributions with k=0 action and precision cap 10 sage: D.lift(p=7, M=10, new_base_ring=QpCR(7,15)).base_ring() 7-adic Field with capped relative precision 15
- precision_cap()[source]¶
Return the precision cap on distributions.
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions, Symk sage: D = OverconvergentDistributions(0, 7, 10); D Space of 7-adic distributions with k=0 action and precision cap 10 sage: D.precision_cap() 10 sage: D = Symk(389, base=QQ); D Sym^389 Q^2 sage: D.precision_cap() 390
- prime()[source]¶
Return prime
such that this is a space of -adic distributions.In case this space is Symk of a non-padic field, we return 0.
OUTPUT: a prime or 0
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions, Symk sage: D = OverconvergentDistributions(0, 7); D Space of 7-adic distributions with k=0 action and precision cap 20 sage: D.prime() 7 sage: D = Symk(4, base=GF(7)); D Sym^4 (Finite Field of size 7)^2 sage: D.prime() 0
But Symk of a
-adic field does work:sage: D = Symk(4, base=Qp(7)); D Sym^4 Q_7^2 sage: D.prime() 7 sage: D.is_symk() True
- random_element(M=None, **args)[source]¶
Return a random element of the
-th approximation module with nonnegative valuation.INPUT:
M–Noneor a nonnegative integer
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions sage: D = OverconvergentDistributions(0, 5, 10) sage: D.random_element() (..., ..., ..., ..., ..., ..., ..., ..., ..., ...) sage: D.random_element(0) () sage: D.random_element(5) (..., ..., ..., ..., ...) sage: D.random_element(-1) Traceback (most recent call last): ... ValueError: rank (=-1) must be nonnegative sage: D.random_element(11) Traceback (most recent call last): ... ValueError: M (=11) must be less than or equal to the precision cap (=10)
- weight()[source]¶
Return the weight of this distribution space.
The standard caveat applies, namely that the weight of
is defined to be , not .OUTPUT: nonnegative integer
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions, Symk sage: D = OverconvergentDistributions(0, 7); D Space of 7-adic distributions with k=0 action and precision cap 20 sage: D.weight() 0 sage: OverconvergentDistributions(389, 7).weight() 389
- class sage.modular.pollack_stevens.distributions.OverconvergentDistributions_class(k, p=None, prec_cap=None, base=None, character=None, adjuster=None, act_on_left=False, dettwist=None, act_padic=False, implementation=None)[source]¶
Bases:
OverconvergentDistributions_abstractThe class of overconvergent distributions.
This class represents the module of finite approximation modules, which are finite-dimensional spaces with a
action which approximate the module of overconvergent distributions. There is a specialization map to the finite-dimensional Symk module as well.EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions sage: D = OverconvergentDistributions(0, 5, 10) sage: TestSuite(D).run()
- change_ring(new_base_ring)[source]¶
Return space of distributions like this one, but with the base ring changed.
INPUT:
new_base_ring– a ring over which the distribution can be coerced
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions, Symk sage: D = OverconvergentDistributions(0, 7, 4); D Space of 7-adic distributions with k=0 action and precision cap 4 sage: D.base_ring() 7-adic Ring with capped absolute precision 4 sage: D2 = D.change_ring(QpCR(7)); D2 Space of 7-adic distributions with k=0 action and precision cap 4 sage: D2.base_ring() 7-adic Field with capped relative precision 20
- is_symk()[source]¶
Whether or not this distributions space is
for some ring .EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions, Symk sage: D = OverconvergentDistributions(4, 17, 10); D Space of 17-adic distributions with k=4 action and precision cap 10 sage: D.is_symk() False sage: D = Symk(4); D Sym^4 Q^2 sage: D.is_symk() True sage: D = Symk(4, base=GF(7)); D Sym^4 (Finite Field of size 7)^2 sage: D.is_symk() True
- specialize(new_base_ring=None)[source]¶
Return distribution space got by specializing to
, over thenew_base_ring. Ifnew_base_ringis not given, use currentbase_ring.EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions, Symk sage: D = OverconvergentDistributions(0, 7, 4); D Space of 7-adic distributions with k=0 action and precision cap 4 sage: D.is_symk() False sage: D2 = D.specialize(); D2 Sym^0 Z_7^2 sage: D2.is_symk() True sage: D2 = D.specialize(QQ); D2 Sym^0 Q^2
- class sage.modular.pollack_stevens.distributions.OverconvergentDistributions_factory[source]¶
Bases:
UniqueFactoryCreate a space of distributions.
INPUT:
k– nonnegative integerp– prime number orNoneprec_cap– positive integer orNonebase– ring orNonecharacter– a Dirichlet character orNoneadjuster–Noneor callable that turns 2 x 2 matrices into a 4-tupleact_on_left– boolean (default:False)dettwist– integer orNone(interpreted as 0)act_padic– whether monoid should allow -adic coefficientsimplementation– string (default:None); eitherNone(for automatic),'long', or'vector'
EXAMPLES:
sage: D = OverconvergentDistributions(3, 11, 20) sage: D Space of 11-adic distributions with k=3 action and precision cap 20 sage: v = D([1,0,0,0,0]) sage: v.act_right([2,1,0,1]) (8 + O(11^5), 4 + O(11^4), 2 + O(11^3), 1 + O(11^2), 6 + O(11))
sage: D = OverconvergentDistributions(3, 11, 20, dettwist=1) sage: v = D([1,0,0,0,0]) sage: v.act_right([2,1,0,1]) (5 + 11 + O(11^5), 8 + O(11^4), 4 + O(11^3), 2 + O(11^2), 1 + O(11))
- create_key(k, p=None, prec_cap=None, base=None, character=None, adjuster=None, act_on_left=False, dettwist=None, act_padic=False, implementation=None)[source]¶
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions sage: OverconvergentDistributions(20, 3, 10) # indirect doctest Space of 3-adic distributions with k=20 action and precision cap 10 sage: TestSuite(OverconvergentDistributions).run()
- class sage.modular.pollack_stevens.distributions.Symk_class(k, base, character, adjuster, act_on_left, dettwist, act_padic, implementation)[source]¶
Bases:
OverconvergentDistributions_abstractEXAMPLES:
sage: D = sage.modular.pollack_stevens.distributions.Symk(4); D Sym^4 Q^2 sage: TestSuite(D).run() # indirect doctest
- base_extend(new_base_ring)[source]¶
Extend scalars to a new base ring.
EXAMPLES:
sage: Symk(3).base_extend(Qp(3)) Sym^3 Q_3^2
- change_ring(new_base_ring)[source]¶
Return a Symk with the same
but a different base ring.EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions, Symk sage: D = OverconvergentDistributions(0, 7, 4); D Space of 7-adic distributions with k=0 action and precision cap 4 sage: D.base_ring() 7-adic Ring with capped absolute precision 4 sage: D2 = D.change_ring(QpCR(7)); D2 Space of 7-adic distributions with k=0 action and precision cap 4 sage: D2.base_ring() 7-adic Field with capped relative precision 20
- is_symk()[source]¶
Whether or not this distributions space is
for some ring .EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import OverconvergentDistributions, Symk sage: D = OverconvergentDistributions(4, 17, 10); D Space of 17-adic distributions with k=4 action and precision cap 10 sage: D.is_symk() False sage: D = Symk(4); D Sym^4 Q^2 sage: D.is_symk() True sage: D = Symk(4, base=GF(7)); D Sym^4 (Finite Field of size 7)^2 sage: D.is_symk() True
- class sage.modular.pollack_stevens.distributions.Symk_factory[source]¶
Bases:
UniqueFactoryCreate the space of polynomial distributions of degree
(stored as a sequence of moments).INPUT:
k– integer; the degree (degree corresponds to weight modular forms)base– ring (default:None); the base ring (Noneis interpreted as )character– Dirichlet character orNone(default:None)adjuster–Noneor a callable that turns matrices into a 4-tuple (default:None)act_on_left– boolean (default:False); whether to have the group acting on the left rather than the rightdettwist– integer orNone; power of determinant to twist by
EXAMPLES:
sage: D = Symk(4) sage: loads(dumps(D)) is D True sage: loads(dumps(D)) == D True sage: from sage.modular.pollack_stevens.distributions import Symk sage: Symk(5) Sym^5 Q^2 sage: Symk(5, RR) Sym^5 (Real Field with 53 bits of precision)^2 sage: Symk(5, oo.parent()) # don't do this Sym^5 (The Infinity Ring)^2 sage: Symk(5, act_on_left = True) Sym^5 Q^2
The
dettwistattribute:sage: V = Symk(6) sage: v = V([1,0,0,0,0,0,0]) sage: v.act_right([2,1,0,1]) (64, 32, 16, 8, 4, 2, 1) sage: V = Symk(6, dettwist=-1) sage: v = V([1,0,0,0,0,0,0]) sage: v.act_right([2,1,0,1]) (32, 16, 8, 4, 2, 1, 1/2)
- create_key(k, base=None, character=None, adjuster=None, act_on_left=False, dettwist=None, act_padic=False, implementation=None)[source]¶
Sanitize input.
EXAMPLES:
sage: from sage.modular.pollack_stevens.distributions import Symk sage: Symk(6) # indirect doctest Sym^6 Q^2 sage: V = Symk(6, Qp(7)) sage: TestSuite(V).run()