Macaulay2 » Documentation
Packages » KacMoody » The Weyl group
next | previous | forward | backward | up | index | toc

The Weyl group -- Reflections, length, descents, Bruhat order, Poincaré polynomial

The Weyl group is represented concretely by sequences of simple-reflection indices (words in $\{1,\dots,r\}$) and by the matrices they produce acting on the simple-root basis.

i1 : A = cartanA 4

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

              3       3
o1 : Matrix ZZ  <-- ZZ
i2 : weylGroupOrder A

o2 = 24
i3 : P = weylLengthGenerating A;
i4 : P

      6     5     4     3     2
o4 = q  + 3q  + 5q  + 6q  + 5q  + 3q + 1

o4 : KazhdanLusztigPolynomialRing
i5 : factor P

            2  2       2
o5 = (q + 1) (q  + 1)(q  + q + 1)

o5 : Expression of class Product
i6 : w = longElement A

o6 = {1, 2, 1, 3, 2, 1}

o6 : List
i7 : weylLength(A, w)

o7 = 6

The coefficient of $q^k$ counts Weyl-group elements of length $k$. For this example the polynomial is $$1+3q+5q^2+6q^3+5q^4+3q^5+q^6.$$

The factorization output means $$P(q)=(q+1)^2(q^2+q+1)(q^2+1).$$ These are the irreducible factors over $\mathbb Z$. They also recover the usual $q$-integer formula $$P(q)=[4]_q!=[1]_q[2]_q[3]_q[4]_q,$$ since $[4]_q=(q+1)(q^2+1)$.

The same commands work in any finite type. $W(G_2)$ is the dihedral group of order $12$ with longest element of length $6$; $W(F_4)$ has order $1152$; $W(D_4)$ has order $192$:

i8 : weylGroupOrder cartanG2()

o8 = 12
i9 : PG2 = weylLengthGenerating cartanG2();
i10 : PG2

       6     5     4     3     2
o10 = q  + 2q  + 2q  + 2q  + 2q  + 2q + 1

o10 : KazhdanLusztigPolynomialRing
i11 : factor PG2

             2  2           2
o11 = (q + 1) (q  - q + 1)(q  + q + 1)

o11 : Expression of class Product
i12 : longElement cartanG2()

o12 = {1, 2, 1, 2, 1, 2}

o12 : List
i13 : weylGroupOrder cartanF4()

o13 = 1152
i14 : weylGroupOrder cartanD 4

o14 = 192

For $G_2$, the factorization is $$(q+1)^2(q^2+q+1)(q^2-q+1)=[2]_q[6]_q.$$ Evaluating at $q=1$ gives $12$, the Weyl-group order.

The number of roots and the size of the Weyl group can be very different. In type $E_8$:

i15 : A = cartanE 8;

               8       8
o15 : Matrix ZZ  <-- ZZ
i16 : (numrows cartanPositiveRoots A, weylGroupOrder A,
       length longElement A)

o16 = (120, 696729600, 120)

o16 : Sequence

The output $(120,696729600,120)$ says that $E_8$ has $120$ positive roots, its Weyl group has $696729600$ elements, and its longest element has length $120$. The last number equals the number of positive roots because the longest element sends all of them to negative roots. The order, Poincaré polynomial, and longest element can be computed without listing the entire group; weylGroupElements actually lists elements, subject to MaxElements.

Bruhat order, descent sets and inversion data are available uniformly. For $B_3$:

i17 : B = cartanB 3

o17 = | 2  -1 0  |
      | -1 2  -1 |
      | 0  -2 2  |

               3       3
o17 : Matrix ZZ  <-- ZZ
i18 : u = {1,2,3,2,1}

o18 = {1, 2, 3, 2, 1}

o18 : List
i19 : reducedWord(B, u)

o19 = {1, 2, 3, 2, 1}

o19 : List
i20 : leftDescentSet(B, u)

o20 = {1}

o20 : List
i21 : rightDescentSet(B, u)

o21 = {1}

o21 : List
i22 : weylInversionData(B, u)

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

o22 : HashTable

The last hash table says that $u$ has length $5$ and inversion set $$\{\alpha_1,\ \alpha_1+\alpha_2,\ \alpha_1+\alpha_2+\alpha_3,\ \alpha_1+\alpha_2+2\alpha_3,\ \alpha_1+2\alpha_2+2\alpha_3\}.$$ Its five roots are the five simple-root-coordinate rows shown in the inversions field.

See also


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