Skip to content

Commit a8e7882

Browse files
committed
new model for lie algebras
1 parent ee5f09a commit a8e7882

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
abstract type AbstractLieAlgebra end
2+
3+
struct LieAlgebra <: AbstractLieAlgebra
4+
5+
end
6+
7+
struct SumLieAlgebra <: AbstractLieAlgebra
8+
algs::Vector{AbstractLieAlgebra}
9+
end
10+
11+
12+
abstract type AbstractLieAlgebraElem end
13+
14+
struct LieAlgebraElem <: AbstractLieAlgebraElem
15+
alg::LieAlgebra
16+
coeffs::Vector{ComplexF64}
17+
end
18+
19+
struct SumLieAlgebraElem <: AbstractLieAlgebraElem
20+
alg::SumLieAlgebra
21+
elems::Vector{AbstractLieAlgebraElem}
22+
end
23+
24+
25+
abstract type AbstractLieAlgebraAction end
26+
27+
struct LieAlgebraAction <: AbstractLieAlgebraAction
28+
alg::LieAlgebra
29+
vars::Vector{Vector{Variable}}
30+
end
31+
32+
struct SumLieAlgebraAction <: AbstractLieAlgebraAction
33+
alg::SumLieAlgebra
34+
end
35+
36+
struct ScalingLieAction <: AbstractLieAlgebraAction
37+
38+
end

src/on_varieties/lie-symmetries/lie-algebras.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export LieAlgebra,
3131
irreducible_components,
3232
PolynomialVectorSpace,
3333
decompose,
34-
34+
,
3535

3636
struct WeightStructure
3737
weights::Vector{Vector{Int}}
@@ -383,7 +383,7 @@ algebra(π::IrreducibleLieAlgebraRepresentation) = π.alg
383383
space_basis::IrreducibleLieAlgebraRepresentation) = basis.hw_module)
384384
highest_weight::IrreducibleLieAlgebraRepresentation) = highest_weight.hw_module)
385385
highest_weight_vector::IrreducibleLieAlgebraRepresentation) = highest_weight_vector.hw_module)
386-
dim::IrreducibleLieAlgebraRepresentation) = 2*highest_weight(π)[1]+1 # TODO: works only for so(3)
386+
dim::IrreducibleLieAlgebraRepresentation) = prod([2*j+1 for j in highest_weight(π)]) # TODO: works only for so(3)
387387

388388
function to_expressions::IrreducibleLieAlgebraRepresentation; tol::Float64=1e-5)
389389
exprs = Expression[]

0 commit comments

Comments
 (0)