Ask Your Question

Simplifying group presentations with the same generators

asked 2022-07-16 18:02:38 +0200

enriqueartal gravatar image

updated 2022-07-24 23:42:22 +0200

I am working with some finitely presented groups in Sagemath. I want to perform simplifications without eliminating simplifications. This is a toy example:

# Finitely presented group with two generators and one relation ("too long")
# The group is converted into a GAP object in order to use some GAP functions not existing in SAGEMATH
# The GAP presentation object is constructed, for which simplifications functions exist.
# This function simplifies too much the presentation.

It eliminates the first and last element of the relation (which was the goal) but it eliminates also a generator. Presentations have a Gap record called TzOptions, it is accessible in Sagemath with


One of the options is called protected and it is set to 0 by default. If it is set to n, among the simplifications it avoids to eiminate the first n generators. My problems is to modify this Gap record in Sagemath, I do not know how. Since it is a tool to work with finitely presented groups in Sagemath, it would be too cumbersome to translate the problem into Gap and come back to Sagemath. Any help is welcome.

Thanks, Enrique.

edit retag flag offensive close merge delete


Can you provide code for a toy example?

slelievre gravatar imageslelievre ( 2022-07-16 18:12:18 +0200 )edit

Really toy example g=FreeGroup(2)/[(1,1,-2,-1)] g1=gap(g) P=g1.PresentationFpGroup() P.TzSearch() I want the last order to simplify the relation without eliminating a generator

enriqueartal gravatar imageenriqueartal ( 2022-07-20 12:55:00 +0200 )edit

Ideally, edit your question to include the example.

Use a blank line before and after the code block, and indent it by four spaces.

slelievre gravatar imageslelievre ( 2022-07-20 18:48:22 +0200 )edit

Thanks for the tip!

enriqueartal gravatar imageenriqueartal ( 2022-07-24 23:42:30 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2022-08-03 12:22:26 +0200

enriqueartal gravatar image

@mmarco provided this answer

# Convert the GAP record TzOptions to a SAGEMATH dictionnary 
# Change the 'protected' key to the number of protected generators
# This order changes the GAP record
# The following simplification order does not eliminate generators.

I hope this will be useful for someone else and thanks to Miguel

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2022-07-16 18:02:38 +0200

Seen: 100 times

Last updated: Aug 03