action on FPGroupElement via action on the underlying word

This commit is contained in:
Marek Kaluba 2022-11-08 09:59:07 +01:00
parent abf2d014cc
commit 6e9cc8e0f6
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15
1 changed files with 6 additions and 6 deletions

View File

@ -28,17 +28,17 @@ end
function SymbolicWedderburn.action(
act::AlphabetPermutation,
γ::Groups.GroupElement,
w::Groups.AbstractWord,
g::Groups.AbstractFPGroupElement,
)
return w^(act.perms[γ])
G = parent(g)
w = SymbolicWedderburn.action(act, γ, word(g))
return G(w)
end
function SymbolicWedderburn.action(
act::AlphabetPermutation,
γ::Groups.GroupElement,
g::Groups.AbstractFPGroupElement,
w::Groups.AbstractWord,
)
G = parent(g)
w = word(g)^(act.perms[γ])
return G(w)
return w^(act.perms[γ])
end