The functions in this group provide access to basic information stored for a rewrite group G.
The i-th defining generator for G.
A sequence containing the defining generators for G.
The number of defining generators for G.
A sequence containing the defining relations for G. The relations will be given between elements of the free group of which G is a quotient. In these relations the (image of the) left hand side (in G) will always be greater than the (image of the) right hand side (in G) in the ordering on words used to construct G.
The number of relations in G.
The ordering of G.
The parent group G for the word w.
> F<a,b,t> := FreeGroup(3);
> Q := quo< F | t^2=1, b*a=a*b, t*a*t=b>;
> G<x,y,z> := RWSGroup(Q);
> G;
A confluent rewrite group.
Generator Ordering = [ a, a^-1, b, b^-1, t, t^-1 ]
Ordering = ShortLex.
The reduction machine has 6 states.
The rewrite relations are:
a * a^-1 = Id(F)
a^-1 * a = Id(F)
b * b^-1 = Id(F)
b^-1 * b = Id(F)
t^2 = Id(F)
b * a = a * b
t * a = b * t
b^-1 * a = a * b^-1
t * b = a * t
b * a^-1 = a^-1 * b
t * a^-1 = b^-1 * t
t^-1 = t
b^-1 * a^-1 = a^-1 * b^-1
t * b^-1 = a^-1 * t
> print G.1;
x
> print G.1*G.2;
x * y
> print Generators(G);
[ x, y, z ]
> print Ngens(G);
3
> print Relations(G);
[ a * a^-1 = Id(F), a^-1 * a = Id(F), b * b^-1 = Id(F), b^-1 * b = Id(F), t^2 =
Id(F), b * a = a * b, t * a = b * t, b^-1 * a = a * b^-1, t * b = a * t, b *
a^-1 = a^-1 * b, t * a^-1 = b^-1 * t, t^-1 = t, b^-1 * a^-1 = a^-1 * b^-1, t *
b^-1 = a^-1 * t ]
> print Nrels(G);
14
> print Ordering(G);
ShortLex