Skip to content

Commit

Permalink
Tweak epimorphism_from_free_group (#3430)
Browse files Browse the repository at this point in the history
... to ensure rank of the free group is set.

(cherry picked from commit 4cea177)
  • Loading branch information
fingolfin authored and benlorenz committed Feb 27, 2024
1 parent 8b5f116 commit 633ab20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Groups/sub.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ julia> G = symmetric_group(4);
julia> epi = epimorphism_from_free_group(G)
Group homomorphism
from free group
from free group of rank 2
to Sym(4)
julia> pi = G([2,4,3,1])
Expand All @@ -1018,6 +1018,7 @@ julia> map_word(w, gens(G))
function epimorphism_from_free_group(G::GAPGroup)
mfG = GAP.Globals.EpimorphismFromFreeGroup(G.X)
fG = FPGroup(GAPWrap.Source(mfG))
GAP.Globals.RankOfFreeGroup(fG.X) # force rank computation
return Oscar.GAPGroupHomomorphism(fG, G, mfG)
end

Expand Down

0 comments on commit 633ab20

Please sign in to comment.