-
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.
FIX: Wreath Product with Trivial Groups
Generators should not contain the identity element, unless the group is trivial.
- Loading branch information
1 parent
94642bb
commit 4ebde62
Showing
3 changed files
with
99 additions
and
19 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
53 changes: 53 additions & 0 deletions
53
tst/testbugfix/2024_10_24_WreathProductWIthTrivialGroups.tst
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,53 @@ | ||
# | ||
gap> START_TEST("WreathProductWithTrivialGroups.tst"); | ||
gap> P := SymmetricGroup(3);; | ||
gap> IP := Group( One(P) );; | ||
gap> M := GL(6, 5);; | ||
gap> IM := Group( One(M) );; | ||
|
||
# Generators should not contain the identity element, | ||
# unless the group is trivial. | ||
gap> checkGens := function(G) | ||
> local gens; | ||
> gens := GeneratorsOfGroup(G); | ||
> return gens = [One(G)] or ForAll(gens, g -> g <> One(G)); | ||
> end;; | ||
|
||
# imprimitive perm, trivial top | ||
gap> checkGens( WreathProduct(P, IP) ); | ||
true | ||
|
||
# imprimitive perm, trivial base | ||
gap> checkGens( WreathProduct(IP, P) ); | ||
true | ||
|
||
# imprimitive perm, trivial base and top | ||
gap> checkGens( WreathProduct(IP, IP) ); | ||
true | ||
|
||
# imprimitive mat, trivial top | ||
gap> checkGens( WreathProduct(M, IP) ); | ||
true | ||
|
||
# imprimitive mat, trivial base | ||
gap> checkGens( WreathProduct(IM, P) ); | ||
true | ||
|
||
# imprimitive mat, trivial base and top | ||
gap> checkGens( WreathProduct(IM, IP) ); | ||
true | ||
|
||
# product action perm, trivial top | ||
gap> checkGens( WreathProductProductAction(P, IP) ); | ||
true | ||
|
||
# product action perm, trivial base | ||
gap> checkGens( WreathProductProductAction(IP, P) ); | ||
true | ||
|
||
# product action perm, trivial base and top | ||
gap> checkGens( WreathProductProductAction(IP, IP) ); | ||
true | ||
|
||
# | ||
gap> STOP_TEST("WreathProductWithTrivialGroups.tst"); |