-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reject invalid arguments for SolvableQuotient (#5682)
- Loading branch information
Showing
2 changed files
with
37 additions
and
4 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,33 @@ | ||
gap> START_TEST("SolvableQuotient.tst"); | ||
|
||
# | ||
gap> f := FreeGroup( "a", "b", "c", "d" );; | ||
gap> fp := f / [ f.1^2, f.2^2, f.3^2, f.4^2, f.1*f.2*f.1*f.2*f.1*f.2, | ||
> f.2*f.3*f.2*f.3*f.2*f.3*f.2*f.3, f.3*f.4*f.3*f.4*f.3*f.4, | ||
> f.1^-1*f.3^-1*f.1*f.3, f.1^-1*f.4^-1*f.1*f.4, | ||
> f.2^-1*f.4^-1*f.2*f.4 ];; | ||
gap> hom:=EpimorphismSolvableQuotient(fp,300);Size(Image(hom)); | ||
[ a, b, c, d ] -> [ f1*f2, f1*f2, f2*f3, f2 ] | ||
12 | ||
gap> hom:=EpimorphismSolvableQuotient(fp,[2,3]);Size(Image(hom)); | ||
[ a, b, c, d ] -> [ f1*f2*f4, f1*f2*f6*f8, f2*f3, f2 ] | ||
1152 | ||
gap> EpimorphismSolvableQuotient(fp,fail); | ||
Error, <primes> must be either an integer, a list of integers, or a list of in\ | ||
teger lists | ||
|
||
# | ||
gap> SolvableQuotient(fp,300); | ||
rec( image := <pc group of size 12 with 3 generators>, | ||
imgs := [ f1*f2, f1*f2, f2*f3, f2 ], source := <fp group on the generators | ||
[ a, b, c, d ]> ) | ||
gap> SolvableQuotient(fp,[2,3]); | ||
rec( image := <pc group of size 1152 with 9 generators>, | ||
imgs := [ f1*f2*f4, f1*f2*f6*f8, f2*f3, f2 ], | ||
source := <fp group on the generators [ a, b, c, d ]> ) | ||
gap> SolvableQuotient(fp,fail); | ||
Error, <primes> must be either an integer, a list of integers, or a list of in\ | ||
teger lists | ||
|
||
# | ||
gap> STOP_TEST("SolvableQuotient.tst", 10000); |