H = weylInversionData(A, w)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.
|
|
|
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^+$:
|
|
|
|
In $B_3$ the longest element has length $9$ and inverts all nine positive roots (three short, six long):
|
|
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.