Ticket #34 (closed enhancement: fixed)
[fixed?] Factoring for a subspace of ModularSymbols in general
| Reported by: | was | Owned by: | was |
|---|---|---|---|
| Priority: | major | Milestone: | sage-3.0 |
| Component: | modular forms | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
sage: M = ModularSymbols(Gamma0(22),2,sign=1) sage: M1 = M.decomposition()[1] sage: M1 Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 5 for Gamma_0(22) of weight 2 with sign 1 over Rational Field sage: M1.is_simple() ## throws a TypeError
In fact, I can find lots of examples where this happens: levels 6, 7, 8, and 9 with weight 24 all have subspaces which crash is_simple.
I don't really know if this qualifies as "critical," but it seems more than just "annoying." Maybe the page name should be clarified (at least to me)?
-- Craig Citro
Change History
comment:3 Changed 6 years ago by ncalexan
- Owner changed from somebody to was
- Component changed from basic arithmetic to modular forms
- Summary changed from Bug in is_simple() for a space of ModularSymbols to Bug in factorization() for a subspace of ModularSymbols
Added doctest to sage/modular/modsym/subspace.py exposing related bug. As of 2.1.5, does not pass.
comment:4 Changed 6 years ago by was
- Type changed from defect to enhancement
This throws notimplemented error now. The problem is that actually implementing this in general efficiently is hard. Because it's now a not implemented error, I've changed this to an enhancement.
comment:5 Changed 6 years ago by mabshoff
- Milestone set to sage-2.9
This is still a problem with Sage 2.8.2:
----------------------------------------------------------------------
| SAGE Version 2.8.2, Release Date: 2007-08-22 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: M = ModularSymbols(Gamma0(22),2,sign=1)
sage: M1 = M.decomposition()[1]
sage: M1
Modular Symbols subspace of dimension 3 of Modular Symbols space of dimension 5 for Gamma_0(22) of weight 2 with sign 1 over Rational Field
sage: M1.is_simple()
---------------------------------------------------------------------------
<type 'exceptions.NotImplementedError'> Traceback (most recent call last)
/tmp/Work2/sage-2.8.2/<ipython console> in <module>()
/tmp/Work2/sage-2.8.2/local/lib/python2.5/site-packages/sage/modular/modsym/space.py in is_simple(self)
234 return self._is_simple
235 except AttributeError:
--> 236 D = self.factorization()
237 if len(D) == 0 or len(D) == 1 and D[0][1] == 1:
238 self._is_simple = True
/tmp/Work2/sage-2.8.2/local/lib/python2.5/site-packages/sage/modular/modsym/subspace.py in factorization(self)
197 if r != s:
198 raise NotImplementedError, "modular symbols factorization not fully implemented yet -- self has dimension %s, but sum of dimensions of factors is %s"%(
--> 199 r, s)
200 self._factorization = sage.structure.factorization.Factorization(D, cr=True)
201 return self._factorization
<type 'exceptions.NotImplementedError'>: modular symbols factorization not fully implemented yet -- self has dimension 3, but sum of dimensions of factors is 2
sage:
Maybe something worth fixing during the next bug day.
Cheers,
Michael
comment:7 Changed 5 years ago by rlm
- Summary changed from Bug in factorization() for a subspace of ModularSymbols to [is wishlist?] factoring for a subspace of ModularSymbols in general
comment:8 Changed 5 years ago by rlm
- Summary changed from [is wishlist?] factoring for a subspace of ModularSymbols in general to Factoring for a subspace of ModularSymbols in general
- Milestone changed from sage-2.9.1 to sage-wishlist
comment:9 Changed 5 years ago by AlexGhitza
- Summary changed from Factoring for a subspace of ModularSymbols in general to [fixed?] Factoring for a subspace of ModularSymbols in general
- Milestone changed from sage-wishlist to sage-3.0.1
This, as well as the other cases listed in Craig's post, work for me in sage-3.0.alpha5.
I think this was fixed as a side effect of Craig's various fixes in the modular symbols code.
comment:10 Changed 5 years ago by mabshoff
- Status changed from new to closed
- Resolution set to fixed
- Milestone changed from sage-3.0.1 to sage-3.0
Fixed in Sage 3.0.rc0 due to patches by Creg Citro merged earlier in the 3.0 alpha cycle.
