You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trac #34698: Fix conversion bug in modular forms rings
We currently have the following behavior:
{{{
sage: M = ModularFormsRing(Gamma0(2))
sage: E4 = ModularForms(1, 4).0
sage: F = M(E4)
sage: F[4].parent()
Modular Forms space of dimension 1 for Modular Group SL(2,Z) of weight 4
over Rational Field
}}}
The parent of `F[4]` is wrong as the group should be `Gamma0(2)`.
URL: https://trac.sagemath.org/34698
Reported by: gh-DavidAyotte
Ticket author(s): David Ayotte
Reviewer(s): Vincent Delecroix
ValueError: the group and/or the base ring of at least one modular form (q - 6*q^2 + 9*q^3 + 4*q^4 + 6*q^5 + O(q^6)) is not consistant with the base space
3237
+
sage: M = ModularFormsRing(Gamma0(2))
3238
+
sage: E4 = ModularForms(1, 4).0
3239
+
sage: M(E4)[4].parent()
3240
+
Modular Forms space of dimension 2 for Congruence Subgroup Gamma0(2) of weight 4 over Rational Field
3241
+
sage: M = ModularFormsRing(Gamma1(3), base_ring=GF(7))
3242
+
sage: E6 = ModularForms(1, 6, base_ring=GF(7)).0
3243
+
sage: M(E6)[6].parent()
3244
+
Modular Forms space of dimension 3 for Congruence Subgroup Gamma1(3) of weight 6 over Finite Field of size 7
raiseValueError('the group (%s) and/or the base ring (%s) of the given modular form is not consistant with the base space: %s'%(forms_datum.group(), forms_datum.base_ring(), self))
0 commit comments