Skip to content

Commit

Permalink
Add parent check for normalizer(::LieAlgebra,::LieAlgebraIdeal)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Jul 21, 2023
1 parent b031420 commit e7f6534
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion experimental/LieAlgebras/src/LieAlgebraIdeal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,12 @@ Return the normalizer of `I` in `L`, i.e. $\{x \in L \mid [x, I] \subseteq I\} =
As `I` is an ideal in `L`, this is just `L`.
"""
function normalizer(L::LieAlgebra, I::LieAlgebraIdeal)
@req base_lie_algebra(I) == L "Incompatible Lie algebras."
return sub(L)
end

function normalizer(I::LieAlgebraIdeal)
return sub(base_lie_algebra(I))
return normalizer(base_lie_algebra(I), I)
end

@doc raw"""
Expand Down

0 comments on commit e7f6534

Please sign in to comment.