L = weylGroupElements AL = weylGroupElements(A, k)Elements are listed in order of increasing length, so weylGroupElements A begins with the identity (empty word) and ends with $w_0$. Each element is given by one reduced word; other reduced words may represent the same element. Before listing all elements, the function checks the group order against MaxElements. To list elements of a chosen length, the calculation also retains elements of smaller length, so those count toward the limit as well.
|
|
|
|
|
The first count $6$ is $|W(A_2)|=|S_3|$. The first and last displayed elements are the identity and the longest element. The second count $6$ says that $W(A_3)=S_4$ has exactly six elements of Coxeter length $3$, equivalently six permutations with three inversions.
The object weylGroupElements is a method function with options.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/KacMoody/Documentation.m2:8119:0.