Skip to content

Commit

Permalink
Small refactorings
Browse files Browse the repository at this point in the history
- formatting
- add some parent type
- remove CoxeterGroup type as wished by felix-roehrich
  • Loading branch information
lgoettgens committed Aug 23, 2024
1 parent a2d3d3b commit 0f44ec6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
8 changes: 6 additions & 2 deletions experimental/LieAlgebras/src/LieAlgebras.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,22 +211,26 @@ function number_of_simple_roots end

include("Types.jl")
include("Combinatorics.jl")
include("Util.jl")

include("CartanMatrix.jl")
include("CoxeterGroup.jl")
include("RootSystem.jl")
include("DynkinDiagram.jl")
include("WeylGroup.jl")

include("Util.jl")
include("LieAlgebra.jl")
include("AbstractLieAlgebra.jl")
include("LinearLieAlgebra.jl")
include("DirectSumLieAlgebra.jl")

include("LieSubalgebra.jl")
include("LieAlgebraIdeal.jl")
include("LieAlgebraHom.jl")
include("DirectSumLieAlgebra.jl")

include("LieAlgebraModule.jl")
include("LieAlgebraModuleHom.jl")

include("iso_oscar_gap.jl")
include("iso_gap_oscar.jl")
include("GapWrapper.jl")
Expand Down
13 changes: 5 additions & 8 deletions experimental/LieAlgebras/src/Types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@

@attributes mutable struct RootSystem
cartan_matrix::ZZMatrix # (generalized) Cartan matrix
#fw::QQMatrix # fundamental weights as linear combination of simple roots
positive_roots::Vector #::Vector{RootSpaceElem} (cyclic reference)
positive_roots_map::Dict{QQMatrix,Int}
positive_coroots::Vector #::Vector{DualRootSpaceElem} (cyclic reference)
positive_coroots_map::Dict{QQMatrix,Int}
weyl_group::Any #::WeylGroup (cyclic reference)
weyl_group::Any #::WeylGroup (cyclic reference)

# optional:
type::Vector{Tuple{Symbol,Int}}
Expand Down Expand Up @@ -81,8 +80,6 @@ end
#
###############################################################################

abstract type CoxeterGroup end

@attributes mutable struct WeylGroup <: AbstractAlgebra.Group
finite::Bool # finite indicates whether the Weyl group is finite
refl::Matrix{UInt} # see positive_roots_and_reflections
Expand Down Expand Up @@ -147,9 +144,9 @@ end
#
###############################################################################

abstract type LieAlgebra{C<:FieldElem} end
abstract type LieAlgebra{C<:FieldElem} <: AbstractAlgebra.Set end

abstract type LieAlgebraElem{C<:FieldElem} end
abstract type LieAlgebraElem{C<:FieldElem} <: AbstractAlgebra.SetElem end

###############################################################################
# AbstractLieAlgebra
Expand Down Expand Up @@ -408,7 +405,7 @@ end
#
###############################################################################

@attributes mutable struct LieAlgebraModule{C<:FieldElem}
@attributes mutable struct LieAlgebraModule{C<:FieldElem} <: AbstractAlgebra.Set
L::LieAlgebra{C}
dim::Int
transformation_matrices::Vector{MatElem{C}}
Expand Down Expand Up @@ -436,7 +433,7 @@ end
end
end

struct LieAlgebraModuleElem{C<:FieldElem}
struct LieAlgebraModuleElem{C<:FieldElem} <: AbstractAlgebra.SetElem
parent::LieAlgebraModule{C}
mat::MatElem{C}
end
Expand Down

0 comments on commit 0f44ec6

Please sign in to comment.