Skip to content

Commit 2b482f7

Browse files
authored
Test degeneracy of Killing via RankMat, not determinants (#5794)
1 parent 3128572 commit 2b482f7

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lib/alglie.gi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,7 @@ InstallMethod( IsSimpleAlgebra,
21632163
function( L )
21642164
if Characteristic( LeftActingDomain( L ) ) <> 0 then
21652165
TryNextMethod();
2166-
elif DeterminantMat( KillingMatrix( Basis( L ) ) ) = 0 then
2166+
elif RankMat( KillingMatrix( Basis( L ) ) ) <> Dimension( L ) then
21672167
return false;
21682168
else
21692169
return Length( DirectSumDecomposition( L ) ) = 1;
@@ -2371,8 +2371,7 @@ InstallMethod( SemiSimpleType,
23712371

23722372
# We test whether the Killing form of `L' is nondegenerate.
23732373

2374-
d:= DeterminantMat( KillingMatrix( Basis( L ) ) );
2375-
if IsZero( d ) then
2374+
if RankMat( KillingMatrix( Basis( L ) ) ) <> Dimension( L ) then
23762375
Info( InfoAlgebra, 1,
23772376
"The Killing form of <L> is degenerate." );
23782377
return fail;
@@ -2894,7 +2893,7 @@ InstallMethod( RootSystem,
28942893

28952894
F:= LeftActingDomain( L );
28962895

2897-
if DeterminantMat( KillingMatrix( Basis( L ) ) ) = Zero( F ) then
2896+
if RankMat( KillingMatrix( Basis( L ) ) ) <> Dimension( L ) then
28982897
Info( InfoAlgebra, 1, "the Killing form of <L> is degenerate" );
28992898
return fail;
29002899
fi;

0 commit comments

Comments
 (0)