2018-08-08 00:21:13 +02:00
|
|
|
struct SpecialAutomorphismGroup <: SymmetricGroup
|
|
|
|
args::Dict{String,Any}
|
|
|
|
group::AutGroup
|
|
|
|
|
|
|
|
function SpecialAutomorphismGroup(args::Dict)
|
|
|
|
N = args["N"]
|
|
|
|
return new(args, AutGroup(FreeGroup(N), special=true))
|
|
|
|
end
|
|
|
|
end
|
2017-11-06 01:58:16 +01:00
|
|
|
|
2018-08-08 00:21:13 +02:00
|
|
|
function name(G::SpecialAutomorphismGroup)
|
|
|
|
N = G.args["N"]
|
2017-11-06 14:25:54 +01:00
|
|
|
|
2018-08-08 00:21:13 +02:00
|
|
|
if G.args["nosymmetry"]
|
|
|
|
return "SAutF$(N)"
|
|
|
|
else
|
|
|
|
return "oSAutF$(N)"
|
|
|
|
end
|
|
|
|
end
|
2017-11-06 01:58:16 +01:00
|
|
|
|
2018-08-08 00:21:13 +02:00
|
|
|
group(G::SpecialAutomorphismGroup) = G.group
|
2017-11-06 01:58:16 +01:00
|
|
|
|
2018-08-08 00:21:13 +02:00
|
|
|
function generatingset(G::SpecialAutomorphismGroup)
|
|
|
|
S = gens(group(G));
|
|
|
|
return unique([S; inv.(S)])
|
2017-11-06 01:58:16 +01:00
|
|
|
end
|
|
|
|
|
2018-08-08 00:21:13 +02:00
|
|
|
function autS(G::SpecialAutomorphismGroup)
|
|
|
|
N = G.args["N"]
|
|
|
|
return WreathProduct(PermutationGroup(2), PermutationGroup(N))
|
2017-11-06 01:58:16 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
#
|
|
|
|
# Action of WreathProductElems on AutGroupElem
|
|
|
|
#
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
function AutFG_emb(A::AutGroup, g::WreathProductElem)
|
|
|
|
isa(A.objectGroup, FreeGroup) || throw("Not an Aut(Fₙ)")
|
|
|
|
parent(g).P.n == length(A.objectGroup.gens) || throw("No natural embedding of $(parent(g)) into $A")
|
2018-08-08 00:21:13 +02:00
|
|
|
elt = A()
|
2018-08-08 00:24:17 +02:00
|
|
|
Id = parent(g.n.elts[1])()
|
|
|
|
flips = Groups.AutSymbol[Groups.flip_autsymbol(i) for i in 1:length(g.p.d) if g.n.elts[i] != Id]
|
|
|
|
Groups.r_multiply!(elt, flips, reduced=false)
|
2017-11-06 01:58:16 +01:00
|
|
|
Groups.r_multiply!(elt, [Groups.perm_autsymbol(g.p)])
|
|
|
|
return elt
|
|
|
|
end
|
|
|
|
|
|
|
|
function AutFG_emb(A::AutGroup, p::perm)
|
|
|
|
isa(A.objectGroup, FreeGroup) || throw("Not an Aut(Fₙ)")
|
|
|
|
parent(p).n == length(A.objectGroup.gens) || throw("No natural embedding of $(parent(g)) into $A")
|
|
|
|
return A(Groups.perm_autsymbol(p))
|
|
|
|
end
|
|
|
|
|
2018-07-31 12:42:58 +02:00
|
|
|
function (g::WreathProductElem)(a::Groups.Automorphism)
|
2018-08-08 00:24:17 +02:00
|
|
|
A = parent(a)
|
|
|
|
g = AutFG_emb(A,g)
|
|
|
|
res = A()
|
|
|
|
Groups.r_multiply!(res, g.symbols, reduced=false)
|
|
|
|
Groups.r_multiply!(res, a.symbols, reduced=false)
|
|
|
|
Groups.r_multiply!(res, [inv(s) for s in reverse!(g.symbols)])
|
|
|
|
return res
|
2017-11-06 01:58:16 +01:00
|
|
|
end
|
|
|
|
|
2018-07-31 12:42:58 +02:00
|
|
|
function (p::perm)(a::Groups.Automorphism)
|
2017-11-06 01:58:16 +01:00
|
|
|
g = AutFG_emb(parent(a),p)
|
2018-08-08 00:24:17 +02:00
|
|
|
return g*a*inv(g)
|
2017-11-06 01:58:16 +01:00
|
|
|
end
|