-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NormalClosure: accept list of normal generators as input
... for the second argument
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
gap> START_TEST("NormalClosure.tst"); | ||
|
||
# | ||
# setup perm groups | ||
# | ||
gap> G := SymmetricGroup(4);; | ||
gap> H := AlternatingGroup(4);; | ||
|
||
# normal closure of a subgroup | ||
gap> G = NormalClosure(G, Group((1,2))); | ||
true | ||
gap> H = NormalClosure(G, Group((1,2,3))); | ||
true | ||
|
||
# normal closure of a bunch of generators | ||
gap> G = NormalClosure(G, [ (1,2) ]); | ||
true | ||
gap> H = NormalClosure(G, [ (1,2,3) ]); | ||
true | ||
|
||
# | ||
# setup fp groups | ||
# | ||
gap> G := FreeGroup(2);; | ||
|
||
# normal closure of a subgroup | ||
gap> H := Subgroup(G, [G.1^2, G.2^2, Comm(G.1, G.2)]);; | ||
gap> Index(G, H); | ||
infinity | ||
gap> N := NormalClosure(G, H);; | ||
gap> Index(G, N); | ||
4 | ||
|
||
# | ||
gap> N := NormalClosure(G, [G.1^2, G.2^2, Comm(G.1, G.2)]);; | ||
gap> Index(G, N); | ||
4 | ||
|
||
# | ||
gap> STOP_TEST("NormalClosure.tst", 1); |