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

Minor fixes that could go into 4.10 as well #3508

Merged
merged 2 commits into from
Jun 25, 2019
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
3 changes: 1 addition & 2 deletions lib/grpcompl.gi
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ local G,N,K,s, h, q, fpi, factorpres, com, comgens, cen, ocrels, fpcgs, ncom,
Length(MappingGeneratorsImages(fpi)[2])," generators");
factorpres:=[FreeGeneratorsOfFpGroup(Range(fpi)),
RelatorsOfFpGroup(Range(fpi)),
List(MappingGeneratorsImages(fpi)[2],
List(GeneratorsOfGroup(Range(fpi)),
i->PreImagesRepresentative(fpi,i))];

Assert(1,ForAll(factorpres[3],i->Image(h,PreImagesRepresentative(h,i))=i));
# initialize
com:=[G];
Expand Down
3 changes: 3 additions & 0 deletions lib/grppcfp.gi
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,9 @@ local g, sq, hom;
g:=arg[1];
sq:=CallFuncList(SQ,arg);
hom:=GroupHomomorphismByImages(g,sq.image,GeneratorsOfGroup(g),sq.imgs);
if HasSize(g) and Size(g)=Size(sq.image) then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if HasSize(g) and Size(g)=Size(sq.image) then
if HasSize(g) then

SetIsInjective(hom,true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SetIsInjective(hom,true);
SetIsInjective(hom, Size(g)=Size(sq.image));

fi;
return hom;
end);

Expand Down
7 changes: 7 additions & 0 deletions tst/testbugfix/2019-04-09-Lattice.tst
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# see https://github.com/gap-system/gap/pull/3397
# and https://github.com/gap-system/gap/issues/3496
gap> l:=AllSmallGroups(960,IsSolvableGroup,false);;g:=l[5];;
gap> nat:=NaturalHomomorphismByNormalSubgroup(g,RadicalGroup(g));;
gap> fpi:=IsomorphismFpGroup(Group(GeneratorsOfGroup(Range(nat))));;
gap> fpi:=GroupHomomorphismByImages(Range(nat),Range(fpi),
> GeneratorsOfGroup(Range(nat)),List(GeneratorsOfGroup(Range(nat)),
> x->ImagesRepresentative(fpi,x)));;
gap> SetIsomorphismFpGroup(ImagesSource(nat),fpi);;
gap> StructureDescription(g);;t:=TableOfMarks(g);;