[Next][Prev] [Right] [Left] [Up] [Index] [Root]

Basic Operations

Subsections

Accessing Group Information

The functions in this group provide access to basic information stored for a rewrite group G.

G . i : GrpRWS, RngIntElt -> GrpRWSElt
The i-th defining generator for G.
Generators(G) : GrpRWS -> [GrpRWSElt]
A sequence containing the defining generators for G.
NumberOfGenerators(G) : GrpRWS -> RngIntElt
Ngens(G) : GrpRWS -> RngIntElt
The number of defining generators for G.
Relations(G) : GrpRWS -> [GrpFPRel]
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.
NumberOfRelations(G) : GrpRWS -> RngIntElt
Nrels(G) : GrpRWS -> RngIntElt
The number of relations in G.
Ordering(G) : GrpRWS -> String
The ordering of G.
Parent(w) : GrpRWSElt -> GrpRWS
The parent group G for the word w.

Example GrpRWS_BasicAccess (H30E4)

We illustrate the access operations using the following presentation of Z wreath C_2.

> 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


 [Next][Prev] [Right] [Left] [Up] [Index] [Root]