Group algebras seem to be buggy

asked 1 year ago

Martin-Br gravatar image

updated 1 year ago

I want to work with group algebras in SageMath. But they do not behave as they should. Is this a bug or do I do something wrong? For my application, I need to work with a group defined by a presentation. So the simplest example should be F2[C2], with C2=X:X2=1.

sage: F.<X> = FreeGroup(1)
sage: G = F / [X^2]
sage: display(G)
Finitely presented group < X | X^2 >
sage: A = G.algebra(GF(2))
sage: x = A.gen()
sage: x^2 == A.one()
False

It seems that the relations of G will not be presented in R[G]. Why?

Let's try to define the group as a permutation group instead. This throws an error.

sage: G = PermutationGroup([[2,1]])
sage: A = G.algebra(GF(2))
sage: x = A.gen()
sage: x^2
()
sage: A.one()
()
sage: x^2 == A.one()
RuntimeError: There is a bug in the coercion code in Sage.

There is also an error when I just want to compute (x+1)2.

PS: SageMath seems to be so buggy that I consider switching to a different CAS.

Preview: (hide)

Comments

The second one works for me in sage 10.2.beta5. Do you use an old version of sage ?

FrédéricC gravatar imageFrédéricC ( 1 year ago )

Thank you. This may be the reason. I use Sage version 9.5. The Sage Cell Server probably uses a different version, and there the 2nd code snippet works. (Still weird that the 1st doesn't work.)

Martin-Br gravatar imageMartin-Br ( 1 year ago )

First one is already failing at the level of the group quotient, yes.

FrédéricC gravatar imageFrédéricC ( 1 year ago )