Given two invertible $n \times n$ integer matrices A and B I want to look at the group $G$ generated by $A$ and $B$ inside $Gl_n(\mathbb{Z})$ with GAP. My goal is the see relations for A and B with the help of GAP in concrete examples.
Here is a concerete example: $A=[ [ 0, 0, 0, -1 ], [ 0, 0, 1, 1 ], [ 0, 1, 0, 1 ], [ -1, -1, -1, -1 ] ]$ $B=[ [ 0, 0, 0, 1 ], [ 0, 0, 1, 0 ], [ 0, 1, 0, 0 ], [ 1, 0, 0, 0 ] ]$ (I wrote the matrices in GAP notation).
Then I can obtain the group $G$ in GAP via: G:=Group(A,B); I can even find the isomorphism class of $G$ in GAP via the command StructureDescription(G); to see that in this example $G$ is isomorphic to $D_{12}$.
Question: How can I find in GAP a description for a given group $G$ of the minimal relations that describe $G$ for the generators $A$ and $B$?
There are relations such as $(AB)^2=1$ but I can not see them in GAP since GAP displays A and B as matrices, but I want to see the relations "abstractly" for example as $(AB)^2=1$ and not written out as matrices where it is hard/impossible to see what the relations between A and B are.
In the example some relations would be $A^6=1$,$B^2=1$ and $(AB)^2=1$ (found by hand) but there can be more and I want to see them all in GAP in this form or at least some minimal relations.
The following GAP computation works, although it has just come up with the same relations as the ones that you had already calculated. To be honest, I am not completely sure what is that you are trying to compute. What do you mean by a "minimal relation" for example?