Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an error in calculating subgroup lattices of nonsolvable groups was fixed. This error could lead to subgroups being omitted. #5475

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions lib/grplatt.gi
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,7 @@
fi;
fi;


ser:=PermliftSeries(G:limit:=300); # do not form too large spaces as they
# clog up memory
pcgs:=ser[2];
Expand Down Expand Up @@ -930,6 +931,7 @@
elif select=IsPerfectGroup or select=IsNonabelianSimpleGroup then
c:=ConjugacyClassesPerfectSubgroups(f);
c:=Filtered(c,x->Size(Representative(x))>1);
SortBy(c,x->Size(Representative(x)));
fselect:=U->not IsSolvableGroup(U);
elif select<>fail then
c:=LatticeByCyclicExtension(f,select)!.conjugacyClassesSubgroups;
Expand Down Expand Up @@ -1004,6 +1006,7 @@
if not k in nts then Add(nts,k);fi;
od;
od;
SortBy(nts,x->Size(x)); # increasing order
# by setting up `act' as fail, we force a different selection later
act:=[nts,fail];

Expand Down Expand Up @@ -1092,8 +1095,8 @@
fi;
od;
if Length(as)>0 then
Info(InfoLattice,2,"Normal subgroup ",j,", ",Length(as),
" subgroups to consider");
Info(InfoLattice,2,"Normal subgroup ",j,", Size ",Size(nts[j]),": ",
Length(as)," subgroups to consider");
# there are subgroups that will complement with this kernel.
# Construct the modulo pcgs and the action of the largest subgroup
# (which must be the normalizer)
Expand Down Expand Up @@ -1398,7 +1401,15 @@

pls:=Maximum(SizesPerfectGroups());
if ForAny(un,i->i>pls) then
Error("the perfect residuum is too large");
# go through maximals
cl:=Unique(List(MaximalSubgroupClassReps(G),PerfectResiduum));
cl:=SubgroupsOrbitsAndNormalizers(G,cl,false);
cl:=List(cl,x->x.representative);
l:=List(cl,RepresentativesPerfectSubgroups);
l:=Unique(Concatenation(l));
r:=List(SubgroupsOrbitsAndNormalizers(G,l,false),x->x.representative);;
SortBy(r,Size);
return r;

Check warning on line 1412 in lib/grplatt.gi

View check run for this annotation

Codecov / codecov/patch

lib/grplatt.gi#L1405-L1412

Added lines #L1405 - L1412 were not covered by tests
fi;

un:=Filtered(un,i->i in PERFRec.sizes);
Expand Down Expand Up @@ -1517,11 +1528,13 @@
fi;
end);

InstallMethod(RepresentativesPerfectSubgroups,"using Holt/Plesken library",
true,[IsGroup],0,G->RepsPerfSimpSub(G,false));
InstallMethod(RepresentativesPerfectSubgroups,
"using Holt/Plesken/Hulpke library",true,[IsGroup],0,
G->RepsPerfSimpSub(G,false));

InstallMethod(RepresentativesSimpleSubgroups,"using Holt/Plesken library",
true,[IsGroup],0,G->RepsPerfSimpSub(G,true));
InstallMethod(RepresentativesSimpleSubgroups,
"using Holt/Plesken/Hulpke library",true,[IsGroup],0,
G->RepsPerfSimpSub(G,true));

Check warning on line 1537 in lib/grplatt.gi

View check run for this annotation

Codecov / codecov/patch

lib/grplatt.gi#L1537

Added line #L1537 was not covered by tests

InstallMethod(RepresentativesSimpleSubgroups,"if perfect subs are known",
true,[IsGroup and HasRepresentativesPerfectSubgroups],0,
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions tst/testbugfix/2023-07-23-Lattice.tst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Missing perfect subgroups, causing problems for lattice.

gap> g:=Group((1,10)(3,7)(5,16)(6,22)(8,17)(9,20)(11,13)(18,21), (1,19,7)
> (2,5,22,6,9,18)(3,14)(4,21,17,12,23,20)(8,13,11)(10,15));;
gap> TableOfMarks(g);;