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

reducedWord -- Reduced word for the Weyl-group element of a given expression

Description

Computes the matrix of w and repeatedly removes a right descent. Each step lowers Coxeter length by one, so the resulting word is reduced. No Weyl-group enumeration is performed. If u is a WeylElement, the one-argument form returns its stored reduced word, in 1-based node positions.

i1 : A = cartanA 3

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

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

o2 = {2, 1}

o2 : List
i3 : reducedWord(A, {1,2,1,2,1,2})   -- identity

o3 = {}

o3 : List

The first reduced word is $(2,1)$, representing $s_2s_1$: the braid relation reduces $s_1s_2s_1s_2$ to that product. The second reduced word is the empty word, because $(s_1s_2)^3=1$ in type $A_2$.

Braid-equivalent expressions produce the same element. The fixed choice of right descent returns the same reduced word for the same matrix, although a Weyl element generally has many reduced expressions:

i4 : reducedWord(A, {1,2,1})

o4 = {1, 2, 1}

o4 : List
i5 : reducedWord(A, {2,1,2})         -- braid: s_1 s_2 s_1 = s_2 s_1 s_2

o5 = {1, 2, 1}

o5 : List
i6 : weylElementMatrix(A, {1,2,1}) == weylElementMatrix(A, {2,1,2})

o6 = true

The length of the reduced word matches weylLength, and for the longest element equals the number of positive roots:

i7 : w0 := longElement cartanB 3

o7 = {1, 2, 1, 3, 2, 1, 3, 2, 3}

o7 : List
i8 : weylLength(cartanB 3, w0)            -- 9 = |Phi^+(B_3)|

o8 = 9
i9 : length reducedWord(cartanB 3, w0 | w0)  -- identity: empty

o9 = 0

Custom node labels are accepted when constructing a Weyl element, but its reduced word is returned in node positions:

i10 : C = cartanDatum("A2",NodeLabels=>{"left","right"});
i11 : w = weylElement(weylGroup C,{"left","right","left"})

o11 = s_left s_right s_left

o11 : WeylElement
i12 : reducedWord w

o12 = {1, 2, 1}

o12 : List

The list $(1,2,1)$ means $s_{\mathrm{left}}s_{\mathrm{right}}s_{\mathrm{left}}$. The alternate reduced expression $(2,1,2)$ represents the same element by the $A_2$ braid relation.

See also

Ways to use reducedWord:

  • reducedWord(Matrix,List)
  • reducedWord(WeylElement)

For the programmer

The object reducedWord 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:8321:0.