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

weylInversionData -- Length and (left) inversion set of a Weyl-group word

Description

The word w need not be reduced. The function processes w left to right, maintaining a running inversion set: at each step it determines whether the next simple reflection adds or removes an inversion, updating the set accordingly. After processing, the remaining inversion set is the (left) inversion set of the Weyl-group element represented by the word, and "length" is its Coxeter length.

Each inversion is stored as a positive root in simple-root coordinates.

i1 : A = cartanA 4

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

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

o2 = HashTable{"inversions" => {{1, 0, 0}, {1, 1, 0}, {0, 1, 0}}}
               "length" => 3
               "word" => {1, 2, 1}

o2 : HashTable
i3 : weylInversionData(A, {1,2,1,2,1,2})  -- identity: empty inversions

o3 = HashTable{"inversions" => {}          }
               "length" => 0
               "word" => {1, 2, 1, 2, 1, 2}

o3 : HashTable

The first element has length $3$ and its inversion roots are $\alpha_1$, $\alpha_2$, and $\alpha_1+\alpha_2$, with simple-root tuples $(1,0,0)$, $(0,1,0)$, and $(1,1,0)$. The repeated word in the second call is the identity, so its length is $0$ and its inversion list is empty.

The longest element $w_0$ of $A_3 = S_4$ has length $\binom{4}{2} = 6$, and its inversion set is all of $\Phi^+$:

i4 : H := weylInversionData(cartanA 4, longElement cartanA 4);
i5 : H#"length"

o5 = 6
i6 : # H#"inversions"

o6 = 6
i7 : set H#"inversions" === set entries cartanPositiveRoots cartanA 4

o7 = true

In $B_3$ the longest element has length $9$ and inverts all nine positive roots (three short, six long):

i8 : H2 := weylInversionData(cartanB 3, longElement cartanB 3);
i9 : H2#"length"

o9 = 9

See also

Ways to use weylInversionData:

  • weylInversionData(Matrix,List)

For the programmer

The object weylInversionData 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:7859:0.