Skip to content

Commit

Permalink
Merge pull request #559 from markuspf/fix-hall-subgroup-dispatch
Browse files Browse the repository at this point in the history
Fix nice monomorphism dispatch for HallSubgroup
  • Loading branch information
markuspf committed Jan 31, 2016
2 parents 7a4df09 + d4e897e commit 1e4dea9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/grpnice.gi
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,15 @@ function(g,l)
local mon,h;
mon:=NiceMonomorphism(g);
h:=HallSubgroup(ImagesSet(mon,g),l);
return PreImage(mon,h);
if h = fail then
return fail;
elif IsList(h) then
return List(h, k -> PreImage(mon, k));
elif IsGroup(h) then
return PreImage(mon,h);
else
Error("Unexpected return value from HallSubgroup");
fi;
end);

#############################################################################
Expand Down
19 changes: 19 additions & 0 deletions tst/testinstall/opers/HallSubgroup.tst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
gap> START_TEST("HallSubgroup.tst");
gap> G := GL(3,4);;
gap> HallSubgroup(G, [2,3]);
fail
gap> G := PSL(4,2);;
gap> IdGroup(HallSubgroup(G, [2,3]));
[ 576, 8654 ]
gap> G := PSp(4,5);;
gap> IdGroup(HallSubgroup(G,[2,3]));
[ 576, 8277 ]
gap> G := Group([ [ [ Z(2)^0, 0*Z(2), 0*Z(2) ],
> [ 0*Z(2), Z(2)^0, 0*Z(2) ],
> [ 0*Z(2), Z(2)^0, Z(2)^0 ] ],
> [ [ 0*Z(2), Z(2)^0, 0*Z(2) ],
> [ 0*Z(2), 0*Z(2), Z(2)^0 ],
> [ Z(2)^0, 0*Z(2), 0*Z(2) ] ] ]);;
gap> List(HallSubgroup(G, [2,3]), IdGroup);
[ [ 24, 12 ], [ 24, 12 ] ]
gap> STOP_TEST("HallSubgroup.tst", 10000);

0 comments on commit 1e4dea9

Please sign in to comment.