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

weylLength -- Coxeter length of a Weyl-group element

Description

Equivalently, the number of positive roots sent to negative roots by the element; or the length of any reduced word. The argument w need not itself be reduced. The one-argument form takes a WeylElement and returns its Coxeter length.

i1 : A = cartanA 3

o1 = | 2  -1 |
     | -1 2  |

              2       2
o1 : Matrix ZZ  <-- ZZ
i2 : weylLength(A, {1,2,1})        -- reduced, length 3

o2 = 3
i3 : weylLength(A, {1,2,1,2,1,2})  -- identity, length 0

o3 = 0

The outputs $3$ and $0$ distinguish a reduced expression for the longest element of $A_2$ from the identity. Although the second input has six letters, its Weyl-group element has Coxeter length $0$.

The length of $w_0$ equals the number of positive roots. For the classical types this reproduces the familiar formulas $|\Phi^+(A_{n-1})| = \binom{n}{2}$, $|\Phi^+(B_n)| = |\Phi^+(C_n)| = n^2$, $|\Phi^+(D_n)| = n(n-1)$:

i4 : weylLength(cartanA 5, longElement cartanA 5)  -- C(5,2) = 10

o4 = 10
i5 : weylLength(cartanB 3, longElement cartanB 3)  -- 3^2 = 9

o5 = 9
i6 : weylLength(cartanD 4, longElement cartanD 4)  -- 4*3 = 12

o6 = 12

See also

Ways to use weylLength:

  • weylLength(Matrix,List)
  • weylLength(WeylElement)

For the programmer

The object weylLength 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:7909:0.