Macaulay2 » Documentation
Packages » KacMoody » Command reference » isCartanMatrix
next | previous | forward | backward | up | index | toc

isCartanMatrix -- Test whether a matrix is a generalized Cartan matrix

Description

A generalized Cartan matrix is permitted to be of affine or indefinite type (e.g. $\det A \leq 0$), hence this test does not require finite type. For a finite-type test use cartanType.

i1 : isCartanMatrix cartanA 3                  -- finite type

o1 = true
i2 : isCartanMatrix matrix{{2,-2},{-2,2}}      -- affine sl_2 hat

o2 = true
i3 : isCartanMatrix matrix{{2,-3},{-3,2}}      -- rank-2 hyperbolic

o3 = true
i4 : isCartanMatrix matrix{{2,-1},{-1,1}}      -- fails (diag not 2)

o4 = false
i5 : isCartanMatrix matrix{{2,-1},{0,2}}       -- fails (asymmetric zero pattern)

o5 = false

The first three answers are true: finite, affine, and indefinite matrices can all satisfy the generalized Cartan axioms. The last two answers are false because one diagonal entry is not $2$, and because a zero entry is not matched by a zero in the transpose position, respectively.

For the programmer

The object isCartanMatrix is a function closure.


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/KacMoody/Documentation.m2:4065:0.