Open Etn40ff opened 9 years ago
Changed keywords from none to GroupAlgebra PolynomialRing
Author: Salvatore Stella
Description changed:
---
+++
@@ -1 +1,17 @@
+The `__init__` method of GroupAlgebra did not check for commutativity of the group so that this would happen:
+```
+sage: G = AbelianGroup(2)
+sage: A = GroupAlgebra(G)
+sage: A.is_commutative()
+True
+sage: A.is_ring()
+True
+sage: PolynomialRing(A,'x,y')
+
+TypeError: The base ring Group algebra of group "Multiplicative Abelian group isomorphic to Z x Z " over base ring Integer Ring is not a commutative ring
+```
+
+Moreover the init function of PolynomialRing needs the method is_prime_field in
+order to work.
+
Branch pushed to git repo; I updated commit sha1. New commits:
c3ebef0 | Fixed typo |
Branch pushed to git repo; I updated commit sha1. New commits:
0936b72 | Added missing : |
This has uncovered a couple of different bugs:
sage: SU(2, 3).random_element()
[ 1 2*a + 2]
[ 0 1]
sage: SU(2, 4).random_element()
<repr(<sage.groups.matrix_gps.group_element.UnitaryMatrixGroup_gap_with_category.element_class at 0x7f826b84eaa0>) failed: ValueError: the given finite field has incompatible size>
.algebra
aren't returning group algebras.Commutative()
does not commute with the Algebras
functor construction.sage: Groups().Commutative().Algebras(QQ)
Join of Category of group algebras over Rational Field and Category of commutative algebras over Rational Field and Category of commutative magma algebras over Rational Field
sage: Groups().Algebras(QQ).Commutative()
Category of commutative group algebras over Rational Field
The main problem for this ticket I think is the last one.
doctests fail (cf. patchbot)
The
__init__
method of GroupAlgebra did not check for commutativity of the group so that this would happen:Moreover the init function of PolynomialRing needs the method is_prime_field in order to work.
Component: group theory
Keywords: GroupAlgebra PolynomialRing
Author: Salvatore Stella
Branch/Commit: u/etn40ff/commutative_group_algebra @
0936b72
Issue created by migration from https://trac.sagemath.org/ticket/19518