Here is an example of use of group. In books of mathematics devoted to theory of groups, first exercises on groups are sometimes based on the explicit construction of groups by giving algebraic relationships on elements. For example,
Construct a group generated by two elements i and j such as
i2=e
j2=e
ij=ji
and find all subgroups and normal subgroups.
What do we have to do? The first step is to construct the operation table of the group by applying the algebraic relationships. We get,
| * |
e |
i |
j |
ij |
| e |
e |
i |
j |
ij |
| i |
i |
e |
ij |
j |
| j |
j |
ij |
e |
i |
| ij |
ij |
j |
i |
e |
The problem is now to check if axioms (A1) - (A5) apply. Indeed, for such an example, it can be done by hand. But you can imagine that the exercise becomes tedious (especially to check associativity) for larger groups.
The other solution is to write a text file named for instance exercice.txt
# Input file to solve my exercise
ORDER=4
SET=e i j ij
OPERATION=+
TABLE=
e i j ij
i e ij j
j ij e i
ij j i e
This is the input file for group. It contains four fields which are:
ORDER=n the number n of elements (order of the group)
SET=a1 ... an a list of symbols for elements (3 characters maximum per element)
OPERATION=* a one character symbol (*, +, o or other) for the operation
TABLE=ai*aj the operation table of the group. This is a table of n2 entries where i and j runs from 1 to n.
Then run group by typing
group exercice.txt
in a command window. The output is,
Operation table
* e i j ij
e e i j ij
i i e ij j
j j ij e i
ij ij j i e
Inverse table
element e i j ij
inverse e i j ij
The set is an Abelian group
List of subgroups
{e} NORMAL
{e,i} NORMAL
{e,j} NORMAL
{e,ij} NORMAL
{e,i,j,ij} NORMAL
You can observe that all elements of the group are the product of elements of normal subgroups {e,i} and {e,j} which are cyclic of order 2 and whose intersection is {e}. The group is therefore Z/2Z X Z/2Z that is Klein's group.