Skip to content

Commit

Permalink
revert orientation of G2
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-roehrich committed Dec 7, 2024
1 parent fa3c59d commit 605b260
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions experimental/LieAlgebras/src/CartanMatrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function cartan_matrix(fam::Symbol, rk::Int)
elseif fam == :F
mat = matrix(ZZ, [2 -1 0 0; -1 2 -1 0; 0 -2 2 -1; 0 0 -1 2])
elseif fam == :G
mat = matrix(ZZ, [2 -1; -3 2])
mat = matrix(ZZ, [2 -3; -1 2])
else
error("Unreachable")
end
Expand Down Expand Up @@ -204,7 +204,7 @@ function cartan_symmetrizer(gcm::ZZMatrix; check::Bool=true)
d[i] = d[i + 1] = 2
i += rk
elseif fam == :G
d[i] = 3
d[i + 1] = 3
i += rk
else
error("unreachable")
Expand Down Expand Up @@ -337,10 +337,10 @@ function cartan_type_with_ordering(gcm::ZZMatrix; check::Bool=true)
push!(ord, v0, v1)
elseif gcm[v0, v1] == -3
push!(type, (:G, 2))
push!(ord, v1, v0)
push!(ord, v0, v1)
elseif gcm[v1, v0] == -3
push!(type, (:G, 2))
push!(ord, v0, v1)
push!(ord, v1, v0)
else
error("unreachable")
end
Expand Down
2 changes: 1 addition & 1 deletion experimental/LieAlgebras/src/DynkinDiagram.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function show_dynkin_diagram(fam::Symbol, rk::Int, labels::AbstractVector{Int})
D = "$(labels[1]) - $(labels[2]) >=> $(labels[3]) - $(labels[4])"
elseif fam == :G
@assert rk == 2
D = "$(labels[1]) >>> $(labels[2])"
D = "$(labels[1]) <<< $(labels[2])"
end
isempty(D) && error("Unreachable")
print(D)
Expand Down

0 comments on commit 605b260

Please sign in to comment.