C = coxeterMatrix Wm = coxeterMatrix(W, label1, label2)C = coxeterMatrix Am = coxeterMatrix(A, i, j)The simple reflections attached to $A=(a_{ij})$ generate the Weyl group with relations $$s_i^2=1,\qquad (s_is_j)^{m_{ij}}=1 \quad\text{when }m_{ij}<\infty.$$ This function sets $m_{ii}=1$ and, for $i\ne j$, computes $$m_{ij}=2,3,4,6,\text{ or }\infty \quad\text{as }a_{ij}a_{ji}=0,1,2,3,\text{ or }\geq4.$$ The full result is a nested list rather than a Macaulay2 Matrix because an integer matrix cannot contain infinity. Thus C#(i-1)#(j-1) is $m_{ij}$, but the three-argument form is usually clearer because it follows the package's 1-based Dynkin-node convention directly. The value for an infinite exponent is the Macaulay2 number infinity.
|
|
|
|
|
The labeled calls return $3$ and $2$: adjacent simple reflections satisfy the length-$3$ braid relation, while the two end reflections commute. When a Cartan datum is supplied, nodes can be specified by their names or by positions numbered from $1$. With a matrix, use positions.
|
|
|
The last line returns (3, 4, 6, infinity): the first three pairs satisfy braid relations of lengths $3$, $4$, and $6$, while the final pair has no finite braid relation. Disconnected nodes have exponent $2$, so their simple reflections commute. Since only $a_{ij}a_{ji}$ is used, transposing $A$ leaves the Coxeter matrix unchanged even though it exchanges the root and coroot realizations.
The object coxeterMatrix is a method function.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/KacMoody/Documentation.m2:7661:0.