P = kazhdanLusztigPolynomial(u,v)P = kazhdanLusztigPolynomial(u,v,Variable=>t)a = kazhdanLusztigCoefficients(u,v)q = kazhdanLusztigVariable()mu = dotWeylAction(u,lambda)M = simpleHighestWeightModule(D,mu)m = vermaCompositionMultiplicity(D,lambda,u,v)T = vermaCompositionFactors(D,lambda,u)B = bggResolution(D,lambda)B = bggResolution(D,lambda,MaxDegree=>k)C = bggEulerCharacter(B,Depth=>H)kazhdanLusztigPolynomial computes $P_{u,v}(q)$ recursively for an arbitrary symmetrizable Kac–Moody Weyl group. A reduced word for $v$ determines the finite Bruhat interval $[e,v]$ by the subword property. Only elements in this interval are needed, even when the Weyl group is infinite. kazhdanLusztigCoefficients returns the coefficient list in ascending powers, and kazhdanLusztigVariable returns the generator $q$ of KazhdanLusztigPolynomialRing. Inputs must have one KMWeylGroup; noncomparable elements give zero. Alternatively, kazhdanLusztigPolynomial(A,uWord,vWord) and kazhdanLusztigCoefficients(A,uWord,vWord) take a Cartan matrix and two lists of simple-reflection positions. As with weylElement, the rightmost reflection acts first.
|
|
|
|
|
The output is the polynomial $q+1$, meaning $P_{e,v}(q)=1+q$. This is the first singular Schubert pattern in type $A_3$; the nonconstant term records nontrivial local intersection cohomology. To obtain its coefficient list instead, use kazhdanLusztigCoefficients(e,v); this gives {1,1} in ascending powers of $q$.
The output is an ordinary Macaulay2 polynomial. To choose its variable and ring, use Variable=>t with a variable in a polynomial ring over ZZ or QQ. The ring may have other variables as well. Without this option, the result belongs to KazhdanLusztigPolynomialRing, which is the ordinary polynomial ring $\mathbb Z[q]$; its name does not specify a new kind of polynomial. kazhdanLusztigVariable returns this default $q$.
|
|
|
|
Now the answer is $t+1$ in the chosen ring $R$. The triple (true, 1, 2) identifies the ring, gives the coefficient of $t$, and evaluates the polynomial at $t=1$. The final factorization is $(t+1)^2-1=t(t+2)$. These are the usual Macaulay2 polynomial operations. The same option applies to kazhdanLusztigPolynomial(A,uWord,vWord,Variable=>t). It must be an actual ring variable, not a constant, a polynomial such as t+1, or a variable in a quotient ring.
dotWeylAction computes $w\mathbin{\cdot}\lambda=w(\lambda+\rho)-\rho$ and preserves complete realization directions, including Weyl-fixed coordinates in a nonminimal finite realization. It is defined for any KMWeight, not just a dominant weight. For dominant integral $\lambda$, the regular block multiplicity in arbitrary symmetrizable type is $$[M(u\mathbin{\cdot}\lambda):L(v\mathbin{\cdot}\lambda)] =P_{u,v}(1).$$ simpleHighestWeightModule specifies the simple module by its datum and highest weight. vermaCompositionMultiplicity computes the displayed multiplicity for given $u$ and $v$ in finite or infinite Weyl type. vermaCompositionFactors lists all composition factors in finite type. In an infinite regular block, the full list is infinite, so this last command requires finite type. Its Tally has simple KMRepresentation objects as keys and composition multiplicities as values. The weight in simpleHighestWeightModule(D,mu) may also be given as a list of Dynkin labels; no dominance condition is imposed by this constructor. Specifying a simple module does not compute its character: moduleCharacter currently accepts Verma and integrable highest-weight modules instead.
bggResolution records the term in homological degree $k$ as $$\bigoplus_{\ell(w)=k}M(w\mathbin{\cdot}\lambda).$$ It records terms and multiplicities, not differential matrices. In finite Weyl type, the default returns the full exact resolution. In affine or indefinite type, MaxDegree=>k is required and returns every summand through homological degree $k$; the result records exact=>false and the largest homological degree computed. The highest weight may also be supplied as a Dynkin-label list. In finite type, a smaller MaxDegree likewise asks for only the terms through that degree. The entries terms, computedThroughDegree, and exact give the degreewise Verma tallies, the last computed degree, and whether all terms of the resolution are present. Equality of these results includes the datum, highest weight, terms, and bounds; identical displayed terms do not identify a full resolution with a partial one.
|
|
|
|
Each degree is written as a direct sum of Verma modules. In this finite-type example, M(a,b) denotes the Verma module of highest weight $a\omega_1+b\omega_2$. The BGG resolution of $L(\omega_1)$ has length $3$ and respectively $1,2,2,1$ Verma summands in degrees $0,1,2,3$, matching the Weyl-group length distribution of $S_3$.
|
|
|
|
|
The output (false, 3, {1,2,2,2}) means that the affine $A_1^{(1)}$ BGG resolution is complete in degrees $0,1,2,3$, with one Verma summand in degree $0$ and two in each positive degree shown. It does not assert that the infinite resolution ends in degree $3$. The chosen highest weight has derivation eigenvalue $0$. Every tuple in M(a,b,q) gives full realization coordinates: $(a,b)$ are Dynkin labels and $q$ is the eigenvalue of the standard derivation. Thus modules in different affine grades remain distinct.
bggEulerCharacter expands the alternating sum of Verma characters through an absolute root depth. Its result is marked truncated even when cancellation leaves finite support: all coefficients are known through the requested depth, but no assertion is made about larger depths. If the BGGResolution is homologically truncated through degree $k$, only Depth=>H with $H\leq k$ is accepted; omitted BGG terms can first affect larger root depths.
For Kazhdan–Lusztig polynomials, MaxElements bounds the number of elements in the principal Bruhat interval $[e,v]$, including when the answer is obtained from commuting factors. For a BGG resolution, it bounds the Weyl elements in the requested homological degrees. If this limit is exceeded, the command reports an error; it does not return an incomplete answer for the requested range.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/KacMoody/Documentation.m2:11680:0.