2018-09-09 13:05:49 +02:00
|
|
|
struct SpecialLinearGroup{N} <: SymmetrizedGroup
|
2018-08-08 00:21:13 +02:00
|
|
|
group::AbstractAlgebra.Group
|
2018-09-09 13:05:49 +02:00
|
|
|
p::Int
|
|
|
|
X::Bool
|
2018-09-16 17:53:10 +02:00
|
|
|
end
|
2018-08-08 00:21:13 +02:00
|
|
|
|
2018-09-16 17:53:10 +02:00
|
|
|
function SpecialLinearGroup(args::Dict)
|
|
|
|
N = args["SL"]
|
|
|
|
p = args["p"]
|
|
|
|
X = args["X"]
|
2018-08-08 00:21:13 +02:00
|
|
|
|
2018-09-16 17:53:10 +02:00
|
|
|
if p == 0
|
|
|
|
G = MatrixSpace(Nemo.ZZ, N, N)
|
|
|
|
else
|
|
|
|
R = Nemo.NmodRing(UInt(p))
|
|
|
|
G = MatrixSpace(R, N, N)
|
2018-08-08 00:21:13 +02:00
|
|
|
end
|
2018-09-16 17:53:10 +02:00
|
|
|
return SpecialLinearGroup{N}(G, p, X)
|
2018-08-08 00:21:13 +02:00
|
|
|
end
|
2017-11-06 01:58:50 +01:00
|
|
|
|
2018-09-09 13:05:49 +02:00
|
|
|
function name(G::SpecialLinearGroup{N}) where N
|
|
|
|
if G.p == 0
|
|
|
|
R = (G.X ? "Z[x]" : "Z")
|
2018-08-08 00:21:13 +02:00
|
|
|
else
|
2018-09-09 13:05:49 +02:00
|
|
|
R = "F$(G.p)"
|
2018-08-08 00:21:13 +02:00
|
|
|
end
|
2018-09-09 13:05:49 +02:00
|
|
|
return SL($(G.N),$R)
|
2018-08-08 00:21:13 +02:00
|
|
|
end
|
2017-11-06 14:25:54 +01:00
|
|
|
|
2018-08-08 00:21:13 +02:00
|
|
|
group(G::SpecialLinearGroup) = G.group
|
2017-11-06 01:58:50 +01:00
|
|
|
|
2018-09-09 13:05:49 +02:00
|
|
|
function generatingset(G::SpecialLinearGroup{N}) where N
|
|
|
|
G.p > 0 && G.X && throw("SL(n, F_p[x]) not implemented")
|
2018-08-08 00:21:13 +02:00
|
|
|
SL = group(G)
|
2018-09-09 13:05:49 +02:00
|
|
|
return generatingset(SL, G.X)
|
2018-08-18 23:24:57 +02:00
|
|
|
end
|
2017-11-06 01:58:50 +01:00
|
|
|
|
2018-09-09 13:05:49 +02:00
|
|
|
# r is the injectivity radius of
|
|
|
|
# SL(n, Z[X]) -> SL(n, Z) induced by X -> 100
|
2018-08-18 23:24:57 +02:00
|
|
|
|
2018-09-09 13:05:49 +02:00
|
|
|
function generatingset(SL::MatSpace, X::Bool=false, r=5)
|
2018-08-18 23:24:57 +02:00
|
|
|
n = SL.cols
|
|
|
|
indexing = [(i,j) for i in 1:n for j in 1:n if i≠j]
|
2018-01-04 22:09:53 +01:00
|
|
|
|
2018-08-08 00:21:13 +02:00
|
|
|
if !X
|
|
|
|
S = [E(idx[1],idx[2],SL) for idx in indexing]
|
2018-01-04 22:09:53 +01:00
|
|
|
else
|
2018-08-08 00:21:13 +02:00
|
|
|
S = [E(i,j,SL,v) for (i,j) in indexing for v in [1, 100*r]]
|
2018-01-04 22:09:53 +01:00
|
|
|
end
|
2018-08-08 00:21:13 +02:00
|
|
|
return unique([S; inv.(S)])
|
|
|
|
end
|
|
|
|
|
2018-09-09 13:05:49 +02:00
|
|
|
function E(i::Int, j::Int, M::MatSpace, val=one(M.base_ring))
|
|
|
|
@assert i≠j
|
|
|
|
m = one(M)
|
|
|
|
m[i,j] = val
|
|
|
|
return m
|
|
|
|
end
|
|
|
|
|
|
|
|
function autS(G::SpecialLinearGroup{N}) where N
|
|
|
|
return WreathProduct(PermutationGroup(2), PermutationGroup(N))
|
2017-11-06 01:58:50 +01:00
|
|
|
end
|