Skip to content
Merged
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
12 changes: 2 additions & 10 deletions lib/ghom.gi
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,15 @@ end);
InstallMethod(RestrictedMapping,"create new GHBI",
CollFamSourceEqFamElms,[IsGroupHomomorphism,IsGroup],0,
function(hom,U)
local rest,gens,imgs,imgp;
local rest,gens,imgs;

gens:=GeneratorsOfGroup(U);
imgs:=List(gens,i->ImageElm(hom,i));

if HasImagesSource(hom) then
imgp:=ImagesSource(hom);
else
imgp:=Subgroup(Range(hom),imgs);
fi;
rest:=GroupHomomorphismByImagesNC(U,imgp,gens,imgs);
rest:=GroupHomomorphismByImagesNC(U,Range(hom),gens,imgs);
if HasIsInjective(hom) and IsInjective(hom) then
SetIsInjective(rest,true);
fi;
if HasIsTotal(hom) and IsTotal(hom) then
SetIsTotal(rest,true);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this removed? If the map was total (= not partial) then surely its restriction is also total? And this is kinda important to know about a map

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

IsGroupHomomorphism implies IsTotal, so both hom and rest should have IsTotal set to true already.

fi;

return rest;
end);
Expand Down
Loading