  METAPLECTIC COVERS OF p-ADIC GROUPS AND QUANTUM
             GROUPS AT ROOTS OF UNITY

                          VALENTIN BUCIUMAS AND MANISH M. PATNAIK


         A BSTRACT. We describe the structure of the Whittaker or Gelfand–Graev mod-
         ule on a n-fold metaplectic cover of a p-adic group G at both the Iwahori and
         spherical level. Following a conjecture of Gaitsgory–Lurie, we express our an-
         swer in terms of the representation theory of a quantum group at a root of unity
         attached to the Langlands dual group of G. To do so, we introduce an algebro-
         combinatorial model for our p-adic Whittaker modules and develop for them a
         Kazhdan–Lusztig theory involving new generic parameters. These parameters
         can either be specialized to Gauss sums to recover the p-adic theory or to the
         grading parameter in the representations theory of quantum groups. As appli-
         cations, we deduce ‘geometric’ Casselman–Shalika type results for metaplectic
         covers as well as a variant of G. Savin’s local Shimura type correspondences at
         the Whittaker level.




                                                           C ONTENTS
1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .    2
  1.1. Geometric Casselman–Shalika Formulas for Metaplectic Covers . . . . . . . .                                                          7
  1.2. Summary of techniques and relations to existing literature . . . . . . . . . . . . . .                                              14
2. Notations and Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                   21
  2.1. General Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                 21
  2.2. Notation for p-adic fields and Gauss sums . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                 21
  2.3. Generic ring Zτ,g and its quantum, and p-adic specializations . . . . . . . . . . .                                                 22
  2.4. Frequently used Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                    24

    Part I. Combinatorial models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                         26
3.  Affine Hecke algebras and canonical bases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                              26
  3.1. Cartan datum and associated structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                              26
  3.2. Root datum and their twists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                     28
  3.3. Hecke algebras and (parabolic) Kazhdan–Lusztig theory of Coxeter
              groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         33
  3.4. Affine Weyl groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                37
  3.5. Affine Hecke algebras and their combinatorics . . . . . . . . . . . . . . . . . . . . . . . . .                                     41
  3.6. Twisted affine Hecke algebras . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                         43
  3.7. Involutions and canonical bases in Vesph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                            47
  3.8. Littlewood–Richardson polynomials and the H                                esph -module structure on
              Vsph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
              e                                                                                                                            49
  3.9. Tensor product theorems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                     51
4. g-twisted canonical bases and Kazhdan-Lusztig polynomials . . . . . . . . . . . . . . .                                                 53
  4.1. Metaplectic Demazure–Lusztig operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                    54
                                                                    1
          4.2.     The metaplectic polynomial representation V . . . . . . . . . . . . . . . . . . . . . . . . . . 58
          4.3.     g-twisted canonical bases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
          4.4.     g-twisted Littlewood–Richardson theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

         Part II. p-adic models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                    64
     5.  Recollections on p-adic groups, their covers, and associated Hecke algebras . .                                                           65
       5.1. Groups attached to root datum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                            65
       5.2. Structure of p-adic groups and their covers . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                    67
       5.3. Hecke algebras . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .               69
     6. Spherical and Iwahori–Whittaker functions on covers of p-adic groups . . . . . .                                                           72
       6.1. Whittaker spaces for covering groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                 72
       6.2. Structure of the Iwahori–Whittaker space Wψ (G,                         e I−) . . . . . . . . . . . . . . . . . . .                    74
       6.3. Structure of the spherical Whittaker space Wψ (G,                        e K) . . . . . . . . . . . . . . . . . . .                    76

       Part III. Interpretation via quantum groups at roots of unity and
applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   78
  7. Quantum groups at a root of unity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                             78
     7.1. Algebras attached to root datum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                              78
     7.2. Classical and quasi-classical specializations . . . . . . . . . . . . . . . . . . . . . . . . . . .                                      80
     7.3. Quantum groups at roots of unity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                               81
     7.4. Background on enriched Grothendieck rings . . . . . . . . . . . . . . . . . . . . . . . . . . .                                          83
     7.5. Extension formulas in Rep(U̇ζ (Ď)) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                  85
  8. Main result and applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                        88
     8.1. The main result . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                88
     8.2. On the local Shimura correspondence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                    90
     8.3. Whittaker functions and g-twisted combinatorics . . . . . . . . . . . . . . . . . . . . . . .                                            93
  References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .     95




                                                         1. I NTRODUCTION
   Let F be a non-archimedean local field and G = G(F) the points of a (split)
simple and simply connected Chevalley group. To a pair (Q, `) where ` is a positive
integer and Q is an integer valued, Weyl group invariant, quadratic form on the
coweight lattice of G, we may associate a metaplectic `-fold covering group G    e of
G. Let us denote by K a maximal compact subgroup of G. Fix a Borel subgroup
and write I − ⊂ K for the Iwahori subgroup defined with respect to the opposed
Borel. We denote lifts of these subgroups to Ge by the same symbols. Also fix ψ
an additive character of F of conductor 0 and extend it to one for the unipotent
radical of the chosen Borel (see §2.2.3 and §6.1.1). In the linear case (i.e. ` = 1),
the space of spherical Whittaker functions on G, otherwise called the spherical
Gelfand–Graev representation and denoted Wψ (G, K), is a free rank one module
over the spherical Hecke algebra H(G, K) (see [42, §5.3]). One way to see this is
by identifying its Iwahori–Whittaker analogue Wψ (G, I − ) with the anti-spherical
module of the Iwahori–Hecke algebra H(G, I − ) (see [29, Cor. 4.4] or [11, Equation
(2)]). Moreover, from these descriptions of Whittaker spaces, one may deduce
                                                                          2
both the classical and ‘geometric’ Casselman–Shalika formulas that have played
an important in the classical and geometric Langlands programs.
   The aim of this paper is to extend such results to the non-linear or metaplectic
case (i.e. ` > 1). Since the pioneering work of Kazhdan–Patterson [67], it has
been known that the metaplectic Gelfand–Graev representation Wψ (G,      e K) is not
a rank one module over H(G, K). Moreover, it was expected that the structure of
                              e
Wψ (G,e K) must be somewhat intricate to reflect both the algebraic and arithmetic
complexities of known metaplectic Casselman–Shalika formulas [24, 32, 91]. A
fundamentally new framework to understand these issues was provided by the pro-
gram of D. Gaitsgory and J. Lurie (see especially [46, Conjecture 0.4]).
   To explain this, note that for a specific choice of Q (essentially the ‘minimal’
                                         `, we can also construct another object,
or ‘primitive’ choice, see §3.2.8) and any
namely the (big) quantum group U̇ζ Ǧ of the dual group Ǧ at a 2`-th root of unity
ζ ∈ C. As G. Lusztig observed (see [83, §35]), the category of finite-dimensional
representations Rep U̇ζ (Ǧ) is equipped with the action (via quantum Frobenius)
                                        
of the representation category Rep Ǧ` of an auxiliary linear algebraic group Ǧ`
constructed from G and the chosen (Q, `). The Gaitsgory–Lurie conjecture posits
an equivalence between a certain category of twisted,Whittaker sheaves on the
affine Grassmannian attached to G with Rep U̇ζ (Ǧ) in a manner compatible
with the actions of Hecke algebra and quantum Frobenius, respectively. Whereas
progress towards the full Gaitsgory–Lurie conjecture at the level of factorization
categories seems ongoing (see [47, 48]), a version of this conjecture (at the level of
DG-categories of D-modules) has already been established by Campbell–Dhillon–
Raskin in [27].
   The main results obtained in this paper can be summarized as follows:
                                                    e I − ) into H(G,
    (a) We obtain an explicit decomposition of Wψ (G,              e I − )-submodules,
        each of which can be identified precisely with a certain anti-spherical (or
        closely related) module for the corresponding affine Hecke algebra. This
        leads us to find and study new Kazhdan–Lusztig type bases for Wψ (G,  e K),
        in terms of which we can formulate various Casselman–Shalika type for-
        mulas. One such formula (see (1.12)) can be expressed in terms of q-
        Littlewood–Richardson coefficients, expressions of considerable combina-
        torial interest.
    (b) We prove an isomorphism between Wψ (G,     e K) and a certain (enriched)
                                                 
        graded Grothedieck ring of Rep U̇ζ (Ǧ) that intertwines the Hecke ac-
                               
        tion with the Rep Ǧ` action.
As Wψ (G,e K) is an analogue of the category of Whittaker sheaves, (b) can per-
haps be construed as a p-adic version of the Gaitsgory–Lurie conjecture. This
work is independent of and, as we explain in more detail in §1.2.8, does not ap-
pear to be just a ‘decategorified’ version of [27]. A decomposition of Wψ (G,
                                                                            e I−)
similar to the one in (a) recently appeared in two places: in the geometric work
of Campbell–Dhillon–Raskin [27] and in the algebraic work of Gao–Gurevich–
Karasiewicz [49]; in both papers results at the pro-p level appear naturally. Our
                                          3
approach is different, seems to handle cases not covered by [49], and also led us,
following ideas of (Lascoux)–Leclerc–Thibon [77], to the introduction of certain
Gauss-sum twisted Kazhdan–Lusztig bases for Wψ (G,      e K). These new bases, per-
haps unexpected from the usual representation theory of (covers of) p-adic groups,
are however natural in the geometric context of the Gaitsgory–Lurie program, and
they play an important role in our approach to connecting Wψ (G,   e K) with quantum
groups. So, let us now say a few, non-technical words about the different types of
bases we encounter in this work.
   Recall first that H(G,
                        e K) has not one, but two standard choices for bases: the
usual p-adic basis of K-double cosets and the ‘geometric’ basis which has played
an important role in the geometric Satake correspodence, though it was first intro-
duced algebraically by Lusztig [82]. As for Wψ (G,     e K), one again has a natural
p-adic basis. By introducing certain involutions into Wψ (G,    e K), we can produce
two new bases of Kazhdan–Lusztig type starting from this standard p-adic basis, or
from any rescaling of it for that matter.1 Indeed, a specific rescaling of the standard
p-adic basis turns out to be important in this work. To explain this, we note that the
explicit formulas for the Hecke action on Whittaker modules informing this work
(see §4.1) exhibit two layers of complexity: an algebro-combinatorial one stem-
ming from the failure of a multiplicity one result; and an arithmetic ‘enhancement’
which introduces certain Gauss sums into the formulas2. The algebraic complexi-
ties, as predicted in the Gaitsgory–Lurie program (and especially in a form made
precise by S. Lysenko [85]) arematched by those from the affine Kazhdan-Lusztig
theory governing Rep U̇ζ (Ǧ) . As for the arithmetic complexities, we are able
to manage them by rescaling the natural p-adic bases by certain explicit product
of Gauss sums. This involves reinterpreting some of the previously mentioned
(Lascoux–)Leclerc–Thibon combinatorics in terms of the metapletic Demazure–
Lustzig operators of Chinta–Gunnells–Puskás (see [31]). This rescaling appears
a posteriori in our approach and at the moment, we have no real p-adic intuition
for it, though the rescaled bases do seem to be necessary for the match with the
quantum group world. Now, whereas the D-module context of [27] and [85] nat-
urally treats the algebro-combinatorial complexity, we do not understand if the
‘arithmetic’ complexities (i.e. the Gauss sums) may also be a shadow of some
other aspect of the Gaitsgory–Lurie program and have a representation theoretic
meaning in a (probably `-adic) version of [27].
   As noted above in (a), the coefficients we find in one of our geometric meta-
plectic Casselman–Shalika formula, i.e. in the left hand side of (1.12), are equal,
up to an explicitly computable product of Gauss sums, to the so-called quantum
Littlewood–Richardson (q-LR) polynomials. These polynomials appear in the
Schur expansion of LLT polynomials, have connections to Macdonald polynomi-
als, and enjoy certain positivity properties [53, 54, 77]. As far as we know, largely

   1It might be worth remarking that in the linear case, all of these bases turn out to be the same and
the rescaling is trivial.
   2These Gauss sums are crucial for applications to number theory, for example to the theory of
multiple Dirichlet series and to computing moments of L-functions [23, 39].
                                                  4
gone unnoticed by the p-adic community (unlike the usual Littlewood–Richardson
coefficients). We refer to §1.2.4 for further remarks.
   Although not explicitly used in the main body of this work, an a priori unre-
lated connection between Wψ (G,   e I − ) and another class of quantum obects, namely
quantum affine groups at generic values of the deformation parameter, played an
important role in our thinking3. Stemming from a study of the multiple Dirichlet
series of Siegel [108] and their modern generalization called Weyl group multi-
ple Dirichlet series of [25], this connection was discovered in type A by the first
named author and his collaborators [17, 18] and has sinceled to a flurry of activity
connecting p-adic groups and discrete integrable systems (see [19–22]). The pres-
ence of this second quantum group, distinct from the quantum group predicted by
Gaitsgory-Lurie, yet still related to the same Whittaker space, has remained some-
thing of a mystery. One explanation for it can be given using the techniques from
this paper. Indeed, as we will describe below, the central player in our work is a
‘generic’ version of the Whittaker space Wψ (G,   e K) which can be specialized to a
graded version of the Grothendieck ring of a quantum group at a root of unity. The
latter object is known to carry a natural action (at least in type A ) of a quantum
affine group at a generic value providing a representation theoretic interpretation
of the quantum affine group appearing in [17, 18]. We refer the interested reader to
§1.2.5 for further comments.
   As we just signaled, our approach to connect the p-adic and quantum pictures
involves a third ‘generic’ space Vsph depending on certain formal parameters that
can be specialized in two ways: via a map p to the Gauss sums in the p-adic world;
or alternatively, via a map q to the grading within the representation category of the
quantum group. The space Vsph also carries an action of a certain spherical Hecke
algebra H esph , and the connections we describe in this work can be summarized
pictorially as follows
                                            H
                                            esph
                                             ?
                         H(G,K)
                           e
                                                                  Rep(Ǧ` )
                           ?
                                                                   −⊗Fr
                                            Vsph
                                     p                  q


                       Wψ (G,
                           e K)                             K0R (Rep(U̇ζ (Ǧ)))

Here K0R (Rep(U̇ζ (Ǧ))) is a graded version of the Grothendieck group (more pre-
cisely, the enriched right Grothendieck ring of [36]). In other words, as predicted
by Gaitsgory–Lurie and as has been verified in the D-module context by Campbell-
                                           e K) as a H(G,
Dhillon-Raskin [27], the structure of Wψ (G,             e K)-module is essentially
                      R
the same as that of K0 (Rep(U̇ζ (Ǧ)) regarded as the K0 (Rep(Ǧ` ))-module.

   3In fact, the technique of treating the Gauss sums as formal parameters and creating ‘generic’
spaces which can be specialized in different manners can be traced to the works describing this
connection.
                                               5
    Though pre-dating their appearance by a few years, the representation theory of
metaplectic p-adic groups is perhaps less well-studied than that of quantum groups
at a root of unity. So our main result allows us to pair a number of curious phenom-
enon in the representation theory of p-adic covering groups to better studied coun-
terparts in the theory of quantum groups. For example, throughout this introduction
we focus on the case of ‘geometric’ Casselman–Shalika formulas for metaplectic
groups which record (following conjectures of Lysenko [85]) the complexity of de-
composing certain tensor products of quantum group representations, and perhaps
for this reason remained somewhat obscure from a purely p-adic/number theoretic
perspective. As another example, our work naturally suggests a local Shimura cor-
respondence (see [90, 103]) at the level of the Gelfand–Graev representation which
both encapsulates certain ‘exceptional’4 phenomenon in Wψ (G,      e K) observed by
Gao–Shahidi–Szpruch [50] and also provides for these phenomena an interpreta-
tion in terms of tensor product theorems for certain irreducible (or indecomposable
tilting) modules of quantum groups.
    Finally, note that many of the techniques from this work were designed in such
a way that they could be extended to (metaplectic covers of) p-adic Kac-Moody
groups [15, 16]5. Whittaker functions in this context have already been investi-
gated in [96, 97]. Unlike the finite-dimensional situation, the representation theory
of corresponding quantum object in this case, Uζ (b    g)– a quantum group at a root
of unity attached to an affine Kac–Moody algebra– is still in its infancy. Down
the line, we hope that ideas from the p-adic world may spur its further develop-
ment. For example the (double affine) Kazhdan–Lusztig type polynomials which
presumably govern decomposition rules for Uζ (b     g) have not been defined, but the
p-adic picture suggests certain (finite!) quantities to which these should be equal.
    Before describing our main results in more detail, let us note that there are other
areas in which similar types of affine Weyl group combinatorics arise, e.g. affine
Lie algebras at negative level, representation theory of algebraic groups in positive
characteristic, and so our results might equally link the metaplectic world to these
areas.
1.1. Geometric Casselman–Shalika Formulas for Metaplectic Covers. Let us
now describe our main results from the vantage point of ‘geometric’ Casselman–
Shalika formulas.
1.1.1. Formulas of Casselman–Shalika type for linear groups. Before turning to
covers, let us recall a few results of Casselman–Shalika type for linear groups.
These results are well-known, but our presentation here is influenced by our work
in the non-linear setting. As above, write G := G(F) and consider H(G, K), the
spherical Hecke algebra of G with respect to a maximal compact subgroup K. It
is an algebra under convolution and is equipped with a natural p-adic basis hλ̌
   4Here ‘exceptional’ in the metaplectic world means that it behaves ‘normally,’ or as in the linear
group case.
    5There are however, certain important and interesting obstacles related to the lack of Coxeter
structure in the ‘double affine’ Weyl groups governing the Hecke algebras of [16] which need to be
treated.
                                                 6
given by characteristic functions of double cosets Kπ λ̌ K with λ̌ in Y+ , the set of
dominant coweights (we shall also write Y for the full lattice of coweights). The
Satake isomorphism [102], as reinterpreted by Langlands [73, Ch. 2], gives an
identification
                                            ∼
                         S : H(G, K) → K0 (Rep(Ǧ(C)))                               (1.1)
between the spherical Hecke algebra and the representation ring of the dual group
Ǧ(C) of G. To each irreducible highest weight representation Vλ̌ ∈ Rep(Ǧ(C)) we
can assign its preimage under S, namely the element cλ̌ ∈ H(G, K). The cλ̌ are the
‘geometric’ basis mentioned above, and a formula expressing them in terms of the
basis {hµ̌ } of H(G, K) was given by Kato and Lusztig [61, 82]; it involves certain
affine, parabolic Kazhdan-Lusztig polynomials.
    As above, let ψ be a non-trivial additive character of F of conductor 0 (see
§2.2.3) extended to U = U(F), the unipotent radical of some fixed Borel subgroup,
and consider Wψ (G, K) the space of compactly supported functions on G which
are (U, ψ)-left invariant and right K-invariant. To each coweight µ̌ ∈ Y , we can
consider the unique function Jµ̌ ∈ Wψ (G, K) which takes the value 1 on π µ̌ and is
supported on Uπ µ̌ K. One finds that Jµ̌ is only well-defined when µ̌ ∈ Y+ and that
such elements form a C-basis of Wψ (G, K). Denoting by ? the natural right convo-
lution of H(G, K) on Wψ (G, K), for µ̌, λ̌ ∈ Y+ , we may ask to rewrite the product
Jµ̌ ?hλ̌ in terms of the basis {Jζˇ }ζˇ ∈Y+ . For µ̌ fixed, and λ̌ large and dominant (com-
pared to µ̌), the answer to this question is given by the usual Casselman–Shalika
formula [28]. To explain this, consider
                        CS(µ̌) := ∏ (1 − q−1Y−ǎ )χµ̌ (Y ),                          (1.2)
                                      a>0

the formula for the unramified spherical Whittaker function found in op. cit., where
the notation used is as follows: Y−ǎ represents an element in the group algebra of
coweights C[Y ] corresponding to the coroot ǎ; χµ̌ (Y ) is the Weyl character for the
irreducible representation Vµ̌ of Ǧ(C) of highest-weight µ̌; q is the cardinality of
the residue field of F; and the product is over all positive roots of G. In analogy
with [82, Thm 6.6], which works in the algebraic context of affine Hecke algebras
(as opposed to p-adic groups), one shows
           Jµ̌ ? hλ̌ = CS(µ̌) ◦ Jλ̌     where we set    Yµ̌ ◦ Jζˇ = Jµ̌+ζˇ .         (1.3)
Note in passing that formulas for CS(0) play an important role in the theory of
automorphic forms, [98, 106, 107]. One complication is understanding (1.3) is that
upon applying ◦, elements of the form Jλ̌ +ζˇ where λ̌ + ζˇ is no longer dominant
may appear on the right hand side of (1.3). So to correctly interpret (1.3) as a
formula in Wψ (G, K), one needs to formally introduce elements Jµ̌ for µ̌ ∈ Y \Y+ ,
subject to ‘straightening’ rules using the ‘dot’ action • of the affine Weyl group:
                            (
                              −Jµ̌•sa if hµ̌ + ρ̌, ai 6= 0
                      Jµ̌ =                                                      (1.4)
                              0          if hµ̌ + ρ̌, ai = 0,
                                                7
where in the above formula ρ̌ is the half-sum of the positive coroots and a is any
simple root such that hµ̌ + ρ̌, ai ≤ 0. Notice that if µ̌ is fixed and λ̌ is chosen
very large, we can arrange for all the terms in the right hand side of (1.3) to be
dominant, i.e. no straightening rules are involved, and the ◦ in (1.3) amounts to
just a λ̌ -translation of CS(µ̌). For this reason, we might refer to the formula for
CS(µ̌) in [28] as an asymptotic Casselman–Shalika formula.
   From (1.3), (see [82, Corollary 6.8]), one deduces6 the existence of Cλ̌ ∈ H(G, K)
for λ̌ ∈ Y+ satisfying
                          J0 ? Cλ̌ = Jλ̌     and        S(Cλ̌ ) = [Vλ̌ ],                       (1.5)
the latter of which implies that Cλ̌ = cλ̌ , the element introduced above. As the
above expression has a natural description within the category of perverse sheaves
on the affine Grassmannian (see [42, 44, 93, 94]), we shall refer to (1.5) as a geo-
metric Casselman–Shalika formula, even though we are just in the p-adic setting.
Using (1.5), we compute
                  Jµ̌ ? cλ̌ = J0 ? cµ̌ ? cλ̌ = J0 ? ∑ cη̌ cη̌ = ∑ cη̌ Jη̌ ,                     (1.6)
                                                            µ̌,λ̌           µ̌,λ̌
                                                       η̌             η̌

where cη̌        := dimC Hom(Vη̌ ,Vµ̌ ⊗Vλ̌ ) are the Littlewood–Richardson coefficients
         µ̌,λ̌
for Ǧ(C).
Remark. Whereas (1.6) has a natural representation theoretic interpretation, such
an interpretation of (1.3) seems more opaque. In [82], (1.3) was used to deduce
(1.6), but, as far as we know, deducing (1.3) from (1.6) has not been explicitly
treated in the literature. One approach to this question would use an inverse to the
so-called Kato–Lusztig formula, cf. [5, 62, 81].
   To summarize, the above results show that the map h 7→ J0 ? h from H(G, K) →
Wψ (G, K) is an isomorphism of H(G, K) modules sending cλ̌ to Jλ̌ . Combined
with (1.1), we obtain an isomorphism
                         Wψ (G, K) ≃ K0 Rep(Ǧ(C))
                                                    
                                                                            (1.7)
intertwining the H(G, K) action on Wψ (G, K) with the K0 Rep(Ǧ(C)) -action (by
                                                                      
tensor product) on itself.
1.1.2. Metaplectic Casselman–Shalika type problems. Let us now turn to the case
of an n-fold metaplectic cover G   e of G. One can again construct a space of (gen-
uine) spherical Whittaker functions Wψ (G,    e K) equipped with a right convolution
by the spherical Hecke algebra H(G,     e K). The space Wψ (G,    e K) has a basis de-
noted Jeλ̌ , λ̌ ∈ Y+ and constructed in a similar fashion to Jλ̌ . On the other hand,
although one can introduce as above the elements e      hλ̌ in H(G,
                                                                  e K) for any λ̌ ∈ Y+ ,
unless λ̌ lies in a certain sublattice of finite index Ye+ ⊂ Y+ , the element e
                                                                              hλ̌ is not
   6This manner of introducing C , due originally to G. Lusztig, is a bit different from the ‘modern’
                                  λ̌
point of view which introduces Cλ̌ directly from a geometric point of view, see [42, 43]. We note that
Lusztig’s approach has the advantage that it also applies in the Kac-Moody setting.
                                                   8
well-defined. This ‘reduction in support’ is a hallmark of the metaplectic world.
Nonetheless, one may work with H(G,           e K) in a similar manner to H(G, K), and
in fact McNamara [90], building on the work of Savin [103], showed H(G,              e K) ∼
                                                                                          =
K0 (Rep(Ǧ(Q,n) (C))) for a complex group Ǧ(Q,n) whose root data is determined
from that of G and the metaplectic structure (Q, n) defining G        e (see also [41]).
   One can define ceλ̌ ∈ H(G, K) (uniquely) for any λ̌ ∈ Y+ to satisfy the second
                                  e                                e
condition in (1.5). Although the first condition in (1.5) breaks down, i.e. we may
have Je0 ? ceλ̌ 6= Jeλ̌ for some λ̌ ∈ Ye+ , we show that (1.3) persists if we replace CS(µ̌)
with its metaplectic version CS(   f µ̌) that was studied in [24, 32, 91, 95], i.e.

                     Jeµ̌ ? e     f µ̌) ◦ Je , where µ̌ ∈ Y+ , λ̌ ∈ Ye+ .
                            hλ̌ = CS(       λ̌                                                   (1.8)

Making precise sense of the above expression was actually the starting point of
this work.7 Indeed, one runs into the same issue as in the linear case (i.e. what to
do with non-dominant Jeλ̌ +µ̌ ) in the right hand side of (1.8). The fix now is more
involved and uses what we call ‘metaplectic’ straightening rules, see Proposition
4.3.2. These recover (and were motivated by) the straightening rules found some
time ago by Lascoux–Leclerc–Thibon [77] in type A (see [53] and [75] for the
extension to general type). In our setup, these metaplectic straightening originate at
the Iwahori level from explicit formulas for the action of H(G, e I − ) on Wψ (G,
                                                                                e I − ).
   Inspired by [77], we use our straightening rules to define an involutions of
Kazhdan–Lusztig type. As mentioned above, this allows us to construct two new
bases, called canonical bases in analogy with their quantum counterpart, {L  e }
                                                                               λ̌ λ̌ ∈Y+
and {Tf}                e K) starting from our original basis Je . One should under-
                of Wψ (G,
         λ̌ λ̌ ∈Y+                                                           λ̌
                e , Je and T
stand the bases L λ̌  λ̌
                             f as p-adic versions of the irreducible, (co)standard
                               λ̌
and indecomposable tilting modules for the corresponding quantum group at roots
of unity. Let us note that the existence of these new bases suggests three natural
metaplectic8 analogues of the linear geometric Casselman–Shalika problem (1.5):
       • compute Jeµ̌ ? ceλ̌ for λ̌ ∈ Ye+ and µ̌ ∈ Y+ ; and
       • compute Le µ̌ ? ce and T
                           λ̌
                                    fµ̌ ? ce for λ̌ ∈ Ye+ and µ̌ ∈ Y+ .
                                            λ̌
The answers to each of these questions are naturally expressed using the represen-
tation theory of quantum groups at roots of unity, as was predicted by Gaitsgory–
Lurie.

   7Note that this is not the p-adic analogue of the geometric Casselman–Shalika problem formu-
lated by Lysenko in [85, §11], which in the p-adic setting amounts to the computation of Jeµ̌ ? ceλ̌
(see (1.12)). It is unclear to us what the natural geometric significance of (1.8) might be (though its
importance to the theory of automorphic forms and multiple Dirichlet series is clear). Again, note
that going between formulas for Jeµ̌ ? ceλ̌ and Jeµ̌ ? e
                                                       hλ̌ we run into the same issues as were mentioned
in Remark 1.1.1. See also §1.2.4.
    8If one performs the same procedure in the linear case, both canonical bases agree with the
standard basis.
                                                   9
1.1.3. Quantum groups at roots of unity. The quantum groups of relevance in this
paper are Lusztig’s dotted version with divided powers. To define them, one con-
structs an ‘integral’ form (or rather a Z[u, u−1 ] form, where u is the deformation
parameter in the quantum group) and then specializes the variable u to a root of
unity ζ ∈ C. The corresponding object will be called U̇ζ (G) where G(C) is the
complex group attached to some root datum. In the main body of this paper, we
adopt a slighly different notation, but still emphasize that the quantum group we
construct depends on a root datum, and not just a Cartan datum, i.e. not just the
data needed to specify a semi-simple Lie algebra. What is of particular importance
for us is not the quantum group itself, but the structure of its (graded) category of
finite-dimensional modules Rep(U̇ζ (G))9. When u is specialized to a root of unity,
the representation theory of the quantum group diverges from the complex repre-
sentation theory of semi-simple Lie algebras. For example, although irreducible
highest weight modules from the complex semi-simple theory can be deformed to
objects ∆λ ∈ Rep(U̇ζ (G)) for λ ∈ X+ a dominant weight, such modules may be
reducible. One can still compute their character by the Weyl character formula, and
so these modules are often called Weyl or standard modules. Understanding their
irreducible quotients Lλ was the subject of conjectures put forth by Lusztig and
answered by combining the work of several groups, see [3, 59, 60, 64–66]. In addi-
tion to the irreducible and (co)standard modules, there is another important class of
modules in Rep(U̇ζ (G)) called the indecomposable tilting modules Tλ , again in-
dexed by λ ∈ X+ . The relation between the Tλ and the (co)standard modules were
the subject of conjectures and then theorems of Soergel [110, 111].
    In contrast to the representation theory of complex Lie algebras, when u is spe-
cialized to a root of unity, the category Rep(U̇ζ (G)) is no longer semi-simple as
one has non-trivial extensions between irreducible objects. As such, the usual
Grothendieck group construction loses important information about the category,
and one may work with various enhancements to try to recapture this lost data. It
seems to be well-understood that Rep(U̇ζ (G)) is also graded in the sense of [109]
and hence its Grothendieck group has a natural Z[τ, τ −1 ]-structure. We could not
find an explicit reference in the literature outside of rank 1 (see [4]), so as a sub-
stitute we work here with the so-called left and right enriched Grothendieck rings
K0L (Rep(U̇ζ (G))) and K0R (Rep(U̇ζ (G))) of [36]. They are Z[τ, τ −1 ]-modules with
basis indexed by the classes of standard objects [∆λ ] and costandard objects [∇λ ],
respectively, where λ ∈ X+ . In these spaces one has expansions10

 [Lλ ] = ∑µ∈X+ ∩λ •Waff o−                                                        +      −1
                         λ ,µ (τ)[∇µ ], and conjecturally [Tλ ] = ∑µ∈X+ ∩λ •Waff oλ ,µ (τ )[∆µ ], (1.9)

where o±λ ,µ (τ) are certain parabolic Kazhdan–Lusztig polynomials and • is the di-
lated dot action on the weight lattice. In contrast to this, working with the usual

   9The dotted and non-dotted quantum groups at a root of unity have equivalent representation
theory (see [84, §31] or [9, §3.7]).
   10We could not find an explicit reference for the tilting expansion, but note that Z. Yun [118,
Theorem 5.3.1] proves a mixed geometric analogue of this result.
                                               10
Grothendieck ring, one finds similar relations, but with a specialization of the poly-
nomials o±  λ ,µ (−1) that produces character formulas for irreducibles (Lusztig’s con-
jecture) and for indecomposable tiltings (Soergel’s conjecture [110, §7]).
   For a certain algebraic group G` constructed from the root data for G and
the integer `11, there exists a functor called quantum Frobenius and denoted Fr :
Rep(G` (C)) → Rep(U̇ζ (G)) which equips the latter category with an action by the
former [84, §35]. We write this as W,V 7→ W ⊗Fr(V ) where W ∈ Rep(U̇ζ (G)),V ∈
Rep(G` (C)). One may now pose the following questions in K0R (Rep(U̇ζ (G))):
      • write ∇µ ⊗ Fr(Vλ ) in terms of the ∇η (or more precisely, understand a ∇-
          filtration of ∇µ ⊗ Fr(Vλ ));
      • write Lµ ⊗ Fr(Vλ ) and Tµ ⊗ Fr(Vλ ) in terms of the ∇η .
The second question can be deduced from the Steinberg–Lusztig theorem, which
states that Lµ ⊗ Fr(Vλ ) ≃ Lµ+λ whenever µ is in some ‘restricted’ set of weights
and λ is in the dominant l-weight lattice Xl,+ of G` . The last question is the subject
of the tilting tensor product theorem, which states that for µ ‘restricted’ one can de-
fine a new weight µ † such that Tµ † ⊗ Fr(Vλ ) = Tµ † +λ (see §7.3.6 for more details).
As for the first question, the answer is given by the q-Littlewood–Richardson coef-
ficients of Lascoux–Leclerc–Thibon [76,77] (type A) and Grojnowski–Haiman [53]
(general type).

1.1.4. Main result and some consequences. As mentioned above, our approach12
to connecting the metaplectic and quantum worlds goes through a combinatorial
model consisting of a representation Vsph of the spherical Hecke algebra H           esph . We
define a ring Zτ,g (see §2.3.1) which depends on both a parameter τ as well as a
family of other parameters gk , k ∈ Z modelling the behavior of certain Gauss sums
from the p-adic world. The space Vsph is a Zτ,g -module and can be obtained from
a representation V of the affine Hecke algebra H           eaff , where the action is via the
metaplectic Demazure–Lusztig operators of [31, 95]. Moreover, Vsph has a natural
basis [vµ̌ ], µ̌ ∈ Y+ and an involution of Kazhdan–Lusztig type which produces new
bases denoted [Gµ̌ ] and [G−      µ̌ ]. Working with the basis [vµ̌ ], the space Vsph behaves
identically to the Fock spaces considered in Leclerc–Thibon [77] . To make a
connection to the p-adic world however, we work with renormalizations [Yµ̌ ], [Gµ̌ ],
and [G−                                −
       µ̌ ] of [vµ̌ ], [Gµ̌ ], and [Gµ̌ ], respectively involving Gauss sum parameters.
   The space Vsph recovers Wψ (G,         e K) (along with its action of the spherical Hecke
algebra) under what we call a p-adic specialization p of the parameters τ, gk (see
§2.3.3) and it recovers K0R (Rep(U̇ζ (Ǧ)) under what we call a quantum specializa-
tion q of these parameters (see §2.3.2). Each of the spaces Wψ (G,            e K), Vsph , and
K0 (Rep(U̇ζ (Ǧ)) carry natural actions by essentially isomorphic algebras H(G,
  R                                                                                     e K),

    11That the construction of this group G parallels the construction of the algebraic group control-
                                           `
ling the spherical Hecke algebras of `-fold covers was noted by M. Weissmann [117, Remark 1.4]
several years after, and seemingly independently of, the Gaitsgory–Lurie conjecture.
    12Note that there are other approaches that work in a geometric context, [27], [85], [48] which
seem to follow a different path.
                                                 11
Hesph , and K0 (Rep(Ǧl )), respectively. Our main result asserts that p and q intertwine
these actions.
Theorem (see Thm. 8.1.4). Let ` be a positive integer. Let (Q, `) be a metaplectic
twist on the group G and G e the corresponding `-fold metaplectic cover. Assume
that G and G(Q,`) are of simply-connected type.
    (1) There exists an isomorphism
                        ≃
      p : C ⊗Zτ,g Vsph −→ Wψ (G,
                              e K)              sending    [Yµ̌ ] 7→ Jeµ̌ for µ̌ ∈ Y+ ,   (1.10)

         intertwining the H            e K) actions, and sending [G− ] and [Gµ̌ ] to
                            esph and H(G,
                                                                   µ̌
         e µ̌ and T
         L        fµ̌ , respectively.
    (2) If ` is both larger than the Coxeter number of Ď and KL-good (see §7.5),
        there exists an isomorphism
                                 ≃
 q : Z[τ, τ −1 ] ⊗Zτ,g Vsph −→ K0R (Rep(U̇ζ (Ǧ)))         sending     [Yµ̌ ] 7→ [∇µ̌ ] for µ̌ ∈ Y+(1.11)
                          esph and K0 (Rep(Ǧ` )) actions, and sending [G− ] to [Lµ̌ ].
         intertwining the H                                              µ̌

We refer to §1.2.1 and §1.2.2 for some comments on the proof of this result.
Remark.        (1) A (conjectural) relation between [Gµ̌ ] and the tilting modules
       Tλ̌ is explained in §8.1.6. This depends on certain facts about graded de-
       composition numbers which we could not find in the literature on quantum
       groups (though we believe they may be known).
   (2) The hypothesis that G(Q,`) is simply connected can be easily discarded
       if one works with extended affine Hecke algebras; we only impose it to
       simplify some of the exposition and computations. On the quantum side,
       the hypothesis that Ǧ is of adjoint type and the conditions on ` are a bit
       more serious: they allow us to use a generalization of Lusztig’s conjecture
       whose proof depends on the Kazhdan–Lusztig equivalence [69]. We do not
       believe the KL-good condition is necessary for the proof of (1.11) (and
       therefore Lysenko’s conjecture), see Remark 7.5.4. Note that if we worked
       in the setting of affine Lie algebras at negative level (instead of quantum
       groups at roots of unity), such conditions could be avoided.
  As for the geometric Casselman–Shalika problems described above, one has
Corollary (See Thm. 6.3.2 and Prop. 7.5.4). Let ζˇ ∈ Ye+ .
   (1) If λ̌ ∈ Y+ is ‘restricted’ (see §3.4.9) then L
                                                    e ? ceˇ = L
                                                          λ̌
                                                              e
                                                                 ζ     λ̌ +ζˇ
                                                                              .
    (2) If λ̌ ∈ Y+   is ‘restricted’ and we define λ̌ † := λ̌0 · w0
                                                                             ∨
                                                                     + 2(ρe − ρ̌), where ρe∨
        is the analogue of ρ̌ for G(Q,n) , then Tλ̌ † ? ceζˇ = T
                                                f                f† ˇ .
                                                                  λ̌ +ζ
    (3) There exist g Qη̌            ∈ Zτ,g such that with respect to p : Zτ,g → C and q :
                          µ̌,λ̌
         Zτ,g   → Z[τ, τ −1 ]

  Jeµ̌ ? ceλ̌ = ∑η̌ p(g Qη̌ )Jeη̌       and   [∇µ̌ ⊗ Fr(Vλ̌ )] = ∑η̌∈Y+ q(g Qη̌ )[∇η̌ ]. (1.12)
                         µ̌,λ̌                                                µ̌,λ̌
                                                 12
Remark. We find that q(g Qη̌ ) is just the quantum Littlewood–Richardson or (un-
                             µ̌,λ̌
twisted) q-LR coefficient of [53, 54, 77]. We shall refer to both g Qη̌ and p(g Qη̌ )
                                                                     µ̌,λ̌       µ̌,λ̌
as twisted q-LR coefficients. The twisted and untwisted q-LR coefficients are re-
lated by an explicit product of Gauss sums, see (4.65).
    Part (1) of the above is a p-adic analogue of a result of Lysenko [85, Thm. 7.1.1],
which itself is an analogue of the Steinberg–Lusztig tensor product theorem from
quantum groups.
    Part (2) is an analogue of the tensor product theorem of Anderson and Donkin
[6] for tilting modules, which, as far as we know, has not explicitly appeared in the
literature on Whittaker sheaves/D-modules.
    Part (3) answers a version of Lysenko [85, Conjecture 11.2.4] at the level of en-
riched Grothendieck groups; at the D-module level in which it was originally for-
mulated, it follows from the main results in [27]. Our result seems simultaneously
both ‘less and more’ than the original conjecture– less as [85] and [27] work in the
derived category whereas we work at the level of the enriched Grothendieck group;
and perhaps more since our arguments naturally produce the elements g Qη̌ con-
                                                                              µ̌,λ̌
taining the arithmetic Gauss sums which we do not (yet) appear in the geometric
context.

1.2. Summary of techniques and relations to existing literature. We now sum-
marize the rough structure of our arguments and describe some applications and
connections to the existing literature.

1.2.1. Iwahori and spherical level analysis. The results described above are at
the spherical level, but nearly everything we have said requires an Iwahori (or
affine Hecke algebra) level analysis. Recalling that I − is the Iwahori subgroup at-
tached to the Borel with unipotent radical U − (the one opposed to U). Consider
Wψ (G,e I − ) the space of (genuine) left (U, ψ) and right I − invariant compactly
supported functions on G   e which carries an action of the Iwahori–Hecke algebra
H(G, I ). The structure of H(G,
    e   −                         e I − ) was described by G. Savin and P. J. McNa-
mara in [90, 103, 104], and as in the linear case, H(G,
                                                      e I − ) has two different presen-
tations, of Iwahori–Matsumoto description or Bernstein type, the latter of which
                   eaff := HW ⊗ C[Ye ]. Now, as was observed in [95], the larger space
identifies it with H
C[Y ] carries the action of certain metaplectic Demazure–Lusztig operators T     e w for
w ∈ W , as well as the translation action of C[Y ] Hence it can be equipped with a
                                                 e
H(G,e I − )-action, and we have the following result.

Proposition (see Prop. 6.1.6 and 6.2.1). Restricted to the big cell, the averaging
map,
                            gen                ≃
                                      e I − ) −→
                          AvU − : Wψ (G,         C[Y ]                           (1.13)
                                                                 e I − ) on Wψ (G,
is an isomorphism of vector spaces intertwining the actions of H(G,             e I − ).
                                           13
Our proof uses p-adic techniques from [95]. It gives a natural p-adic basis {Ye }
                                                                               λ̌ λ̌ ∈Y
of Wψ (G,e I − ) defined by Avgen− (Y
                                    e ) = Y for λ̌ ∈ Y as well as an explicit descrip-
                               U      λ̌     λ̌
tion of the action of H(G,e I − ) in this basis.
   As mentioned before, in the linear case, Wψ (G, I − ) reduces to the anti-spherical
module for the corresponding affine Hecke algebra. A suitable replacement of
this result in the metaplectic world is obtained by taking a cue from the work of
(Lascoux)–Leclerc–Thibon [77] who find
                                 Zτ [Y ] = ⊕η̌∈A• εJ−η H
                                                       eaff                                   (1.14)
                                                   −,n
          •
where A−,n is the upper-closure of a certain alcove defined by an affine root system
connected to Ye and the εJ−η are certain (parabolic) anti-symmetrizers in H  eaff , see
(3.39) and (3.113). Observing that the action on Zτ [Y ] by H eaff looks ‘essentially’
               e I − ) on Wψ (G,
like that of H(G,              e I − ) , (1.14) leads us to a decomposition
                                      13

                            e I−) = ⊕
                        Wψ (G,                e −
                                     η̌∈A Wψ (G, I )(η̌),                                     (1.15)
                                         •
                                                 −,n


where each Wψ (G, e I − )(η̌) is a H(G, e I − )-submodule generated by the basis vector
Y
eη̌ described above (this follows combining the above with Proposition 4.2.2). The
above picture suggests other natural bases of Wψ (G,    e I − )(η̌) mentioned above 14:
      • Starting from Y  eη̌ and using a procedure as in [77, §5.1], we obtain the
        recaled basis, each term differing by a certain product of Gauss sums, see
        (4.40)
      • Importing the natural Kazhdan–Lusztig involutions coming from the anti-
        spherical module εJ−η H eaff , Leclerc–Thibon consructed their canonical bases.
        We proceed analogously.
   The results above descend to the spherical level, and on the quantum group side
the decomposition obtained in related to the weak linkage principle for blocks.

1.2.2. Quantum connection. To identify K0R Rep U̇ζ (Ǧ) and Wψ (G,
                                                                
                                                                            e K) as mod-
ules over K0 Rep Ǧ` and H(G,          e K), respectively (recall that K0 Rep Ǧ` ∼
                                                                                 
                                                                                      =
H(G, K)), we first observe that both modules are free of finite type and of the
    e
same rank: for K0R (Rep(U̇ζ (G))) this follows from the Steinberg–Lusztig theorem
[84, §35.4], and for Wψ (G, e K) this follows from Corollary 1.1.4 (1). These results
allow us to identify the canonical basis L    e with the basis given by irreducibles in
                                                λ̌
  R
                 
K0 Rep U̇ζ (Ǧ) .

   13More precisely, one works in a space with formal parameters corresponding to Gauss sums,
namely Zg,τ [Y ], and equips it with an action of H    eaff now using the ‘generic’ Demazure–Lusztig
operators of §4.1 constructed using the Chinta–Gunnells action. This space has a decomposition
similar to (1.14), see Proposition (4.2.2), and its Hecke action specializes in two ways, in one way
recovering the H                                                        e I − ) action on Wψ (G,
                 eaff action on Zτ [Y ] and in another recovering the H(G,                    e I − ).
   14We warn the reader that in the main body of this paper, we mostly consider such bases at the
spherical level, though the same methods also apply to at the Iwahori level.
                                                 14
    To identify the p-adic basis Jeλ̌ with some natural class of modules in Rep U̇ζ (Ǧ) ,
                                                                                        
we deduce from our combinatorial analysis that the transition coefficients from the
e basis to the Je basis are certain (parabolic, singular) affine Kazhdan-Lusztig
L λ̌                λ̌
polynomials. Since the costandard modules and the irreducibles in K0R (Rep(U̇ζ (G)))
are known to be in analogous relation15, we may identify the Jeλ̌ basis with the co-
standard basis in Rep U̇ζ (Ǧ) . Finally, to identify the T
                                  
                                                               f basis with the tilting
                                                                 λ̌
basis on the quantum side, we compute the relation between T        f and Je and use
                                                                     λ̌      λ̌
                            16
a (conjectural) connection between indecomposable tiltings and costandards for
the quantum group at a root of unity.
1.2.3. Local Shimura correspondence and other applications. The Iwahori analy-
sis presented above allows us to formulate a Gelfand–Graev version of Savin’s local
Shimura correspondence; namely that the H(G,      e I − )-submodule Wψ (G, e I − )(−ρ̌)
and the H(G, e K)-submodule Wψ (G,   e K)(−ρ̌) behave essentially like their counter-
parts in the linear (or non-metaplectic) setting for the group G(Q,n) (see Proposi-
tions 8.2.3 and 8.2.4). We use this to prove in Proposition 8.2.4 a ‘linear’ geometric
Casselman–Shalika formula in the metaplectic world (see [50] for a related asymp-
totic Casselman–Shalika formula).
Proposition. Let ρe∨ be the analogue of ρ̌ for G(Q,n) . For µ̌ ∈ Ye+ , Jeρe∨ −ρ̌ ? ceµ̌ =
Jeρe∨ −ρ̌+µ̌ .
A corollary of this result is the fact that for coweights of the form ρe∨ − ρ̌ + µ̌, the
p-adic elements Jeρe∨ −ρ̌+µ̌ and the canonical elements L   ρ −ρ̌+µ̌ and Tρe∨ −ρ̌+µ̌ are
                                                          e e∨            f
equal. This result has a nice interpretation on the quantum side: the irreducible, in-
decomposable tilting, and (co)standard modules with (Steinberg) weights ρe − ρ +
µ for µ in the dominant l-dilated weight lattice Xl,+ are equal (see [88, Corollary
6.8], [6]).
   Other applications in §8.3 include relations between the transition coefficients
from the basis Jeλ̌ to the basis L
                                 e and the strong linkage principle from the theory of
                                  λ̌
quantum groups ([8, 9]), a µ̌-large asymptotic version of the geometric Casselman-
Shalika formula (not to be confused with the formula (1.3) discussed earlier where
µ̌ small compared to λ̌ ). We also add some speculations about the relation of our
work to that of Frenkel–Hernandez [45] and McGerty [88].
1.2.4. The combinatorics of structure coefficients. As we hope we have made
clear, the works of Lascoux–Leclerc–Thibon, especially [77], played a central role
in this paper. We found the extensions of this work in the papers of Grojnowski–
Haiman [53] and Lanini–Ram(–Sobaje) [74, 75] to be especially helpful, and our
proof of the tensor product theorems follows the elegant argument in [74] using
the Littelmann path model. We note here that the second tensor product theorem
   15To see this, we use results of [71] which uses the Kazhdan–Lusztig equivalence between quan-
tum groups and affine Lie algebras.
   16See the right hand side of (1.9).
                                               15
we prove in Proposition 3.9.1 (and which is inspired by Andersen’s tensor prod-
uct theorem for tilting modules [6]) seems to be new, though we emphasize that
the method of proof is a simple modification of the argument in [74]. As a small
repayment towards our debt to these works, let us perhaps mention that our Propo-
sition 3.6.2 relating the Chinta–Gunnells action to the actions considered in [77].
    As a consequence of our main result, combinatorial quantities of interest arise as
                                                                e K) on Wψ (G,
structure coefficients appearing in the convolution action of H(G,              e K).
Let us focus on two examples.
     (1) G. Chinta, independently and without knowledge of the quantum side, no-
         ticed that the twisted qLR coefficients p(g Qη̌ ) of Corollary 1.1.4 (3) ex-
                                                              µ̌,λ̌
        hibited some positivity properties17. From our work (see Theorem 6.3.2
        part 1 and (3.133) ), it follows that up to an explicit product of Gauss sums,
        these coefficients are equal to qLR coefficeints q(g Qη̌ ) . Using the pos-
                                                                  µ̌,λ̌
        itivity of the q-LR coefficients by the (unpublished) work of Grojnowski–
        Haiman [53], one now has a path to understand the observation of Chinta.
        A. Aggarwal has also been able to relate Chinta’s positivity observations
        to Grojnowski–Haiman’s work, but now based on ideas from [17] and [2].
        We also note here that there are no known combinatorial descriptions for
        the q-LR coefficients which make manifest their known positivity.
    (2) The structure coefficients g Aη̌ ∈ Zτ,g , defined so that we have Jeµ̌ ? ehλ̌ =
                                             µ̌,λ̌
         ∑η̌ p( Aµ̌,λ̌ )Jη̌ , do not seem to exhibit positivity properties. Precise com-
               g η̌     e

         binatorial formulas for g Aη̌ seem hard to compute from the point of view
                                       µ̌,λ̌
        of this paper since one needs to apply various straightening rules, a com-
        plicated recursive procedure. However, using recent techniques developed
        in the area of integrable models, by the work of [2, 17] and ideas of A.
        Aggarwal, in type A one can now compute them non-recursively (the first
        author will return to this in a future paper).
We might also add here that the noticeable disparity in combinatorial complexity
between these two types of structure coefficients g Aη̌ and g Qη̌ reinforces our
                                                       µ̌,λ̌     µ̌,λ̌
opinion that going between the ‘geometric’ and classical metaplectic Casselman–
Shalika formula is quite non-trivial at the level of formulas, and so perhaps also
subtle at the level of representation theory.
1.2.5. Relation to works on integrable systems and quantum affine algebras. As
mentioned above, the program started in [17] which was aimed at studying meta-
plectic Whittaker functions using solvable lattice models [19, 20] has now led to
connections to (super-symmetric) LLT polynomials in type A [21], metaplectic
representations of the affine Hecke algebra [18], and a theory of vector-valued
metaplectic Demazure–Lusztig operators [20]. Underpinning the connection to
solvable lattice models is the fact, first observed in [17, Theorem 1.1], that certain
   17We thank G. Chinta for sharing his observation with us; it seems to have arisen first for the
                                                 √
double cover case where the Gauss sums are just ± q and positivity is natural to formulate.
                                                16
intertwining operators acting on Whittaker coinvariants of the principal series rep-
resentations of a metaplectic cover of GLr (F) can be identified with R-matrices for
the quantum affine algebra Uq (gl  cn ).
    In future work of the first author, it will be shown that for G = GLr (F), the space
Wψ (G, e I − ) and Wψ (G,
                        e K) can be equipped with an action of Uq (gl  cn ); and in fact
Wψ (G, e K) is isomorphic to the finite q-Fock space representation of Uq (gl   cn ). On
the quantum side, one may (conjecturally) endow the graded Grothendieck group
K0R (Rep(U̇ζ (Ǧ))) with an Uq (gl cn ) action coming from the theory of categorical
actions developed by Chuang–Rouquier [33] (see also [99, §6] on how to explic-
itly construct this action in the q = 1 case). We can then extend the maps (1.10)
and (1.11) to isomorphisms of Uq (gl    cn ) modules, which then recovers the identifi-
cation of intertwiners with R-matrices from [17].


1.2.6. Relation to the work of Sahi–Stokman–Venkateswaran. The interesting re-
cent work of Sahi–Stokman–Venkateswaran [100,101] studies the metaplectic poly-
nomial representation introduced in §4.2.1 and uses it to construct metaplectic gen-
eralizations of Macdonald polynomials. A highlight of [100, 101] is the extension
of this space to a representation of the double affine Hecke algebra, which pro-
duces a natural basis depending on an additional parameter. This is used in the
construction of ‘metaplectic’ Macdonald polynomials that are shown to specialize
to values of metaplectic Iwahori–Whittaker functions. It would be interesting to
better understand the relations between our work and theirs, in particular to un-
derstand the p-adic meaning of the DAHA structure. Moreover, our polynomials
g Qη̌ may be used to construct g-twisted LLT polynomials by using [53, eq. after
   µ̌,λ̌
(13)]; the expansion of SSV polynomials into g-twisted LLT polynomials should
lead to interesting combinatorial applications (cf. [53, 54] where the expansion of
regular Macdonald polynomials into LLT is used to great effect).


1.2.7. Relation to the work of Gurevich–Gao–Karasiewicz. The recent work [49]
approaches Wψ (G,      e I − ) by working at the level of pro-p Iwahori subgroups. Using
this work, one can extract an alternate proof of Proposition 6.2.1. In the description
of Wψ (G, e I − ) obtained in [49], the Heaff -submodules corresponding to certain orbits
Weaff (termed ‘splitting’ in op. cit.) admit an explicit descriptions as anti-spherical
modules. In many instances (e.g. under the oasitic condition, see [49, Cor. 6.4]),
all the orbits are splitting and the description of Wψ (G,    e I − ) from [49] agrees with
the present one. In our notation, it seems that the ‘splitting’ orbits correspond to
Stab(Weaff ,•) (η̌) lying within the ‘standard’ finite Weyl group of W   eaff .
   We might also note the p-adic input to our proofs are based on [95], so we do
not actually use any pro-p techniques here. Nonetheless, we hope that the pro-p
methods and results are more than just a technical tool that can be circumvented,
and may in fact be an essential feature of the theory.
                                            17
1.2.8. Relation to the work of Gaitsgory–Lurie and Campbell–Dhillon–Raskin.
There is by now a large and evolving body of work both inspired by and con-
cerning the Gaitsgory–Lurie conjecture, now sometimes referred to as the quan-
tum Langlands program in the literature. Within this fascinating web interweaving
infinite-dimensional algebraic geometry and the representation theory of affine Lie
algebras, we find the idea of relating quantum groups at roots of unity to metapletic
covers, a cornerstone of this paper. Though we do not presently have the expertise
to pinpoint all the points of contact between our work and the innovations of this
program, let us try to comment briefly on the work of Campbell–Dhillon–Raskin
[27] which provides a description of the (derived) category of certain twisted D-
                                                                                          18
modules Whitaff κ on an affine flag variety for G – this being a geometric analogue
of our Wψ (G, e I − )– in terms of the representations of the Langlands dual b̌       gκ̌ of
the affine Lie algebra b gκ with level κ. As with us, a key step in [27] is to obtain
a decomposition of Whitaff   κ into blocks stable under the action of certain Hecke
categories Hλ . These blocks are identified with corresponding blocks of a certain
category of representations b̌ gκ̌ , but not directly. Indeed, first the blocks of Whitaffκ
are identified with blocks of a certain category of representations of b   gκ ; and second,
these are identified with blocks for the dual b̌ gκ̌ using Feibig’s extension of Soergel’s
bimodule theory to Kac-Moody setting (see [40, Thm. 4.1]). This last step involves
a combinatorial match of certain parameters (see [27, Theorem 3.5.6]) which re-
quired the authors of [27] to impose a certain condition on the levels allowed– the
so-called ‘κ-good’ condition (see [27, §3.4.4]). 19
   The identification of blocks of Whitaff  κ with a corresponding block of represen-
tations of an affine Lie algebra (see [27, Thm. 3.3.3 and Cor. 3.4.8]) proceeds via
the so-called affine Skyrabian equivalence (see [27, (3.17)] and references therein).
As mentioned before, to make the connection with present work, it seems that one
needs to upgrade this equivalence in some l-adic context in such a way that the
Gauss-sums present in the Hecke action on the Whittaker side survive a categori-
cal/geometric lift. As we understand, this (or perhaps something related) seems to
be the subject of work in progress by Dhillon–Li–Yun–Zhu.
   In our work, one obtains a description of the blocks on the Whittaker side di-
rectly in terms of anti-spherical modules (and their close relatives for orbits with
non-trivial stabilizers) for an affine Hecke algebra. This requires what seems to be a
different combinatorial analysis from what is contained in [27]. It is for this reason
that we say that our constructions are not related by a simple ‘de-categorifcation’
process (again, ignoring the Gauss sum issues). We might also mention that our
decomposition of Wψ (G,   e I − ) into anti-spherical modules allows us to connect di-
rectly to the ‘dual’ quantum group, and, perhaps for this reason, the κ-good condi-
tion does not seem to be needed in our approach.


   18In an l-adic context, one could make this analogy precise and connect to the case when our
local field is of positive characteristic.
   19We might note here something of a resemblance to the oasitic cover condition of [49, Def. 6.1]
mentioned in the previous paragraph, soley based on the tabulations included in each of these papers.
                                                 18
   Distancing ourselves somewhat from these differences, it does seem the ap-
proach from [27] and ours should admit a common refinement à la ‘Riche–Williamson’
[99], i.e., Whitaff
                 κ   should be acted upon by a certain version of a diagrammatic
Hecke category/category of Soergel bi-modules which could rigidify Whitaff      κ into
an appropriate tilting category of a quantum group at a root of unity. It remains to
be understood what the action of reflection functors may correspond to on a p-adic
level, but perhaps we can already mention that in type A, the categorical action of
gl
b ` that plays a central role in [99, Part 2] seems to correspond, on the p-adic level,
to the identification of Wψ (G,                                             cn ) which
                               e K) as a finite quantum Fock space for Uq (gl
was also mentioned in §1.2.5.


1.2.9. Organization of the paper. We refer the reader to the table of contents which
hopefully makes clear our organizational scheme. The longest section of this work,
Section 3, introduces both preliminaries, but also revisits the works of Leclerc–
Thibon [77] in such a way that the applications to p-adic groups and the metaplec-
tic polynomial representation follow quite easily. The key new results in Section
4 are the ‘straightening’ rules for the Chinta–Gunnells–Puskás operators which al-
low us to produce g-twisted versions of the results in Section 3 and connect them
to our p-adic results in §6.2. The main p-adic results in §6.3 make use of this con-
nection. The proof of our main result in §8.1 follows immediately from what we
established before. To conclude our paper, we present in §8.2 applications of our
work to the ‘local’ Shimura correspondence and investigate natural combinatorial
questions in §8.3.
   For a table of frequently used notation, we refer to §2.4.


1.2.10. Acknowledgments. V.B. would like to thank Dinakar Muthiah, Anna Puskás
for interesting discussions and encouragement, Hankyung Ko for many illuminat-
ing discussions about quantum groups and Jasper Stokman for interesting discus-
sion regarding this work and [100,101]. M.P. would like to thank A. Braverman for
a helpful discussion about topics related to this work and J. Sussan for very useful
guidance into the world of quantum groups at a root of unity and especially their
categorical aspects.
   After this work was first posted to the arXiv, we have had the chance to discuss it
with various colleagues and wish to thank Amol Aggarwal, Gautam Chinta, Gurbir
Dhillon, Solomon Friedberg, Nadya Gurevich, Ed Karasiewicz, Sergey Lysenko,
Siddhartha Sahi, and Gordan Savin for sharing their perspectives on this and related
works.
   V.B. acknowledges support by the Netherlands Organization for Scientific Re-
search (NWO) project number 613.009.126. Both authors acknowledge funding by
the endowment of M.V. Subbarao Professorship in number theory, NSERC Discov-
ery grant RGPIN-2019-06112, and the Newton Institute for its hospitality during
the program on “New Connections in Number Theory and Physics” where some
parts of this work were carried out.
                                         19
                        2. N OTATIONS AND C ONVENTIONS
2.1. General Conventions.

2.1.1. Bold faced objects denote functors (of groups usually) and the correspond-
ing roman letters will denote the field-valued points. For example, G will be a
group-valued functor and G will denote G(F), where F is a field, assumed to be
specified implicitly in our discussion.

2.1.2. For an abelian group H and (commutative, unital) ring R, we write R[H] for
the group algebra of H with coefficients in R and typically denote the elements in
R[H] as Ha , Hb etc. with a, b ∈ H and with multiplication defined as Ha Hb = Ha+b .

2.1.3. The Grothendieck group. Let C be an abelian C-linear monoidal category
(not necessarily semi-simple) whose objects have finite length. The Grothendieck
group of C shall be denoted by K0 (C ) and its complexification C ⊗Z K0 (C ) by
K0C (C ). To every object in X ∈ C we write its class as [X] ∈ K0 (C ).

2.1.4.   We usually write F for a general field and F for a non-archimedean local
field.


2.2. Notation for p-adic fields and Gauss sums.

2.2.1. Non-archimedean local fields. Let F be a non-archimedean local field with
ring of integers O and valuation map val : F∗ → Z. Let π ∈ O be a uniformizing
element, κ := O/πO be the residue field, ω : O → κ the natural surjection, and
let us write q for the cardinality of κ. For k ≥ 0, set O ∗ [k] = {x ∈ F∗ | val(x) = k}
and O(k) = {x ∈ F∗ | val(x) ≥ k} so that the units in O are O ∗ = O ∗ [0], where
O ∗ [k] = O(k) \ O(k + 1).

2.2.2. Hilbert symbols, assumptions on q and n. For A an abelian group, a bilinear
Steinberg symbol is a map (·, ·) : F ∗ × F ∗ → A such that (·, ·) is bimultiplicative,
i.e., (x, yz) = (x, y)(x, z) and (xy, z) = (x, z)(y, z) and also (x, 1 − x) = 1 if x 6= 1.
Fix a positive integer n. In this paper, we focus exclusively on the case of (tame)
Hilbert symbols. To define these, assume q ≡ 1 mod 2n and let µn ⊂ F be the
set of n-th roots of unity with |µn | = n. The n-th order Hilbert symbol (see e.g.
[105, §9.2, 9.3]) is a bilinear map (·, ·)n : F∗ × F∗ → µn . As n is fixed throughout
our paper, we often drop it from our notation. Note that (·, ·) is a bilinear Steinberg
symbol (see [92, Chapter V, Proposition 3.2]) and is also unramified, i.e. (x, y) = 1
if x, y ∈ O ∗ . To avoid certain sign issues, we assumed q ≡ 1 mod 2n, since we now
                                                                                       q−1
have (−1, −1) = (−1, x) = 1 for x ∈ F∗ , and also (π, π) = 1 and (π, u) = ϖ(u) n
for u ∈ O ∗ .
                                           20
2.2.3. Additive characters. Let ψ : F → C∗ be an additive character. For a ∈ Z, if
                       ψ|O(a) = Id|O(a) and ψ |O[a−1] is non-trivial,
we say that ψ has conductor a. We are chiefly interested in characters ψ of con-
ductor 020, i.e. ψ is the identity on O and non-trivial on π −1 O.

2.2.4. Gauss sums. For τ : FR→ C∗ an additive character and σ : F∗ → C∗ a mul-
tiplicative one, set g(σ , τ) = O ∗ σ (u0 )τ(u0 )du0 where du0 is the Haar measure on
F giving O ∗ volume q − 1. This is a Gauss sum. Fixψ an additive character of
conductor 0 and define for each integer k a multiplicative and additive character by
using the Hilbert symbol (·, ·)n
             σ (u) = (u, π)−k
                           n         and       τ(u) = ψ(−π −1 u), for u ∈ F∗ ,                    (2.1)
respectively. Setting gk := g(σ , ψ), we note (see [92]) that
       gk = gl if n|k − l, g0 = −1, and if k 6= 0              mod n, then gk g−k = q,            (2.2)
where for the last equality we must again assume that q ≡ 1 mod 2n.


2.3. Generic ring Zτ,g and its quantum, and p-adic specializations.

2.3.1. The generic ring Zτ,g . Fix a positive integer n, and let τ and t be a formal
parameters related by τ 2 = t −1 . Introduce a system of formal parameters gk for
k ∈ Z satisfying the conditions
      gk = g` if k ≡ ` mod n, gk g−k = τ 2 = t −1 for k 6= 0, and g0 = −1.                        (2.3)
A central role in this work will be played by the rings
              Zτ,g := Z[τ ±1 , {gk }k∈Z ]/ ∼            and    Cτ,g := C ⊗Z Zτ,g                  (2.4)
obtained by formally adjoining τ, τ −1 and the gk subject to the above relations.
Note that
       Zτ,g ≃ Z[τ ±1 , g±1           ±1
                        1 , . . . , gn−1 ]     and       Cτ,g ≃ C[τ ±1 , g±1           ±1
                                                                          1 , . . . , gn−1 ].     (2.5)

2.3.2. The quantum specialization q. Let τ,t be indeterminates satisfying the con-
dition τ 2 = t −1 and introduce the ring Zτ := Z[τ, τ −1 ] of Laurent polynomials in
τ. It carries an involution sending τ 7→ τ −1 . The map q : Zτ,g → Zτ which sends
               τ 7→ τ,     g0 7→ −1,         gi 7→ τ,      for i ∈ {1, . . . , n − 1}             (2.6)
will be called the quantum specialization.

    20Note that in [29, 49], the conductor of the additive character is taken to be −1; this introduces a
“ρ”-shift when comparing formulas with these sources. On the other hand, our choice of conductor
is in alignment with the classical work of Casselman–Shalika [28] and the literature on its geometric
version [42, 44].
                                                   21
2.3.3. The p-adic specialization p. Suppose we are working over a p-adic field
(i.e. non-archimedean local field) F of residue cardinality q (a power of a prime)
which is also equipped with a non-degenerate additive character ψ (see §2.2.3 for
more details). For each positive integer n, one can then define Gauss sums gk ∈ C
for each k ∈ Z as in §2.2.4. These elements satisfy the same properties as (2.3) and
so we can consider what we call the p-adic specialization p : Cτ,g → C defined by
sending
                      t = τ −2 7→ q−1 , gi 7→ gi for i ∈ Z.                    (2.7)




                                          22
2.4. Frequently used Notation. We collect here some frequently used notation
for easy reference.




                                     23
Notation               Meaning                                  Location
F , O, q, π            Non-archimedean local field,             §2.2.1
                       ring of integers, residue char.,
                       uniformizer
n, µn                  degree of metaplectic cover, n-th        §2.2.2
                       roots of unity
(·, ·) = (·, ·)n       Hilbert n-symbol                         §2.2.2
ψ                      Additive character of F or unipo-        §2.2.3, §6.1.1
                       tent group
τ, t                   parameters for Hecke algebra             §3.3.1 and §3.3.2
Zτ , Z+    −           Z[τ, τ −1 ], τZ[τ], τ −1 Z[τ −1 ]
      τ , Zτ                                                    (3.28)
gk and gi              formal and p-adic Gauss sum pa-          §2.3.1 and §2.2.4
                       rameters
Zτ,g                   generic parameter ring                   (2.4)
p, q                   p-adic and quantum specializa-           §2.3.3 and 2.3.2
                       tion maps
W , Waff               finite and affine Weyl groups            §3.4
•                      dot action of (affine) Weyl group        §3.4.6
  •
A−,n                   upper closure of twisted negative        (3.74)
                       alcove
(Q,n) , l            restricted weights                       §3.4.9, (7.17)
Haff , H
       eaff            affine Hecke algebra, twisted            §3.5 and §3.6
                       affine Hecke algebra
Yβ̌                    Bernstein elements of affine             §3.5.1
                       Hecke algebra (or basis element
                       of V, see below)
        +        −
ot,u = ot,u and ot,u   singular,       parabolic       affine   §3.3.7
                       Kazhdan-Lusztig polynomials
ε                      spherical symmetrizer                    (3.86)
Hsph , H
       esph            spherical and twisted spherical          §3.5.3, start of §3.6
                       Hecke algebra
Ve and Vesph           quantum polynomial and spheri-           §3.6.5 and §3.6.7
                       cal representations
vλ̌ and [vµ̌ ]         basis of Ve and Vesph           §3.6.5 and §3.6.7
[Gλ̌ ], [G− ]          canonical bases of Vesph        §3.7.3
          λ̌
V and Vsph            generic polynomial and spherical §4.2.2 and §4.3.3
                      representations
Yµ̌ and vµ̌           bases of V                       §4.2.2 and §4.2.3
κ(µ̌)                 product of Gauss sums relating (4.40)
                      Yµ̌ and vµ̌
[Gλ̌ ], [G− ]         canonical bases of Vsph          §4.3.3
           λ̌
            −
[Gλ̌ ], [G ]          (g-twisted) canonical bases of §4.3.3
            λ̌
                      Vsph
I − and K             Iwahori and maximal compact of §5.2.2, §5.2.6
                      Ge            24
H(G, I ), H(G, K)
     e    −    e      Iwahori and spherical Hecke al- §5.3.2 and §5.3.6
                      gebras
Wψ (G, I ), Wψ (G, K) Iwahori and spherical Whittaker §6.1.4
        e    −   e
                      spaces for Ge
Yλ̌
e                     basis of the Whittaker space §6.2.1
                            e −
Part 1. Combinatorial models
              3. A FFINE H ECKE ALGEBRAS AND CANONICAL BASES
   In this section, we collect various algebro-combinatorial preliminaries needed in
this paper. In §3.6.2 we interpret certain straightening rules in terms of a quantum
specialization of metaplectic Demazure–Lusztig operators and use it in §3.8.2 to
express Littlewood–Richardson polynomials in terms of the metaplectic Casselman–
Shalika formula. These results and Proposition 3.9.1 (2) seem to be new.

3.1. Cartan datum and associated structures.

3.1.1. Cartan datum. Following [84, §1.1], we define a Cartan datum to be a pair
(I, ·), where I is a finite set and · is a Z-valued symmetric bilinear form on the free
module with basis I, namely Z[I], satisfying
                                              i· j
  i · i ∈ {2, 4, 6, . . .} for i ∈ I; and 2        ∈ {0, −1, −2, . . .} for i, j ∈ I, i 6= j. (3.1)
                                              i·i
Given a Cartan datum (I, ·), define its generalized Cartan matrix (gcm) as in [58,
p.1]:
                                                                        i· j
                     A = A(I, ·) = (ai j )i, j∈I where ai j = 2              .               (3.2)
                                                                        i·i
We assume throughout that the Cartan datum (I, ·) is irreducible (see [84, §2.1.3])
which ensures that A is irreducible in the sense of [58, p.2]. We deal in this paper
exclusively with such Cartan datum (I, ·) of finite type, i.e. the symmetric matrix
(i · j)i, j∈I is positive definite, or of affine type, when the corresponding symmetric
matrix has nullity one.

3.1.2. Dual Cartan datum. For (I, ·) a Cartan datum, let mI to be the smallest
                            mI
positive integer such that 2(i·i) ∈ Z. Following [117, p.92], define the dual Cartan
datum (I,ˇ·) via:
                                              i· j
                          iˇ· j := mI                   for i, j ∈ I.                        (3.3)
                                        (i · i)( j · j)

Writing Ǎ := A(I,ˇ·) for the corresponding Cartan matrix, one finds that Ǎ = t A.

3.1.3. Minimal Cartan datum attached to a Cartan matrix. Let A = (ai j ) be an
irreducible Cartan matrix of finite type and of size k × k. Write I := {1, . . . , k} and
let D be a diagonal matrix such that DA = S is a symmetric matrix. Note that such
a D always exists; it is unique up to rescaling the matrix by a constant, and so we
can choose D to have positive, integral values. Denote by Dmin = diag(d1 , . . . , dk ),
a symmetrizing matrix with the property that every other choice of D is a positive,
integral multiple of Dmin . Using Dmin , we construct the minimal Cartan datum
(I, ·) attached to a given Cartan matrix A by setting i · j := di ai j .
                                                  25
3.1.4. Untwisted affinizations and computing the symmetrization of A. Denote the
(untwisted) affinization of A by Aaff ; it is defined as in [58, p.100, (7.4.3)]. The
matrix Aaff is of size (k + 1) × (k + 1) and our convention is to identify the square
matrix formed from the last k-rows and columns of Aaff with A. As such, we also
write in this case

                       Iaff := I t {0}, where I = {1, . . . , k}.                     (3.4)

The matrix Aaff has a kernel containing a unique vector with strictly positive, rel-
atively prime entries δ (Aaff ) = (m0 (A), . . . , mk (A)). For these untwisted affiniza-
tions, it turns out that m0 (A) = 1 for all irreducible A. The transpose t A is again a
Cartan matrix of finite type and we denote by m̌i (A) := mi (t A). With these defini-
tions, the matrix

                  D := diag (m̌0 (A)/m1 (A), . . . , m̌k (A)/mk (A))                  (3.5)

symmetrizes A, i.e. DA is symmetric. However, D only has positive and rational
entries in general, and multiplies this matrix by an appropriate integral multiple to
obtain Dmin .

3.1.5. Braid and Weyl groups. Given a Cartan datum (I, ·) with associated Cartan
matrix A we define integers hi j for i, j ∈ I according the rules as in [84, §2.1.1],
                 a a
i.e. cos2 hπi j = i j4 ji . The braid group B(I, ·), is the free group on symbols si (i ∈ I)
with relations

                           si s j si · · · = s j si s j · · · for i 6= j,             (3.6)
                           | {z } | {z }
                               hi j              hi j


where both sides have hi j < ∞ terms. If we further impose the relation s2i = 1 for
all i ∈ I we obtain the Weyl group W(I, ·). As both B(I, ·) and W(I, ·) only depend
on the associated gcm A, we often just write these as B(A) or W(A). In the case
that Aaff is the untwisted affinitization of A, we often write

                        Waff := W(Aaff ) and W := W(A).                               (3.7)

3.1.6. Coxeter groups and Bruhat order. The pair (W(A), S) where S = {si }i∈I de-
scribed in the previous paragraph forms a Coxeter system and W := W(A) is called
a Coxeter group (see [14, Ch. IV, §1.3, Def. 3, p. 4]). Note that every element s ∈ S
satisfies s2 = 1 (i.e. S−1 = S) so words in S are just products of elements from S.
We refer to [14, Ch. IV, §1] for the definitions of reduced expressions, the length
function ` : W → Z, etc. Let us write ≤S , or just ≤ if the set S is not in question,
for the Bruhat order on W(A) induced from the Coxeter structure (see [13, Ch. 2]).
As usual, we write x < y to mean that x ≤ y and x 6= y. If A is of finite type, there
exists a unique element in W(A) which is maximal for the Bruhat order, which we
write as w0 .
                                                    26
3.1.7. Parabolic subgroups. For J ⊂ I, if we define WJ ⊂ W to be the subgroup
generated by s j , j ∈ J, then from [14, Ch. IV, §8, Thm. 2], one knows that
(WJ , {s j } j∈J ) is itself Coxeter group. These are called parabolic subgroups. For
example, if Aaff is the affinization of A and W(Aaff ) := W(Aaff ), then we have
(Waff )I = W(A) = W (where I ⊂ Iaff is an in (3.4)). We write wJ0 for the unique
maximal length element of WJ , whenever it exists. For example, wJ0 exists for any
J ( Iaff .
3.1.8. Poincaré polynomials. For q a formal variable, J ⊂ I such that the parabolic
subgroup WJ defined above is finite, we define the Poincare polynomial
                           PWJ (q) = PJ (q) =            ∑ q`(w) .                             (3.8)
                                                        w∈WJ

When J = I, we sometimes write PW (q) or even P(q).
3.1.9. Cosets. For any subset J ⊂ I, define the set WJ := {w ∈ W | `(ws j ) >
`(w) for all j ∈ J}, and note (see [13, Prop 2.4.4]) that every w ∈ W has a unique
factorization w = w1 w2 where w1 ∈ WJ , w2 ∈ WJ , and in this factorization `(w) =
`(w1 ) + `(w2 ). It follows from [37, Lemmas 3.1-3.2] that
                                   / WJ , then sσ = σ s j for some j ∈ J.
         if s ∈ S, σ ∈ WJ , but sw ∈                                                           (3.9)
Similarly, consider the set W := {w ∈ W | `(s j w) > `(w) for j ∈ J}, which con-
                                 J

sists of minimal length representatives of the cosets WJ \ W. Finally, suppose now
J, K ⊂ I are given. Then it is known that the set
            K
                WJ := {w ∈ W | sk w > w, ws j > w for all k ∈ K, j ∈ K}                      (3.10)
forms a set of minimal length representatives for the double cosets WK \ W/WJ .
We say that such a double coset is regular if its stabilizer (or equivalently the sta-
bilizer of any element in the double coset) under the action of WK × WJ (acting
on left and right, respectively) is trivial. Equivalently, an element t ∈ K WJ is reg-
ular if WK t ∩ tWJ = 0./ The set of such regular double cosets will be denoted by
(WK \ W/WJ )reg and the set of minimal length regular representatives is denoted
   W reg .
 K J
       

3.2. Root datum and their twists. In this section (I, ·) will be of finite type.
3.2.1. Root datum. By a root datum of type (I, ·), we shall mean a quadruple D =
(Y, {yi }i∈I , X, {xi }i∈I ) where Y, X are free abelian groups of finite rank that are in
duality under a pairing that we denote h·, ·i : Y × X → Z, and where {yi }i∈I ⊂ Y
and {xi }i∈I ⊂ X satisfy
                                 hyi , x j i = ai j for i, j ∈ I.                            (3.11)
Here, as in §3.1.1, A = (ai j ) is the associated gcm to (I, ·). The root datum is said
to be of simply connected type if Y is the free Z-module with basis {y j } j∈I , and it
is said to be of adjoint type if X is the free Z-module with basis {xi }.
   If D = (Y, {yi }i∈I , X, {xi }i∈I ) and D0 = (Y 0 , {y0i }i∈I , X 0 , {xi0 }i∈I ) are two root da-
tum for (I, ·), we say that D and D0 are isomorphic root datum and write D ∼                   = D0
                                                  27
if there exist isomorphisms of abelian groups Y → Y 0 sending yi 7→ y0i and X → X 0
sending xi 7→ xi0 compatible with the pairings Y × X → Z and Y 0 × X 0 → Z.

3.2.2. Dual root datum. Recall the dual Cartan datum (I,ˇ·) attached to (I, ·) from
§3.1.2. If D = (Y, {yi }i∈I , X, {xi }i∈I ) is a root datum of Cartan type (I, ·), we define
its (Langlands) dual (I,ˇ·, Ď) by setting Ď := (X, {xi }i∈I ,Y, {yi }i∈I ).

3.2.3. Weyl group action. Given a root datum D, let σi : Y → Y be the map defined
by σi (y) = y − hy, xi iyi for µ̌ ∈ Y. We can similarly define an operation σi : X → X.
We note that the σi so defined satisfy the Coxeter presentation for the Weyl group.
Hence W (I, ·) acts on Y by sending si ∈ W (I, ·) to σi for i ∈ I.

3.2.4. Roots systems attached to D. Fix (I, ·, D) as above. We refer to the set
Π̌ := {yi }i∈I as the set of simple coroots, and Ř := W Π̌ as the set of coroots of
the root datum. Every ǎ ∈ Ř can be written as a unique linear combination of the
elements from Π̌ with all positive or all negative coefficients. In this way, we can
define Ř± as the set of positive and negative coroots. We also define the coroot,
root, and weight lattices as
 Q̌ :=                Q :=   i∈I Zxi , and Λ := {x ∈ X ⊗Z Q | hyi , xi ∈ Z for i ∈ I},(3.12)
         L                   L
          i∈I Zyi ,

respectively. We define the positive root and coroot lattices by replacing Z with
Z≥0 in the above, and also write Λ+ ⊂ Λ for the dominant weights, defined by
the additional condition that hyi , xi ≥ 0 for all i ∈ I. A regular dominant weight is
one such that hyi , xi > 0 for all i ∈ I. These are denoted as Λ+,reg . We define the
dominance order ≤ on Λ :
                         µ ≤ λ if λ − µ ∈ Q+ for λ , µ ∈ Λ.                          (3.13)
   In a dual manner, replacing the {xi } with {yi } in the above we can also define the
simple roots Π, all roots R, positive/negative roots R± , coweights Λ∨ , dominant
coweights Λ∨+ , and dominance order (again denoted ≤) on Λ∨ . For each a ∈ R,
if xi ∈ Π is such that wxi = a then the element ǎ := wyi ∈ Ř is well-defined and
independent of the choice of such y. The element ǎ is called the coroot attached
to a. Let us also note here that since (I, ·) is of finite-type, there is a unique root
θ ∈ R such that when we write
                             θ := ∑ mi xi with mi ∈ Z≥0 ,                            (3.14)
                                  i∈I

the mi are maximized. It is known that all mi > 0 and in fact mi = mi (A) are the
numbers introduced in §3.1.4. In a similar way we can define a highest coroot θ̌
written as in (3.14) with mi replaced by m̌i (A) and xi replaced by yi . We shall also
introduce the elements ρ, ρ̌ in Λ and Λ̌ by the following definitions:
                             2ρ = ∑ a      and    2ρ̌ = ∑ ǎ.                        (3.15)
                                  a∈R                    ǎ∈Ř

Note that this implies that hyi , ρi = 1. A similar formula hold for ρ̌.
                                            28
3.2.5. (Q, n)-twists. Fix (I, ·, D) be a root datum with associated Cartan matrix
A = (ai j ) as in §3.1.1. Writing D := (Y, {yi }, X, {xi }), a (Q, n)-twist21 on D is
the data of an integer n ≥ 1 and a W = W (I, ·)-invariant (for the action defined in
§3.2.3) quadratic form Q on Y. Attached to Q, we define the symmetric, bilinear
form B : Y × Y → Z, B(y1 , y2 ) := Q(y1 + y2 ) − Q(y1 ) − Q(y2 ) for y1 , y2 ∈ Y. One
verifies
 B(yi , y) = Q(yi )hy, xi i for y ∈ Y, i ∈ I     and hence             Q(y j )/Q(yi ) = a ji /ai j .(3.16)
From [116, Proposition 3.10], there exists a unique W -invariant, quadratic form Q
on Q̌ (thought of as a subset of Y ) which takes the value 1 on all short coroots.
We shall call such a structure primitive and note that every Z-valued W -invariant
form on Q̌ is an integer multiple of Q. Hence, simply-connected root datum admit
primitive twists.

3.2.6. (Q, n)-twisted root datum. Let (Q, n) be a twist on (I, ·, D). Following see [117,
Construction 1.3] and [84, §2.2.4], we may twist the Cartan datum (I, ·) to obtain
a new Cartan datum denoted (I, ◦(Q,n) ) = (I, ◦) and constructed as follows

                                                n2
                                i ◦ j :=                  i · j,                                     (3.17)
                                           n(yi ) n(y j )
where for i ∈ I we define n(yi ) as the smallest positive integer satisfying
                                n(yi ) Q(yi ) ≡ 0      mod n.                                        (3.18)
                                                                               
                                                                       n(yi )
                                    e := A(Q,n) =
The associated Cartan matrix is now A                                  n(y j ) ai j i, j∈I . Hence

                    B(I, ◦) ≃ B(I, ·)      and        W (I, ◦) ≃ W (I, ·) .                          (3.19)
If we now set
      • Y(Q,n) := Ye := {y ∈ Y | B(y, y0 ) ∈ nZ for all y0 ∈ Y },
      • y(Q,n),i := yei := n(yi )yi for i ∈ I,
      • X(Q,n) := Xe := {x ∈ X ⊗ Q | hy, xi ∈ Z for all y ∈ Ye },
      • x(Q,n),i := xei := n(yi )−1 xi for i ∈ I,
one can verify, as in [84, §2.2.5], [90, §11], or [117, Construction 1.3], that
                      D(Q,n) := D           yi }i∈I , X,
                                 e = (Ye , {e            xi }i∈I )
                                                      e {e                           (3.20)
                                         
is a root datum for (I, ◦) = I, ◦(Q,n) . We adopt the convention that tildes will
designate the corresponding notion for twisted root systems, but occasionally when
we need to keep track of the precise twist under consideration, we revert to the more
precise notations D(Q,n) ,Y(Q,n) , etc. So, for example R    e (resp. R
                                                                      e ∨ ) will denote the
set of roots (resp. coroots), etc. The quantities ρe, ρe∨ are defined as in (3.15) using
the twisted root systems.

   21These are called metaplectic structures in [117], where they were first introduced
                                                 29
3.2.7. A rank one example. Consider the Cartan datum I = {a} with a · a = 2. We
may associate to it the root datum D = (Y, ǎ, X, a), with Y := Zǎ, X := 12 Za and
hǎ, ai = 2. This is the root datum which specifies, over C,     the simply connected
group PGL2 (C). The Langlands dual Ď = 21 Za, a, Zǎ, ǎ , which corresponds to
the group SL2 (C), is not of simply-connected type. The primitive (Q, n) twist of D
is determined by specifying Q(ǎ) = 1. Then n(ǎ) = n and the associated bilinear
form B on Y is specified by B(kǎ, k0 ǎ) = 2 k k0 for k, k0 ∈ Z. One may then check
that
                         (
                                        1
                                          Za, n1 a ≃ D if n is odd,
                                                  
                            nZǎ, nǎ, 2n
              D(Q,n) :=     n           1     1
                                                                               (3.21)
                            2 Zǎ, nǎ, n Za, n a ≃ Ď if n is even.

Remark. In general, the primitive twist of a finite Cartan datum will be isomorphic
to itself (if n is odd), or to its Langlands dual (if n is even). This is not always true
for affine type (cf [97, Table 2.3.2]).
3.2.8. Example: l-twisted Cartan and root datum. Fix a positive integer l and a
root datum (I, ·, D) with D = (Y, {yi }, X, {xi }). In [84, 2.2.4-2.2.5], Lusztig has
defined the notion of an l-twisted root datum. To introduce it, let li be the smallest
positive integers such that li i·i2 ∈ lZ. Then one defines (I, ◦l ) as the Cartan datum
with i ◦l j = li l j (i · j) and attaches to it a root datum Dl = (Yl , {yl,i }, Xl , {xl,i })
defined as follows:
 Xl := {ζ ∈ X | hyi , ζ i ∈ li Z},Yl := Hom(Xl , Z), xl,i := li xi ,    and yl,i := li−1 yi .(3.22)
This root datum (I, ◦l , Dl ) can be subsumed into the theory of twists from §3.2.6.
   We start with A = (ai j ) an irreducible Cartan matrix and fix the minimal Cartan
datum (I, ·) as in §3.1.3 so that i · j = di ai j with positive integers di as in §3.1.4.
Hence
           i·i di aii
            2 = 2 = di ,       and so defining      li := l/(l, di ) for i ∈ I,          (3.23)

we find that li are the smallest positive integers such that li i·i2 = li di ∈ lZ. Fix
D = (Y, {yi }, X, {xi }) a root datum of adjoint type, so that Ď is of simply-connected
type and hence admits a primitive twist Q̌ : X × X → Z in the sense of §3.2.5, i.e.
Q̌(x j ) = 1 for all short roots. Note that from (3.16) applied to the Cartan datum
(I,ˇ·) with Cartan matrix Ǎ = t A, we have
                           Q̌(x j ) ai j    i· j dj    dj
                                   =      =           = .                                (3.24)
                           Q̌(xi )   a ji    di j · i  di

If xi is any long root attached to a short root x j , then Q̌(x j ) = d j /di = d j , since
di = 1 for xi short. In other words, if Q̌ is the primitive twist on Ď, we have
                     Q̌(xi ) = di for all i ∈ I    and   n(xi ) = li                     (3.25)
by using (3.18) which states that n(xi ) is the smallest positive integer such that
Q̌(xi ) ≡ 0 mod n.
                                              30
Claim. Let (I, ·) be the minimal Cartan datum attached to a Cartan matrix A and
(I, ·, D) a root datum of adjoint type. Writing Q̌ is the primitive twist on Ď, we
have an isomorphism of root datum
                                                               ∨ 
                                                   ∨
                   (I, ◦l , Dl ) ≃ I, ((ˇ·)(Q̌,l) ) , (Ď)(Q̌,l)      .      (3.26)

We apply this claim to Ď, which is assumed to be of adjoint type, in Part III. In this
case, writing Ďl for the corresponding l-twist and Q for the primitive twist on the
simply-connected D, we have
                                                                ∨
                     (I, ◦l , Ďl ) ≃ (I, ((ˇ·)(Q,l) )∨ , D(Q,l) ).             (3.27)

Remark. For k a positive integer, let (kQ̌, l) be a multiple of the primitive twist
                                            ∨
(Q̌, l) as in the Claim. Then (Ď)(kQ̌,l)         is isomorphic to Dl 0 , where l 0 = gcd(l,k)
                                                                                         l
                                                                                               .

3.2.9. A GLr -example. Let us now give an example of a root system that does
not have a unique primitive twist. Define the Cartan datum (I, ·, D), where I :=
{1, . . . , r − 1},                (
                                           2        if i = j,
                                 i· j =
                                           −1       if i 6= j,
and D = (Y, {ǎi }, X, {ǎi }) is the root datum constructed as follows: Y is the free Z-
module with basis {ěi , 1 ≤ i ≤ r}, ǎi := ěi − ěi+1 , X is the free Z-module with basis
{ei , 1 ≤ i ≤ r}, ai := ei − ei+1 , and the pairing between Y and X is hěi , e j i := δi j .
This is the root datum for the group GLr .
    A (Q, n) twist on D consists of a positive integer n and a quadratic form Q on Y .
Such a twist is actually determined by two integers p := 12 B(ě1 , ě1 ) = Q(ě1 ) and
q := B(ě1 , ě2 ) (see [51, §4.1]). With this notation, we have that Q(ǎi ) = 2p − q.
As such, there is no primitive twist, and actually several classes of such covers
(which are not multiples of one another) appear in the literature. For example,
if 2p − q = −1, one obtains the Kazhdan-Patterson (see [67]) covers used in the
literature on automorphic forms. Note that this cover is the pull back of the opposite
(i.e. Q(ǎi ) = −1) of the primitive cover of SLr . The covers when 2p − q = −2
features in the work of Savin (see [51, §4.1]). Finally, the coverings studied in
the works [17, 18, 20] linking Whittaker functions with quantum affine groups and
lattice models satisfy p = k and q = 0.
    It would be interesting to understand if Lusztig’s definition of a quantum group
at a root of unity based on l-twists (introduced in §3.2.8) can be generalized to all
(Q, n) twists. In particular, if one can build a quantum group at a root of unity corre-
sponding to the Kazhdan-Patterson twist and the Savin twist introduced above. We
note here that for the p = k and q = 0 twist, one may naturally build the l-twisted
root datum Ye := 1l Y, Xe := lX and ae∨i = 1l ǎi , aei = lai and its associated quantum glr
at a root of unity.
3.3. Hecke algebras and (parabolic) Kazhdan–Lusztig theory of Coxeter groups.
Throughout this section, we work over the ring Zτ = Z[τ, τ −1 ] from §2.3.2. Recall
                                             31
that τ 2 = t −1 and define
                    Z+               −     −1  −1
                     τ := τZ[τ] and Zτ := τ Z[τ ].                                 (3.28)

3.3.1. Hecke algebra of Coxeter group. Let (W, S) a Coxeter group (so, we allow
both finite and affine examples). Then we define its Hecke algebra HW := H(W,t)
as the algebra over Zτ with linear basis {Tw }w∈W and multiplication determined by
the rules:
      • Quadratic: for s ∈ S, Ts2 = t −1 + (t −1 − 1)Ts , i.e. (Ts − t −1 )(Ts + 1) = 0;
         and
      • Braid: there exists a unique group homomorphism B(A) → H(W,t) send-
         ing si 7→ Tsi .
The braid relations ensure that we may unambiguously define, for any w ∈ W , the
element
     Tw = Tsi1 · · · Tsir ∈ HW for any reduced decomposition w = si1 · · · sir .   (3.29)
The quadratic relation ensures that Tsi is invertible in HW , and we denote its in-
verse as Ts−1
           i
              ,which is given explicitly as Ts−1
                                              i
                                                 = t −1 Tsi + (t −1 − 1). Using the braid
relations, we can define Tw for any w ∈ W.
                            −1


3.3.2. Renormalized basis. We often work with the following renormalization of
the generators. Let
                             Hw := τ −`(w) Tw for w ∈ W,                           (3.30)
which again satisfy the braid relations together with the new quadratic relation
          (Hsi − τ)(Hsi + τ −1 ) = 0, i.e. Hs2i + (τ − τ −1 )Hsi − 1 = 0.          (3.31)
Again all Hw are units, and one checks that
                        Hs−1
                          i
                             = Hsi + (τ −1 − τ) for i ∈ I.                         (3.32)

3.3.3. Kazhdan–Lusztig theory. There exists exactly one ring homomorphism
   d : H(W,t) → H(W,t) such that d (τ) = τ −1 , and d (Hw ) = (Hw−1 )−1 . (3.33)
The map d is an involution, called the Kazhdan–Lusztig involution, and its appli-
cation to f ∈ H(W,t) is often just written as f 7→ f . An element f ∈ H(W,t) is
called self-dual if d( f ) = f . For future use, we record the following facts:
      • For w ∈ W , there exist rw0 ,w ∈ Zτ so that (with respect to the Bruhat order)
                             H w = Hw + ∑ rw0 ,w Hw0 .                             (3.34)
                                          w0 <w

      • Suppose W is finite with longest element w0 . Then for any σ ∈ W, we have
        (see [13, Prop. 3.2.2(2)]) `(σ w0 ) + `(σ −1 ) = `(w0 ), so that Hσ −1 Hσ w0 =
        Hw0 and hence
                                  H σ = Hσ w0 Hw−1
                                                 0
                                                   .                               (3.35)
                                            32
Using [84, Lemma 24.2.1] and the relation (3.34), we may conclude (see [68] or
[110, Theorem 2.1 and Claim 2.3] ) that for each w ∈ W, there exists a unique
self-dual element H w ∈ H(W,t) such that
                    H w = Hw + ∑ hy,w Hy where hy,w ∈ Z+
                                                       τ .                        (3.36)
                                 y<w

We could have worked in Z−
                         τ and showed there exists a unique self-dual element
H−
 w ∈ H(W,t)  such that
                    H−           −             −      −
                     w = Hw + ∑ hy,w Hy where hy,w ∈ Zτ .                         (3.37)
                                 y<w

The elements {H w }w∈W (resp. {H −
                                 w }w∈W ) form the Kazhdan-Lusztig Zτ -basis of
H(W,t).
Remark. Typically, the polynomials
                         Py,x = τ `(x)−`(y) h−           −1
                                             y,x ∈ Z[τ, τ ]                       (3.38)
are called Kazhdan–Lusztig polynomials and satisfy ([110, §2]) Py,x ∈ Z[τ −2 ] with
constant coefficient 1.
3.3.4. Symmetrizers and anti-symmetrizers. Fix the same notation as in the pre-
vious paragraph and let J ⊂ S be such that WJ , the parabolic subgroup defined in
§3.1.9, is finite so that wJ0 , the longest element in WJ , is well-defined. Define the
elements
              J                                           J
 εJ+ := τ −`(w0 ) ∑w∈WJ τ `(w) Hw and      εJ− := (−τ)`(w0 ) ∑w∈WJ (−τ −1 )`(w) Hw .(3.39)
We may compute, see [86, (5.5.17)(i)], for w ∈ WJ ,
     Hw εJ+ = εJ+ Hw = τ `(w) εJ+    and    Hw εJ− = εJ− Hw = (−τ)−`(w) εJ+ ,     (3.40)
and also verify that (see [86, (5.5.17)(ii))]) in terms of the Poincaré polynomial
defined in (3.8) we have
                     J                                        J
      (εJ+ )2 = τ −`(w0 ) PWJ (t −1 )εJ+ and (εJ− )2 = (−τ)`(w0 ) PWJ (−t)εJ− .   (3.41)
Finally, it is known (see [110, Proposition 2.9]) that εJ+ = H wJ and that εJ− is the
                                                                0
‘signed Kazhdan–Lusztig’ basis element denoted as CwJ in [68], so that in particu-
                                                         0
lar both εJ± are self-dual, i.e. d εJ± = εJ± .
                                      


3.3.5. The parabolic modules MJ and J N. Write HW := H(W,t). Fix the same
notation as in the previous paragraphs, so that J is chosen with WJ finite. As in
§3.1.9, we write WJ for a set of minimal length representatives of W /WJ . Consider
the A-modules
                                                         −         −
 MJ := HW εJ+ := {hεJ+ | h ∈ HW }       and      J N := εJ HW := {εJ · h | h ∈ HW }.(3.42)

From (3.40), we see that MJ and J N have A-bases Mw := Hw εJ+ and Nw := εJ− Hw
where w ranges over all elements in WJ and J W respectively. As we shall need it
                                            33
later, we record here the following elementary computation: for σ ∈ J W and s ∈ S
                     
                     Nσ s
                                            if σ s ∈ J W, σ s > σ ,
             Nσ Hs = Nσ s + (τ − τ −1 )Nσ if σ s ∈ J W, σ s < σ ,          (3.43)
                                                    / J W.
                      −1
                     
                        −τ Nσ                if σ s ∈
The first and second cases follow from the braid relations, and the third by also
using (3.9) and (3.40).
3.3.6. Parabolic Kazhdan–Lusztig polynomials. The involution d induces one on
MJ and J N, respectively, so that one can again speak of self-dual elements in these
A-modules. From Deodhar [38] (see [110, Theorem 3.1]) for w ∈ WJ , z ∈ J W ,
there exist unique self-dual elements M w , M −                    −
                                              w as well as N z , N z such that
  M w := Mw + ∑y≤w my,w My , N z := Nz + ∑y≤z ny,z Ny ,                  where    my,w , ny,z ∈ Z+
                                                                                                 τ ,(3.44)
 M−               −          −               −
  w := Mw + ∑y≤w my,w My , N z := Nz + ∑y≤z ny,z Ny ,                    where    m−      −      −
                                                                                   y,w , ny,z ∈ Zτ ,(3.45)
These elements satisfy the following properties (cf. [38], [110, Prop. 3.4]): for
y, w ∈ WJ ,
                            −
                    m−
                     y,w = hywJ ,wwJ           and    n−              −1 `(z) h− ,
                                                       y,w = ∑z∈WJ (−τ )       zy,w          (3.46)
                                    0    0

      my,w = (−1)`(y)+`(w) d(n−
                              y,x )             and       ny,w = (−1)`(y)+`(w) d(m−
                                                                                  y,x ),     (3.47)
where the involution d on Zτ interchanges τ ↔ τ −1 . For the last line, see [110,
Thm. 3.5].
Remark. The elements τ `(w)−`(y) my,w and τ `(w)−`(y) ny,w are examples of parabolic
Kazhdan–Lusztig polynomials [38]. Our definitions of my,w and ny,w match simi-
larly named quantities in [110] after setting v = τ −1 in op. cit.
3.3.7. The module J OK . Suppose K ⊂ I is such that WK is finite. Then we consider
the vector space J OK := εJ− HW εK whose basis consists of Ot := εJ− Ht εK for t ∈
(J WK )reg . One can view it as a submodule J OK ,→ J N from which we may define
d : J OK → J OK by restricting the involution d on J N.
Proposition. For all u ∈ (J WK )reg , there exists a unique self-dual element O−
                                                                               u such
that
                       O−           −              −      −
                        u = Ou + ∑ ot,u Ot , with ot,u ∈ Zτ .                                (3.48)
                                         t<u
For this element, we have
       −      −                 −1 `(z) −
      ot,u = ntw K ,uwK = ∑ (−τ   ) mzt,u = ∑ (−τ −1 )`(z) h−
                                                            ztwK ,uwK
                                                                      .                      (3.49)
                0     0                                                           0   0
                               z∈WJ                          z∈WJ
We also have unique self-dual elements Ou ∈ J OK satisfying
                          Ou = Ou + ∑ ot,u Ot , with ot,u ∈ Z+
                                                             τ .                             (3.50)
                                               t<u
For such elements, we have
             ot,u = mwJ t,wJ u = ∑ τ `(z) ntz,u = ∑ τ `(z) hwJ tz,wJ u ,                     (3.51)
                           0    0                                         0   0
                                        z∈WK                 z∈WK
                                                     34
Proof. The existence of the unique self-dual elements O± u satisfying (3.48) follows
from [84, Lemma 24.2.1] using the fact that the involution d on J OK inherits the
required triangularity property from that of the involution on J N (or HW .) Let us
just show (3.49). From [110, Proposition 2.9],
                                                              K
                       εK+ = H −
                               wK
                                  =          ∑ τ `(w)−`(w ) Hw .
                                                              0                                    (3.52)
                                    0
                                            w∈WK

Hence, for u ∈ (J WK )reg , under the map ζ : J OK = J NεK+ ,→ J N we have
                                                                      K
                ζ (O−      −      −     −
                    u ) = εJ Hu H wK = εJ             ∑ τ `(w)−`(w ) Htw .
                                                                      0                            (3.53)
                                        0
                                                     w∈WK

Applying the involution to both sides of the above, using the fact that ζ is compat-
ible with taking such involutions, and finally using the characterization of N −
                                                                               z for
z ∈ J W reviewed in §3.3.6 we can verify that
                                   ζ (O−      − −
                                       u ) = εJ H uwK .                                            (3.54)
                                                          0

Expanding the left hand side and using the fact that Hz εK = τ `(z) εK for all z ∈ WK ,
we may write
                                                                                  K                         K
O−
 u =    ∑ o−x,u Ox = ∑ o−x,u εJ− Hx εK = ∑ o−x,u εJ− Hxz τ `(z)−`(w ) = ∑ o−x,u Nxz τ `(z)−`(w ) .
                                                                                  0                         0

       x∈J WK          t                        x∈J WK                                    x∈J WK
                                                 z∈WK                                      z∈WK

As for the right hand side of (3.54), we expand using εJ− Hw = (−τ −1 )`(w) for w ∈
WJ

εJ− H uwK = εJ− ∑ h−    H = εJ− ∑ h−
                   x,uwK x
                                         H = εJ− ∑ h−
                                   yz,uwK yz        yz,uwK
                                                           (−τ)−`(y) H(3.55)
                                                                       z
                           0                          0                               0
                x∈W                     y∈WJ             y∈WJ
                                        z∈J W            z∈J W
                                −          −`(y)
                       =       hyz,uwK (−τ)
                               ∑                 Nz =        h−   ∑
                                                              yxz,uwK
                                                                      (−τ)−`(y) Nxz(3.56)
                                                                                    .
                                     0                              0
                         y∈WJ                         y∈WJ
                         z∈J W                        xz∈J W
Hence we obtain that
                                                 K
 ∑y∈WJ h−
        yxz,uwK
                (−τ)−`(y) = o−
                             x,u τ
                                   `(z)−`(w0 ) and
                                                   ∑y∈WJ h−
                                                          yxwK ,uwK
                                                                    (−τ)−`(y) = o−
                                                                                 x,u ,(3.57)
                                                                          0   0

where we set z = wK0 in the first equation to get the second. The other equalities in
(3.49) follow from (3.46).
   One may verify (3.51) in a similar way. We leave the proof to the reader.                           
3.4. Affine Weyl groups. In this section, (I, ·) will be a Cartan datum of finite type
with associated Cartan matrix A and untwisted affinization Aaff . Write W := W(A)
for the finite Weyl group and Waff := W(Aaff ) for the affine Weyl group. Fix
(I, ·, D)which is assumed to be of simply-connected type and write D := (Y, {ǎi }, X, {ai }).
Using this root datum, we can define the Euclidean space V := Y ⊗Z R. Extend the
pairing Y × X → Z to one between V and V̌ := X ⊗Z R by linearity and denote it by
the same symbol. We write R ⊂ V ∗ to be the roots as in §3.2.4 , θ ∈ R the highest
positive root as in (3.14), Q for the root lattice, and Q̌ ∼
                                                           = Y for the coroot lattice.
                                                 35
3.4.1. Groups generated by affine reflections. Define for each i ∈ I and integer
k ∈ Z, the affine reflection σai ,k : V → V by y · σai ,k = y − (hy, ai i − k) ǎi for v ∈ V.
Note that the reflection σai ,k fixes the hyperplane Hai ,k := {v ∈ V | hv, ai i = k}.
Replacing ai with a for any root a ∈ Q (the root lattice of (I, ·, D) in the formulas
above, we define σa,k . We define Ha,k as the fixed hyperplane of this reflection,
and say that y ∈ V is positive (resp. negative) for the hyperplane Ha,k if hy, ai i > k
(resp. hy, ai i < k). Define now
                      Waff (I, ·, D) = hσai ,k | i ∈ I, k ∈ Zi.               (3.58)
                                          ∼
It contains as a subgroup W = W(I, ·) = hσai ,0 | i ∈ Ii, as well as the subgroup T
generated by the elements
                       t(kǎi ) := σai ,k ◦ σai ,0 for i ∈ I, k ∈ Z.                  (3.59)
One may check that y · t(kǎi ) = y − kǎi for y ∈ V and hence t(kǎi ) ◦ t(mǎ j ) =
t(mǎ j ) ◦ t(kǎi ). We denote this last element as t(kǎi + mǎ j ) ∈ T. In a similar way
we may define for any ǎ ∈ Ř a corresponding element t(ǎ) ∈ T. One verifies T ∼         =
   ∼
Q̌ = Y, where the last isomorphism follows from the simply connected hypothesis.
Moreover, the subgroup W := W (I, ·) normalizes T and
                                Waff (I, ·, D) ∼
                                               = W nY.                                (3.60)
3.4.2. Coxeter structure. As we are in the simply-connected case, the group Waff (I, ·, D)
is a Coxeter group with Coxeter structure defined by the set of simple reflections
Saff consisting of si := σai ,0 for i ∈ I, and the new reflection s0 := σθ ,1 . In this
simply-connected case, we then have Waff (I, ·, D) ≃ W(Aaff ) as Coxeter groups;
we shall from now on just write
                        Waff := Waff (I, ·, D) ∼
                                               = W(Aaff ).                       (3.61)
One can then define the Bruhat order on Waff (I, ·, D) as well as the length function
` with respect to this Coxeter structure, and from ([56, p.20, Prop. 1.23]), one
has the following useful formula for the length of an element in Waff (I, ·, D) with
respect to the previous decomposition (3.60): for wt(β̌ ) with w ∈ W, β̌ ∈ Q̌,
                 
        ` wt(β̌ ) =        ∑ |hβ̌ , ai| +           ∑      |1 + hβ̌ , ai|.     (3.62)
                        a∈R+ ∩w−1 R+                a∈R+ ∩w−1 (−R+ )

From this formula, (3.15), and the fact that `(w) is equal to the cardinality of the set
R+ ∩ w−1 (−R+ ), (see [14, Cor. 2, p.170]), we see that if hβ̌ , ai ≥ 0 for all a ∈ R,
then
         `(wt(β̌ )) = | R+ ∩ w−1 (−R+ )| + ∑ hβ̌ , ai = `(w) + h2ρ, β̌ i.             (3.63)
                                                 a∈R

3.4.3. Chambers. The Euclidean space V := Y ⊗Z R, regarded as an affine space
has two chamber structures, in the sense of [14, Ch. V, §1] corresponding to the
action of W and Waff (I, ·, D) on V . The chambers are the connected components
of V \ {L = Ha,0 , a ∈ R}. The Weyl group W acts transitively on the collection of
chambers. We define the dominant chamber and antidominant chambers as
C+ := {v ∈ V | hv, ai i > 0 for i ∈ I} and C− := {v ∈ V | hv, ai i < 0 for i ∈ I}, resp.
                                                                                      (3.64)
                                               36
3.4.4. Alcoves. Define the collection of affine hyperplanes as M      b := {Ha,k , a ∈
R+ , k ∈ Z}, and denote the connected components of V \ M      b as alcoves. Write A
for the collection of alcoves. For any v ∈ V \ M b and a ∈ R+ , there exists an unique
integer ka so that ka < hv, ai < ka + 1, i.e. v lies in the connected region between
the walls Ha,k and Ha,k+1 . For any alcove A ∈ A , there exist integers ka , a ∈ R
such that for v ∈ A, one has ka < hv, ai < ka + 1 for all a ∈ R+ . The anti-dominant
fundamental alcoves will be defined as

             A− = {v ∈ V | −1 < hv, ai < 0 for all a ∈ R+ } ⊂ C− .                (3.65)

The upper closure of an alcove A, which will be denoted as A, and it is obtained by
replacing the upper bounds in the definition of an alcove with inequalities. Every
v ∈ V can be uniquely written as v = x · w for w ∈ Waff and v ∈ A− , where we record
here that

            A− := {v ∈ V | −1 < hv, ai ≤ 0 for all a ∈ R+ } ⊂ C− .                (3.66)

3.4.5. A result on separating walls. For w ∈ Waff define M(w)b     to be the set of walls
which separate A and wA (a wall is called separating if the alcoves lie on different
half-spaces defined by the wall). In terms of a reduced decomposition of w ∈ W       eaff
, say w = wb1 · · · wbd where b j ∈ Iaff = {0} t I, then we have :

                   M(w)
                   b    = {Hb1 , Hb2 wb1 , . . . , Hd wbd−1 · · · wb1 },          (3.67)

where H j := H(a j ,0) if j ∈ I and H0 := H(θ ,1) the walls defining simple reflections
(see [55, Theorem 4.5]).

Remark. In terms of affine root systems (which we have not formally introduced),
these are the walls corresponding to positive affine roots which are flipped to neg-
ative by w−1 .

3.4.6. Dot action. We are often interested in the following ‘dot’ action of Waff on
V

                   x • w := (x + ρ̌) · w − ρ̌ for w ∈ Waff , x ∈ V,               (3.68)

where ρ̌ was defined in (3.15). Note that it is indeed an action of W. Under the dot
action, σa,k is a reflection through the hyperplane H•a,k := {x ∈ V | hx + ρ̌, ai = k}
since

            x • σa,k = x − (hx + ρ̌, ai − k) ǎ for x ∈ V, a ∈ R, k ∈ Z.          (3.69)

One can again define a set of alcoves with respect to the hyperplanes {H•a,k | a ∈
R, k ∈ Z} and we designate the (anti)-fundamental alcove and its upper closure as

              A•− := {x ∈ V | −1 < hv + ρ̌, ai < 0 for all a ∈ R+ },              (3.70)
               •
              A−    := {x ∈ V | −1 < hx + ρ̌, ai ≤ 0 for all a ∈ R+ }.            (3.71)
                                               37
3.4.7. Example: (Q, n)-twisted affine Weyl group. Let (I, ·, D) be an arbitrary root
datum, (Q, n) a given twist with associated root datum (I, ◦(Q,n) , D)
                                                                    e which we as-
sume is of simply connected type. We note that W(I, ·) ≃ W(I, ◦(Q,n) ) and both
groups are denoted as W . Recalling the Cartan matrix of (I, ◦(Q,n) ) was denoted as
A,
e we shall now write
                                          e ≃ W(A
                eaff := Waff (I, ◦(Q,n) , D)
                W                               e aff ) ≃ W n Ye .            (3.72)
                  eaff on V := Y ⊗Z R is defined via
The dot action of W
              x • σaei ,k = v − (hv + ρ̌, aei i − k) ae∨i for v ∈ V, i ∈ I, k ∈ Z.   (3.73)
Note that the ρ̌ which appears in the above formula is ‘untwisted’. A fundamental
                          eaff on V is given by the set
domain for this action of W
             •
            A−,(Q,n) := {v ∈ V | −1 < hv + ρ̌, aei ≤ 0 for all ae ∈ R
                                                                    e +}             (3.74)
                        =     {v ∈ V | −n(ǎ) < hv + ρ̌, ai ≤ 0 for all a ∈ R+ }.    (3.75)
When the choice of Q is implicitly understood, we abbreviate our notation and
write
                                       •          •
                                     A−,n := A−,(Q,n) .                              (3.76)
                                                            •
3.4.8. Stabilizers, orbits, and cosets. For η̌ ∈ A−,n , let J ( Iaff be such that
                                 eaff )J := Stab e
                                (W              (Waff ,•) (η̌).                      (3.77)

Then we may identity (W      eaff )J \ W
                                       eaff with elements in the orbit Weaff • η̌. Writing
µ̌ ∈ Weaff • η̌ as µ̌ = η̌ • w with w ∈ W  eaff , we may fix w uniquely by requiring it to
       J e
lie in (Waff ). In this way we get a bijective correspondence
                            eaff ↔ J W
                       η̌ • W        eaff for J ( Iaff as in (3.77).                 (3.78)
                                                 •
We extend this result to conclude that for η̌ ∈ A−,n and J as in (3.77), there is a
bijection
                    eaff )J \ W        1:1
                              eaff /W ←→
                   (W                      (W, •)-orbits in η̌ • W
                                                                 eaff ,              (3.79)
where by (W, •)-orbits, we mean orbits under the •-action of W . The above corre-
spondence can be further strengthened to one between regular double cosets (see
the end of §3.1.9) and regular (W, •)-orbits in η̌ • W eaff (i.e. those orbits under the
•-action of W whose stabilizer is trivial). One may verify that each regular (W, •)-
orbit in η̌ • W
              eaff has a unique dominant representative and so we obtain a bijection
                                                    
                                          1:1  J eI
                                    eaff ←→
                          Y+ ∩ η̌ • W           Waff     .                        (3.80)
                                                                reg
Denoting the Bruhat order on the left hand side by ≤B (the one induced fromthe
Bruhat order on the right hand side). Then one knows that if x, y ∈ J W  eI
                                                                           aff
                                                                                        reg
correspond to dominant coweights λ̌x , λ̌y , then
                                   x ≤B y =⇒ λ̌y ≤ λ̌x                               (3.81)
                                                 38
where the order ≤ in the right hand side is the dominance order.
3.4.9. Boxes and restricted weights. Keep the notation of the previous section and
define the lower-closure of the box (in the terminology of [63]), or set of restricted
weights, as
               (Q,n) := {λ̌ ∈ Y+ | 0 ≤ h λ̌ , ai i < n(ǎi ) for i ∈ I}.            (3.82)
One can easily check that each λ̌ ∈ Y+ may be uniquely written as
                      λ̌ = λ̌0 + ζˇ , λ̌0 ∈  , ζˇ ∈ Ye+ .
                                               (Q,n)                                 (3.83)
Indeed, from λ̌ ∈ Y+ , we may just subtract positive multiples of the fundamental
coweights attached to D e until we arrive at an element in the box (our simply-
connected hypothesis ensures that these fundamental coweights lie in Ye+ ).
3.5. Affine Hecke algebras and their combinatorics. In this subsection, we as-
sume (I, ·, D) is of simply connected type and write D = (Y, {ǎi }, X, {ai }). Write W
for the Weyl group of (I, ·) and Waff := Waff (I, ·, D) = W nY for the corresponding
affine Weyl group, which we know is a Coxeter group under the simply connected
hypothesis. As such we can define two Hecke algebras: HW := H(W,t) will be
called the finite Hecke algebra and Haff := H(Waff ,t) will be called the affine Hecke
algebra.

3.5.1. Bernstein presentation. If β̌ ∈ Y+ we set Yβ̌ := Tt(β̌ ) and we note by the
length formula (3.62) that Yβ̌ +γ̌ = Yβ̌ Yγ̌ = Yγ̌ Yβ̌ when β̌ , γ̌ ∈ Y+ . For a general el-
ement β̌ ∈ Y , we may write β̌ = λ̌ − µ̌ with λ̌ , µ̌ ∈ Y+ and then set Yβ̌ = Yλ̌ Yµ̌−1
which can be shown to be well-defined (i.e. independent of the choice of λ̌ , µ̌ ∈ Y+ ,
cf. [86, p.40]). This definition extends to give a well-defined injective morphism
of algebras ι : Zτ [Y ] → Haff . Let us also remark that one has the formula (see
[70, Lemma 3.5] for a conceptual derivation)
                                Y β̌ = Hw0 Yw0 β̌ Hw−1
                                                     0
                                                       .                             (3.84)

One can verify (see [86, p. 59, (4.2.7)]) that the elements {Hw Yβ̌ } for w ∈ W, β̌ ∈ Y
(and similarly {Yβ̌ Hw }) form an Zτ -basis of Haff , where one has the following
relation
                                                    Ys β̌ −Yβ̌
                    Hsi Yβ̌ −Ysi β̌ Hsi = (τ −1 − τ) i         .                (3.85)
                                                    1 −Y−ǎi

3.5.2. The module Haff ε. Regard I ⊂ Iaff in the natural way so that (W
                                                                      eaff )I = W
and set
                                         τ `(w0 ) +
                                 ε :=             ε .                                (3.86)
                                        PW (t −1 ) I
From (3.40) and (3.41) we find that
                      Hsi ε = τε = εHsi for i ∈ I and ε 2 = ε.                       (3.87)
                                             39
The parabolic module Haff ε = Haff εI+ defined as in §3.3.5 is sometimes also re-
ferred to as the polynomial representation in the literature, as the relation (3.85)
and the first of the relations above show that the map ι above induces an isomor-
                                   ∼
                                   =
phism of Zτ -modules, ι : Zτ [Y ] −→ Haff ε, see [86, §4.3]. The induced action of
Haff on Zτ [Y ], denoted h 7→ h.p(Y ), h ∈ Haff , p(Y ) ∈ Zτ [Y ], takes the following
form:
                                                                  τ −1 −τY−ǎi       τ−τ −1
   Yλ̌ .Yµ̌ = Yλ̌ +µ̌ for λ̌ , µ̌ ∈ Y,     and       Yµ̌ .Hsi =     1−Y−ǎi Ysi µ̌ + 1−Y−ǎi Yµ̌ .
                                                                                                     (3.88)

3.5.3. The spherical Hecke algebra Hsph . The spherical subalgebra is the Zτ -
module
                                         Hsph := ε Haff ε,                                           (3.89)
with algebra structure induced from Haff using the fact that ε is an idempotent. The
inverse ι from the previous paragraph induces an isomorphism of Haff -subalgebras
                                                 ∼
                                                 =
                                   S : Hsph −→ Zτ [Y ]W ,                                            (3.90)
where Zτ [Y ]W is the space of W -invariant elements in the group algebra of Y over
Zτ (the action of W on Y induces the action of si on Zτ [Y ] by the relation siYβ̌ =
Ysi β̌ , etc.). One can show that the elements hµ̌ := ε Yµ̌ ε for µ̌ ∈ Y+ form a basis of
Hsph and that
                                                                     !
                            τ hµ̌,2ρi            1 − τ −2Y−wǎ
                 S(hµ̌ ) =               ∑ ∏ 1 −Y−wǎ ·Ywµ̌ ,
                           PWµ̌ (t −1 ) w∈W
                                                                                  (3.91)
                                            a∈R+

where PWµ̌ (t −1 ) is the Poincaré polynomial of the stabilizer of µ̌ in the finite Weyl
group W see (3.8). The space Zτ [Y ]W has another distinguished basis, namely the
characters χλ̌ , λ̌ ∈ Λ̌+ defined as:
                                            ∑w∈W (−1)`(w) Yw(λ̌ +ρ̌)−ρ̌
                     χλ̌ := χλ̌ (Y ) :=                                        .                     (3.92)
                                                 ∏ǎ∈R+ (1 −Y−ǎ )
Denoting by cλ̌ ∈ Hsph the element such that S(cλ̌ ) = χλ̌ , the elements {cλ̌ }λ̌ ∈Y+
form another basis of Hsph , which is related to the basis {hλ̌ } through the so-called
Kato–Lusztig formula
   cλ̌ = ∑µ̌≤λ̌ pµ̌,λ̌ (τ) hµ̌ ,    or equivalently          χλ̌ = ∑µ̌≤λ̌ pµ̌,λ̌ (τ) S(hµ̌ ), (3.93)

where ≤ in the above refers to the dominance order on Y as in (3.13). For ζˇ ∈ Y+ ,
if we write wζˇ for the longest element in W t(ζˇ )W , then it can be deduced from
(3.62) that
                 w ˇ := w0 t(ζˇ ) and `(w ˇ ) = `(w0 ) + hζˇ , 2ρi.
                      ζ                              ζ
                                                                             (3.94)

In terms of the Kazhdan–Lusztig polynomials (3.38), pµ̌,λ̌ (τ) = τ hλ̌ −µ̌,2ρi Pwµ̌ ,wλ̌ (τ 2 ).
It is known that y ≤ wλ̌ in the Bruhat order if and only if there exists µ̌ ∈ Y+ such
that µ̌ ≤ λ̌ and y ∈ W t(µ̌)W , see [61, (4.6)]. So it follows that if µ̌, λ̌ ∈ Y+ , then
µ̌ ≤ λ̌ if and only if wµ̌ ≤ wλ̌ .
                                                     40
3.5.4. The modules J V and J Vsph . Let J ⊂ I ( Iaff and consider the Zτ -modules
                             −                              −
                     J V := εJ Haff      and     J Vsph := εJ Haff ε.                  (3.95)
We have already described a basis for the space J V , namely Nw := εJ− Hw where w
ranges over the elements in JWaff . In a similar way, we see that J Vsph has a basis
Bu := εJ− Hu ε as u ranges over a set of regular, minimal length coset representatives
 J I
  Waff reg . One can equip J V and JVsph with involutions inherited from the invo-
lution d on Haff , and we continue to call these d : J V → J V and d : J Vsph → J Vsph .
Finally, let us note that J V carries a right action by Haff , denoted as · and J Vsph is
equipped with a right  action by Hsph   , denote  as ?, and computed as follows: for
                                       −
h ∈ Haff , u ∈ Waff reg , we have εJ Hu ε ? (εhε ) = εJ− (Hu ε h) ε.
                J I
                                             


3.6. Twisted affine Hecke algebras. Throughout this section, we let (I, ·, D) be a
root datum, written D = (Y, {ǎi }, X, {ai }) and equipped with twist (Q, n) such that
the associated root datum (I, ◦n , D),
                                   e D            a∨i }, X,
                                       e = (Ye , {e         ai }), is of simply-connected
                                                         e {e
type. Set
          W := W(I, ·) ∼                eaff := Waff (I, ◦(Q,n ) ∼
                       = W(I, ◦(Q,n) ), W                        = W n Ye              (3.96)

and H              eaff ,t) ∼
     eaff := Haff (W        = HW ⊗ Zτ [Ye ]. Denote the analogues of the modules in
(3.95) as
                             − e                            − e                        (3.97)
                     J V := εJ Haff      and     J Vsph := εJ Haff ε.
                       e                           e
                                             •
3.6.1. The module Ve (η̌). Pick η̌ ∈ A−,n and suppose J ⊂ Iaff is such that Stab(Weaff ,•) (η̌) =
 eaff )J . Define the A-module Ve (η̌) to be a copy of the H
(W                                                              eaff -module J Ve . We now
describe a basis {vµ̌ } of Ve (η̌) indexed by elements µ̌ in η̌ • W  eaff (recall that, as we
                                                                Je
explained in (3.78), this indexing set is in bijection with Waff , the set indexing the
natural basis of J Ve ). The elements vµ̌ are defined as follows:
       • for µ̌ ∈ η̌ • Weaff , write µ̌ = η̌ • w for a unique w ∈ J W
                                                                    eaff ;
       • decompose w = σ t(β̌ ) with β̌ ∈ Y and σ ∈ W ;
                                                  e
       • set vµ̌ := εJ− Hσ Yβ̌ .
                           eaff • η̌ satisfy
The elements vµ̌ with µ̌ ∈ W
                           vµ̌   = εJ− Hσ if µ̌ = η̌ • σ , σ ∈ J Weaff ,               (3.98)
                      vµ̌ ·Yλ̌   = v     if λ̌ ∈ Ye , µ̌ ∈ η̌ • W
                                       λ̌ +µ̌
                                                                eaff .                 (3.99)
                      •
Lemma. Let η̌ ∈ A−,n , J defined as in (3.77), and λ̌ ∈ Y+ ∩ η̌ • W     eaff . Then we may
                                                     J
write λ̌ = η̌ • σ t(β̌ ) with β̌ ∈ Ye+ and σ t(β̌ ) ∈ Weaff , and hence v = ε − Hx for the
                                                                         λ̌     J
unique x ∈ J Weaff such that η̌ • x = λ̌ .

Proof. Observe that for each σ ∈ W , we have −n(ǎi ) < hη̌ • σ , ai i < n(ǎi ). Hence
writing λ̌ = η̌ • σ t(β̌ ) = (η̌ • σ ) + β̌ for any σ ∈ W, β̌ ∈ Ye , we must have hβ̌ , ai i ≥
0. Indeed, if ω̌aei = n(ǎi )ω̌ai denotes the fundamental coweight in the root system
                                                41
             e we have (by the simply-connected hypothesis) that ω̌ae ∈ Ye . The
attached to D,                                                       i
exist fi ∈ Z such that
                              β̌ = ∑ fi ω̌aei = ∑ fi n(ǎi )ω̌ai ,                             (3.100)
                                    i∈I            i

from which it follows that hβ̌ , ai i ∈ {0, ±n(ǎi ), ±2n(ǎi ), . . . , }. The dominance of
β̌ follows, and the second assertion of the Lemma follows from the (3.63) and the
fact that if β̌ ∈ Ye+ , then Htβ̌ = Yβ̌ .                                                 

3.6.2. Quantum Demazure–Lusztig operators. The action of the polynomial part
of the affine Hecke algebra H eaff , i.e. of the group algebra Zτ [Ye ] is given in the basis
just introduced of Ve (η̌) by formula (3.99). The action of the finite Hecke algebra
HW ⊂ H  eaff on Ve (η̌) can be described by the quantum specialization (2.6) of the
metaplectic Demazure–Lusztig operators that will be introduced in §4.1. Since
we explain the properties of these (unspecialized) Demazure–Lusztig operators in
more detail in loc. cit., we introduce them in a somewhat ad hoc manner now. To
begin, we introduce the expression
                                (
                                    −1 if m ≡ 0 mod n
                        υ(m) =                                ,                      (3.101)
                                    τ       if m 6≡ 0 mod n
                          e [s on Ve (η̌), acting on the right, via the formulas :
then define the operators T   i
                   
                      −1                                          −1
                   τ υ(hλ̌ + ρ̌, ai iQ(ǎi )) vλ̌ •si + (τ − τ )
                                                                           ∑        vλ̌ −kn(ǎi )ǎi if hλ̌ , ai i ≥ 0,
     
                   
                   
                                                                         k≥0
                                                                      kn(ǎ)≤hλ̌ ,ai
vλ̌ · τ −1 T
           e [s :=
               i      −1 υ(hλ̌ + ρ̌, a iQ(ǎ )) v             −1 − τ)
                                                                                                                            (3.102)
                   
                   τ                  i     i   λ̌ •s i
                                                         + (τ                ∑         v λ̌ +kn( ǎ )ǎ
                                                                                                   i i
                                                                                                        if hλ̌ , a i i < 0.
                                                                            k>0
                   
                   
                   
                                                                             kn(ǎ)<−hλ̌ ,ai

Using these formulas, we find that for µ̌ ∈ η̌ • W
                                                 eaff ,
                  
                 vµ̌•si
                                              if − n(ǎi ) < hµ̌ + ρ̌, ai i < 0,
         −1 e [                    −1
  vµ̌ · τ Tsi = vµ̌•si + (τ − τ )vµ̌            if 0 < hµ̌ + ρ̌, ai i < n(ǎi ), (3.103)
                   −1
                                   −1
                    −τ vµ̌ = −τ vµ̌•si if hµ̌ + ρ̌, ai i = 0,
where in the first two cases, we note that hµ̌ + ρ̌, ai iQ(ǎi ) 6≡ 0 mod n by the defi-
nition of n(ǎi ) in (3.18).
                              •
Proposition. Let η̌ ∈ A−,n . Then in Ve (η̌), we have the relation
                                      
          vµ̌ · Hsi = vµ̌ · τ −1 T
                                 e [s for µ̌ ∈ η̌ • W
                                     i
                                                    eaff and any i ∈ I.                        (3.104)

3.6.3. Proof of Proposition 3.6.2, part 1. Let J := {i ∈ Iaff | hη̌ + ρ̌, ai i = 0}, so
that by definition Ve (η̌) ∼
                           = VeJ . Suppose that µ̌ ∈ η̌ • W
                                                          eaff actually lies in the orbit of
W , i.e.
                                   µ̌ = η̌ • σ for σ ∈ W.                                      (3.105)
                                                  42
Then (3.43) together with the fact that • defines an action of W implies for each
i∈I
                             
                             vµ̌•si
                                                   if σ si > σ , σ si ∈ J W
                                                                           eaff ,
               −                            −1                           J
  vµ̌ · Hsi = εJ · Hσ · Hsi = vµ•si + (τ − τ )vµ̌ if σ si < σ , σ si ∈ W   eaff ,(3.106)
                              −1
                                                    if σ si 6∈ J W
                             
                              −τ vµ̌                             eaff .

Hence, we need to match up the conditions in (3.106) and (3.103).
                        •
Lemma. For η̌ ∈ A−,n and J ⊂ Iaff such that (3.77) holds, we have
    (1) If σ si ∈ J W
                    eaff and σ si > σ then −n(ǎi ) < hµ̌ + ρ̌, ai i < 0.
                  Je
    (2) If σ si ∈ Waff and σ si < σ then 0 < hµ̌ + ρ̌, ai i < n(ǎi ).
                / JW
    (3) If σ si ∈   eaff if and only if hµ̌ + ρ̌, ai i = 0.

                            / JW
Proof. Towards (3), if σ si ∈  eaff , using (3.9) we write σ si = s j σ for a j ∈ J.
Hence
            (η̌ • σ ) • si = η̌ • (σ si ) = η̌ • (s j σ ) = η̌ • s j • σ = η̌ • σ       (3.107)
by the assumption on the stabilizer of η̌. But (η̌ • σ ) • si = η̌ • σ implies that
hη̌ • σ + ρ, ai i = hµ̌ + ρ, ai i = 0. Conversely, if hµ̌ + ρ̌, ai i = 0, then µ̌ • si = µ̌.
By definition of µ̌, (η̌ • σ ) • si = η̌ • σ and hence
                                   η̌ • (σ si ) = η̌ • σ .                              (3.108)
This last equation means that σ si σ −1 ∈ (W
                                           eaff )J or σ si = τσ with 1 6= τ ∈ (W
                                                                               eaff )J .
                  Je
Therefore si σ ∈/ Waff as σ is the minimal length representative for right (W   eaff )J
cosets.
  As for (1), first observe that
     hµ̌ + ρ̌, ai i = hη̌ • σ + ρ̌, ai i = h(η̌ + ρ̌) · σ , ai i = hη̌ + ρ̌, σ −1 (ai )i. (3.109)
Using the definition aei from §3.2.6, what we need to show is
                             −1 < h(η̌ + ρ̌) · σ , aei i < 0.                           (3.110)
                                                                      ai )σ −1 > 0 and we
By assumption, −1 < hη̌ + ρ̌, aek i ≤ 0 for all k ∈ I. As σ si > σ , (e
find that hµ̌ + ρ̌, ai i ≤ 0. However, we cannot have hµ̌ + ρ̌, ai i = 0 since this would
contradict part (1), so the desired upper bound follows. With our assumption that
       •
η̌ ∈ A+,n , the lower bound is just the statement that η̌ + ρ̌ and (η̌ + ρ̌)σ are on the
same side of the hyperplane defining the reflection σaei ,1 . But this is clear from the
fact that σ ∈ W and the description of the set M(σ b ) from (3.67). Part (2) follows
from a similar analysis.                                                                

3.6.4. Proof of Proposition 3.6.2, part 2. In the general case, suppose µ̌ = η̌ • w,
w ∈ JWeaff , where w = σ t(β̌ ) for σ ∈ W and β̌ ∈ Ye . Defining λ̌ := η̌ • σ it follows
that σ ∈ J W eaff as well, so that

                            vλ̌ := εJ Hσ and vµ̌ = vλ̌ ·Yβ̌ .                           (3.111)
                                                43
The Bernstein relation (3.85) for the metaplectic Iwahori Hecke algebra shows that
                                                                       Yβ̌ s −Yβ̌
        vµ̌ · Hsi = vλ̌ ·Yβ̌ · Hsi = vλ̌ Hsi Yβ̌ si − (τ − τ −1 ) vλ̌ · i         . (3.112)
                                                                       1 −Y−ea∨i
We leave it as an exercise to verify that (vλ̌ ·Yβ̌ )(τ −1 T
                                                           e [s ) = v
                                                               i
                                                                               −1 e [
                                                                      λ̌ +β̌ (τ Tsi ) satisfies
the same recursion as vλ̌ +β̌ Hsi using the explicit formulas given in (3.102).

Remark. The operators T  e [s can also be built from the so-called Chinta–Gunnells
                             i
action of the Weyl group W (see §4.1.1 - 4.1.2 for more details). Using the special
property of the Chinta–Gunnells action (4.6), the recursion asserted above for Te [s
                                                                                     i
then follows immediately from the formula (4.8).
3.6.5. The module Ve . Keep the same notation as above and consider the sum
                                   M
                             Ve :=      Ve (η̌).                          (3.113)
                                                      •
                                              η̌∈A−,n

as an H eaff -module. Note that as a Heaff -module, many of the summands Ve (η̌) will
be isomorphic to the same VJ . We may write each λ̌ ∈ Y as λ̌ = η̌ • w for a unique
                             e
         •
η̌ ∈ A−,n ; defining vλ̌ ∈ Ve (η̌) as above, we see that {vλ̌ }λ̌ ∈Y form an A-basis of
V , i.e. we have as A-modules Ve ∼ = Zτ [Ye ]. The action of H
                                                             eaff on V and an involution
d are obtained by adding together those on individual Ve (η̌).
                                            •
3.6.6. On the modules Vesph (η̌). For η̌ ∈ A−,n and J as in (3.77), we define
       Vesph (η̌) := εJ− H
                         eaff ε       and let     [vµ̌ ] := vµ̌ ε for µ̌ ∈ Y ∩ η̌ • W
                                                                                    eaff .        (3.114)
The elements [vµ̌ ] will span Vesph (η̌) by a simple application of the Bernstein pre-
sentation, but they will not be linearly independent, as the following relations hold.
                              •
Proposition. Let η̌ ∈ A−,n and let ai be a simple root with corresponding reflection
si .
     (1) If hλ̌ + ρ̌, ai i ≥ 0 and hλ̌ + ρ̌, ai i ≡ 0 mod n(ǎi ) then [vλ̌ ] + [vλ̌ •si ] = 0.
    (2) If 0 < hλ̌ + ρ̌, ai i < n(ǎi ), then [vλ̌ ] − τ[vλ̌ •si ] = 0.
    (3) If hλ̌ + ρ̌, ai i > n(ǎi ) but j := hλ̌ + ρ̌, ai i 6≡ 0 mod n(ǎi ), then setting
 λ̌(1) := λ̌ − resn(ǎi ) (hλ̌ + ρ̌, ai i) ǎi , we have [vλ̌ ] = τ[vλ̌ •si ] + τ[vλ̌ (1) ] − [vλ̌ (1) •si(3.115)
                                                                                                          ].
In type A, the above is due to [77, Prop. 5.9]. The generalization to arbitrary
type is in [53, Prop. 6.3(ii)], see also [75, Prop. 4.4]. As it is a specialization of
Proposition 4.3.2, we defer the proof to Section 4.
3.6.7. The space Vesph . As Vesph (η̌) ∼
                                       = εJ− H
                                             eaff ε, we know that a basis consists of
regular, minimal length representatives of the double cosets. On the other hand,
we have a bijection, see (3.79):
                                     
                          1:1   J eI
                    eaff ←→
          Y+ ∩ η̌ • W            Waff     , µ̌ = η̌ • w 7→ (W
                                                            eaff )J wW.      (3.116)
                                                reg
Using the straightening rules above, we may show that
                                                          44
                     •
Corollary. Fix η̌ ∈ A−,n . Then {[vµ̌ ]} for µ̌ ∈ Y+ ∩ η̌ • W
                                                            eaff forms a basis of
Vesph (η̌).
If we now define the Zτ -module
                                            M
                                Vesph :=             Vesph (η̌),                          (3.117)
                                               •
                                           η̌∈A−,n

then we find that, as an Zτ -module, Vesph has a basis [vλ̌ ] with λ̌ ∈ Y+ .

3.7. Involutions and canonical bases in Vesph . Fix the notation as in §3.6.

3.7.1. Involution on Ve (η̌). Recall that each Ve (η̌) ≃ εJ− H
                                                             eaff ε, and so is equipped
with an involution d. It takes the following explicit form with respect to the basis
vµ̌ .
                                 •
Lemma. [77, Prop. 5.4] Let η̌ ∈ A−,n with J as in (3.77). Then for µ̌ ∈ η̌ • W
                                                                             eaff ,
we have
                                                        J
                      vµ̌ := d(vµ̌ ) = (−τ)−`(w0 ) vµ̌•w0 · Hw−1
                                                               0
                                                                 .                        (3.118)
Proof. The proof in loc. cit. carries over. To begin, suppose η̌ • w = µ̌ with
w ∈ JWeaff written as w = σ t(β̌ ), so that vµ̌ = ε − · Hσ Y . By definition and using
                                                   J        β̌
(3.35) and (3.84), we find
                        vµ̌ = εJ− Hσ ·Yβ̌ = εJ− Hσ w0 Yw0 β̌ Hw−1
                                                                0
                                                                  .                       (3.119)
Now we have that
                  µ̌ • w0 = η̌ • σ t(β̌ )w0 = η̌ • (σ w0 ) · t(w0 β̌ ).                   (3.120)
Writing ω := (σ w0 )t(w0 β̌ ), we leave it as an exercise to verify that if σ t(β̌ ) ∈
Je
 Waff , then wJ0 ω ∈ J W
                       eaff . The result follows since Hsi , i ∈ J acts on εJ via the scalar
   −1
−τ .                                                                                      

   Note that by Proposition 3.6.2, we could have equivalently defined
                                              J
                                                            e [w )−1 .
                     vµ̌ := τ −`(w0 ) (−τ)−`(w0 ) vµ̌•w0 · (T   0
                                                                                          (3.121)
                                      •
Remark. By definition, if η̌ ∈ A−,n , then vη̌ = εJ and so vη̌ = vη̌ . Hence, the above
Lemma implies that
                                             J
                          vη̌ = (−τ)−`(w0 ) vη̌•w0 Hw−1
                                                      0
                                                        = vη̌ .                           (3.122)
But the action of Hw0 on vη̌ can be described in terms of the formulas (3.103): we
have
             vη̌•w Hsi = vη̌•w · (τ −1 T
                                       e [s ) = ci vη̌•ws
                                           i              i
                                                                   if   `(wsi ) > `(w),   (3.123)
                  / J and ci = −τ −1 if i ∈ J.
where ci = 1 if i ∈
                                                 45
3.7.2. The involution on Vesph (η̌). In order to construct a Kazhdan–Lusztig basis
on the space Vesph (η̌) introduced in §3.6.7, we need the following result.
                           •
Proposition. Fix η̌ ∈ A−,n with J ⊂ Iaff defined as in §3.6.1. Suppose λ̌ ∈ Y+ ∩ η̌ •
eaff . Then we have
W
     (1) The involution d : Vesph (η̌) → Vesph (η̌) takes the following form:
                                               J                     J
                     d([vλ̌ ]) = (−1)`(w0 ) τ −`(w0 )−`(w0 ) [vλ̌ •w0 ].            (3.124)
    (2) With respect to the dominance order <, for some aµ̌,λ̌ ∈ Zτ one has

                       d([vλ̌ ]) = [vλ̌ ] +            ∑           aµ̌,λ̌ [vµ̌ ].   (3.125)
                                               µ̌∈η•Weaff ∩Y+
                                                   µ̌<λ̌
                                                                             J
Proof. We have already seen that d(vλ̌ ) = (−τ −1 )`(w0 ) vλ̌ •w0 Hw−1
                                                                     0
                                                                       . On the other
hand,
                                                                         J
              d[vλ̌ ] = d(vλ̌ ε) = d(vλ̌ )ε = (−τ −1 )`(w0 ) vλ̌ •w0 Hw−1
                                                                        0
                                                                          ε.        (3.126)

Since Hw0 ε = τ `(w0 ) ε, we have Hw−1
                                     0
                                       ε = τ −`(w0 ) and the result follows. The trian-
gularity can either be deduced by inspecting the form of the straightening rules, or
by resorting back to the triangularity of the involution in εJ− H eaff ε and then using
the comparison of the Bruhat order with the dominance order from (3.81). We
will explain the former approach in more detail in the g-twisted setting in the next
section.                                                                             
                                                                          •
3.7.3. The module Vesph and its canonical bases. For any η̌ ∈ A−,n , using [84,
Lemma 24.2.1] and part (2) of the previous Proposition applied to the set Y+ ∩ η̌ •
Weaff with the dominance order, we may construct a new basis of Vesph starting from
[vµ̌ ], µ̌ ∈ Y+ ∩ η̌ • W
                       eaff . In fact, we have two possibilities: we may construct [G ]
                                                                                        λ̌
          −
and [G ] for λ̌ ∈ Y+ ∩ η̌ • W    eaff characterized uniquely by the property that they are
          λ̌
self-dual with respect to the involution described above and satisfying
          [Gλ̌ ] = [Gλ̌ ]+ := [vλ̌ ] + ∑ oµ̌,λ̌ [vµ̌ ], where oµ̌,λ̌ ∈ Z+
                                                                        τ and       (3.127)
                                               µ̌<λ̌

          [G− ] = [vλ̌ ] + ∑ o− [vµ̌ ], where o− ∈ Z−
                                                    τ ,                             (3.128)
             λ̌                        µ̌,λ̌                        µ̌,λ̌
                               µ̌<λ̌

respectively. If y, x ∈ (J W I )reg are such that η̌ • y = λ̌ , η̌ • x = µ̌, then Lemma 3.6.1
implies [vλ̌ ] = Oy and also [vµ̌ ] = Ox . Hence we may conclude that
                          oµ̌,λ̌ = oy,x and             o− = o−
                                                              y,x ,                 (3.129)
                                                           µ̌,λ̌

where the right hand side of each equality were defined in Proposition 3.3.7 .
    The collections {[Gλ̌ ]} and {[G− ]} will be referred to as canonical bases of
                                     λ̌
                                                        •
Vesph (η̌). Putting these bases together (for all η̌ ∈ A−,n ), we get bases for Vesph
indexed by Y+ which are again called canonical bases.
                                                   46
                                               esph -module structure on
3.8. Littlewood–Richardson polynomials and the H
Vesph .
                                                                  •
       esph -module structure on Vesph (η̌). For η̌ ∈ A−,n and J defined as in (3.77),
3.8.1. H
the space Vesph (η̌) = εJ− H                           esph = ε H
                           eaff ε is naturally a right H        eaff ε-module under a right
action ? introduced in §3.5.4. Using the Satake isomorphism (3.90), we obtain an
action of Zτ [Ye ]W on Vesph (η̌), written as ♦, and defined as
                    v♦ f = v ? S−1 ( f ) for f ∈ Zτ [Ye ]W , v ∈ Vesph (η̌).                    (3.130)
Proposition. Let f (Y ) = ∑λ̌ ∈Ye cλ̌ Yλ̌ ∈ Zτ [Ye ]W with cλ̌ ∈ Zτ . Then
                        [vµ̌ ] ♦ f = ∑ cλ̌ [vλ̌ +µ̌ ] for µ̌ ∈ η̌ • W
                                                                    eaff .                      (3.131)
                                      λ̌

Proof. It suffices to verify this for f = S(hλ̌ ), λ̌ ∈ Ye+ , since these form a basis of
Zτ [Y ]W . Writing S(hλ̌ ) = ∑ζˇ ∈Ye cζˇ ,λ̌ Yζˇ with ζˇ ∈ Ye , we compute from the definitions
      [vµ̌ ]♦S(hλ̌ ) = [vµ̌ ] ? hλ̌ = vµ̌ ε εYλ̌ ε = vµ̌ S(hλ̌ )ε = ∑ cζˇ ,λ̌ [vζˇ +λ̌ ].       (3.132)
                                                                         ζˇ

                                                                                                          
3.8.2. The Littlewood–Richardson polynomials. The Littlewood–Richardson co-
            ζˇ
efficients c ∈ Z for λ̌ , µ̌, ζˇ ∈ Ye+ are defined as decomposition numbers for the
            µ̌,λ̌
                                                                              ζ             ˇ
multiplication of characters χλ̌ ∈ Z[Ye ] defined in (3.92): χλ̌ · χµ̌ = ∑ζˇ c χζˇ . A
                                                                              µ̌,λ̌
deformation of these numbers to polynomials in type A was introduced in [77] un-
der the name q-Littlewood–Richardson coefficients see [53,75] for the extension to
general type. In our setup, the polynomials Qλ̌ˇ (τ) can be defined via the relation
                                                         ζ ,µ̌

                       [vµ̌ ] ? cλ̌ = [vµ̌ ]♦χλ̌ = ∑ Qλ̌ζˇ ,µ̌ (τ)[vζˇ ].                       (3.133)
                                                    ζˇ ∈Y+

Remark. When n = 1, one has isomorphism of Hsph -modules
                             = Hsph ∼
                        Vsph ∼      = Zτ [Y ]W                                                  (3.134)
under which [vµ̌ ] maps to cµ̌ ∈ Hsph and χµ̌ ∈ Z[Y ]W , resp., reducing Qλ̌ˇ                   to cλ̌ˇ      .
                                                                                       ζ ,µ̌         ζ ,µ̌

Using Proposition 3.6.2 and (3.87), the action of ε on Ve is given, in terms of the
basis vµ̌ , µ̌ ∈ Y, as
                                                    e [w τ −`(w) .
                              vµ̌ ε = ∑ τ −`(w) vµ̌ T                                           (3.135)
                                      w∈W

Let us introduce the element CS[ (µ̌) ∈ Ve (see below for some remarks on this
notation)
                                                 e [w τ −`(w)
                   CS[ (µ̌) := vµ̌ · ε = ∑ vµ̌ · T                     (3.136)
                                                  w∈W
                                                  47
and write its image in Vesph as [CS[ (µ̌)]. Recall the polynomials pτ̌,λ̌ from (3.93).

Proposition. Let λ̌ ∈ Ye+ and µ̌ ∈ Y+ . Then we have

                    ∑ pτ̌,λ̌ [CS[ (µ̌) ·Yτ̌ ] = ∑ Qλ̌ζˇ ,µ̌ (τ)[vζˇ ].              (3.137)
                    τ̌≤λ̌                              ζˇ ∈Y+

Note that in order to write the left hand side of the above relation (3.137) in terms
of the basis elements [vζˇ ], we may need to use the straightening relations of Propo-
sition 3.6.6.
Proof. It suffices to show, in light of the relation (3.93), that [vµ̌ ]♦S(hλ̌ ) = [CS[ (µ̌)·
Yλ̌ ]. This follows, since by definition, [vµ̌ ]♦S(hλ̌ ) = vµ̌ ε Yλ̌ ε = CS[ (µ̌)Yλ̌ ε.   
Remark. The notation CS[ comes from the fact that in the metaplectic setting,
the analogous expression CS(
                          f µ̌) gives the metaplectic Casselman–Shalika formula
that is featured prominently in the literature on multiple Dirichlet series. Motivated
by this, McNamara [89] has proved combinatorial formulas expressing CS(      f µ̌) as
a sum over the crystal Bµ̌+ρ̌ (or alternatively as a sum over certain Gelfand–
Tsetlin patterns in type A) and in [17], lattice models are studied whose partition
function yields CS(
                 f µ̌). Although both results are proved in the metaplectic setting,
one may treat the parameters introduced there as formal variables and perform a
‘quantum specialization’ to obtain what appears to be new combinatorial formulas
for Qλ̌ˇ (τ).
      ζ ,µ̌
3.9. Tensor product theorems. We formulate below two results for the bases
[Gλ̌ ] and [G− ] introduced in §3.7.3. Modeled on the Steinberg-Lusztig theorem
             λ̌
(see Thm. 7.3.6 (1)), the result for [G− ] seems to originate in the work of [77] in
                                        λ̌
type A. The proof sketched below follows the nice argument due to Lanini-Ram
[74] for general type. In fact, the argument in op. cit. can be easily modified to also
give a tensor product theorem for [Gλ̌ ] which matches a result due to Andersen for
tilting modules (see Thm. 7.3.6(2)).
3.9.1. Tensor product theorem. Recall the set (Q,n) from §3.4.9.
Proposition. Let λ̌ ∈ Y+ be decomposed uniquely as λ̌ = λ̌0 + ζˇ , where ζˇ ∈ Ye+
and λ̌0 ∈ (Q,n) .
    (1) [74, Thm 1.4] We have [G− ] ? ceζˇ = [G−        ].
                                    λ̌0         λ̌0 +ζˇ
                  †                     ∨
    (2) Writing λ̌0 := λ̌0 · w0 + 2(ρe − ρ̌) we have
                                 [Gλ̌ † ] ? ceζˇ = [Gλ̌ † +ζˇ ].                    (3.138)
                                      0                  0

In both cases, the idea is to verify that the left hand side of the desired equality
satisfies the characterizing properties of the right hand side (see §3.7.3). We shall
just focus on the [Gµ̌ ] variant. Since
                       hλ̌ † , ai i = hλ̌0 , ai · w0 i + 2(n(ǎi ) − 1),            (3.139)
λ̌0 ∈ (Q,n) , and ai · w0 is the negative of some simple root, it follows that λ̌ † ∈ Y+ .
                                                  48
                                                                                            •
3.9.2. Proof of Proposition 3.9.1, part 1: self-duality. Pick η̌ ∈ A−,n with J de-
fined as in (3.77). We assume [Gλ̌ † ] ∈ Vesph (η̌) is written as [Gλ̌ † ] = εJ− hε for
                                       0                                0
h∈H  esph . Write also ceˇ = εh0 ε for some h0 , h0 ∈ H
                                                      eaff . As both of these elements
                             ζ
are self-dual,
           
                                                         cζˇ ) = εh0 ε = εh0 ε = ceζˇ(3.140)
  d [Gλ̌ † ] = vη̌ hε = vη̌ hε = vη̌ hε = [Gλ̌ † ] and d(e                           ,
         0                                                     0

we may apply the fact that d is a homomorphism to conclude
                          
          d [Gλ̌ † ] ? ceζˇ = d(vη̌ hεεh0 ε) = vη̌ hεh0 ε = [Gλ̌ † ] ? ceζˇ .                      (3.141)
                      0                                                          0

3.9.3. Proof of Proposition 3.9.1, part 2: triangularity. We may write
       [Gλ̌ † ] = [vλ̌0 ] + ∑µ̌<λ̌0 oµ̌,λ̌0 [vµ̌ ]        and      cζˇ = hζˇ + ∑η̌<ζˇ pη̌,ζˇ hη̌   (3.142)
             0

for elements oµ̌,λ̌0 ∈ Z+               +
                        τ and pη̌,ǎ ∈ Zτ defined earlier. From the straightening rules
and the proof of Proposition 3.8.1, we have for any λ̌ ∈ Y+ and µ̌ ∈ Ye+
         [vλ̌ ] ? hµ̌ = [vλ̌ +µ̌ ] +      ∑ dξˇ ,λ̌ +µ̌ [vξˇ ] for some dξˇ ,λ̌ +µ̌ ∈ Zτ .         (3.143)
                                       ξˇ <λ̌ +µ̌

From here it follows that
                  [Gλ̌ † ] ? ceζˇ = [vλ̌ ] + ∑ aµ̌,λ̌ [vµ̌ ], for aµ̌,λ̌ ∈ Zτ ;                    (3.144)
                       0
                                               µ̌<λ̌

it remains to show aµ̌,λ̌ ∈ Z+
                             τ . To do so, recall a few facts about Littelmann’s path
model for representations.
3.9.4. Recollections on the path model. We apply the path model of Littelmann
[78] to the root system defined by D. e From op. cit., the character of a highest
representation is written as a positive sum over paths in the highest weight crystal
B(ζˇ ), i.e.
                                       χλ̌ :=         ∑ Ywt(p) ,                                   (3.145)
                                                    p∈B(ζˇ )

where wt(p) ∈ Ye denotes the end-point of the path. Recall also that there exists
an involution on the set ι : B(ζˇ ) \ {pζˇ }, where pζˇ is the unique path in B(ζˇ ) with
endpoint ζˇ , which has the property that
                          wt(ι(p)) = wt(p) • si for a unique i ∈ I.                                (3.146)
3.9.5. Proof of Proof of Proposition 3.9.1, part 3: straightening. Write a ≡ b to
mean a − b ∈ ⊕λ̌ ∈Y Z+   τ [Y ], i.e. it is a linear combination of Yµ̌ with µ̌ ∈ Y and the
coefficients are in Z+ τ . In this notation, the straightening rules in Proposition 4.3.2
imply that for µ̌ ∈ Y+ ,
                         (
                            0                if 0 ≤ hµ̌ + ρ̌, ai i < n(ǎi ),
               [Yµ̌ ] ≡                                                             (3.147)
                            −[Yµ̌ (1) •sa ] otherwise.
                                                         49
Lemma. [74, Lemma 1.5] In the notation of part (2) of Proposition 3.9.1
                      [Yλ̌ † +ζˇ ] ≡ −[Yλ̌ † +ζˇ •si ]    for any       i ∈ I.            (3.148)
                          0                 0


Proof. Recall λ̌ † = λ̌0 · w0 + 2(ρe∨ − ρ̌) and write µ̌ = λ̌ † + ζˇ . We compute
               hµ̌ + ρ, ai i = hλ̌0 · w0 , ai i + 2(n(ǎi ) − 1) + 1 + hζˇ , ai i         (3.149)
                             = hλ̌0 · w0 , ai i + 2n(ǎi ) − 1 + hζˇ , ai i.              (3.150)
Using that hζˇ , ai i ≥ 0 and ζˇ ∈ Ye as well as the fact that −n(ǎi ) < hλ̌0 · w0 , ai i ≤ 0,
we conclude that
                   resn(ǎi ) hµ̌ + ρ, ai i = hλ̌0 · w0 , ai i + n(ǎi ) − 1.             (3.151)

Using the definition that µ̌ (1) = µ̌ (1) − hµ̌ + ρ̌, ai iǎi we obtain
               µ̌ (1) • si = µ̌ (1) · si − ǎi = λ̌ † + ζˇ − resn(ǎi ) hµ̌ + ρ, ai i − ǎi (3.152)
                                                                                         
      = λ̌0 · w0 · si + 2(ρe∨ − ρ̌ − ǎi ) + ζˇ · si + hλ̌0 · w0 , ai i + n(ǎi ) − 1 ǎi − (3.153)
                                                                                            ǎi

                              = λ̌0 · w0 + 2(ρe∨ − ρ̌) + ζˇ · si − ǎi .                  (3.154)
The rest of the argument follows as in Lemma [74, Lemma 1.5].                                   

3.9.6. Proof of Proof of Proposition 3.9.1, part 4: conclusion. Since the oµ̌,λ̌ ∈ Z+
                                                                                    τ

                                  [Gλ̌ † ] ? ceζˇ ≡ [vλ̌ † ] ? ceζˇ .                     (3.155)
                                       0                  0

From our description of the action by ceζˇ in (3.133) and formula (3.145), this
amounts to checking that
                      [vλ̌ † ]♦χζˇ =
                          0
                                           ∑ [vλ̌ +wt(p) ] ≡ [vλ̌ +ζˇ ].
                                                     †
                                                     0
                                                                        †
                                                                        0
                                                                                          (3.156)
                                        p∈B(ζˇ )

Using the previous Lemma and what we recalled about ι in §3.9.4, we are done.

 4. g- TWISTED CANONICAL BASES AND K AZHDAN -L USZTIG POLYNOMIALS
    Recall the generic ring Zτ,g from §2.3.1 which was defined in terms of formal
parameters τ (where τ 2 = t −1 ) and the gk , k ∈ Z subject to the relations as described
in loc. cit. In this section, we introduce a ‘g-twisted’ version of the constructions
from the previous one. Under the quantum specialization (see §2.3.2) gk 7→ τ, k 6=
0 we recover the constructions from the previous section, and under the p-adic
specialization of §2.3.3), as we explain in Part II of this paper, the constructions
of this section provide information about the structure of the Whittaker module on
covers of p-adic groups.
    We keep the same conventions as at the start of §3.6. Namely, we fix a root
datum (I, ·, D), which is written D = (Y, {ǎi }, X, {ai }), and a twist (Q, n) on D
such that the twisted root datum (I, ◦(Q,n) , D)  e is of simply-connected type. Set D e=
       a∨i }, X,
(Ye , {e         ai }) and write H
              e {e               eaff := Haff (I, ◦(Q,n) , D)    esph for the corresponding
                                                           e and H
                                                     50
affine Hecke algebra and spherical Hecke algebra, respectively. Recall that the
                           eaff allows us to identify it as
Bernstein presentation for H
                                      eaff ∼
                                      H    = HW ⊗ Zτ [Ye ],                                                 (4.1)

where HW is the finite Hecke algebra of W := W (I, ·) ∼  = W (I, ◦(Q,n) ) with generators
                                               −1
Tsi , i ∈ I , or their renormalizations Hsi = τ Tsi , satisfying the braid relations and
the quadratic relations

        (Tsi − τ 2 )(Tsi + 1) = 0 or equivalently (Hsi − τ)(Hsi − τ −1 ) = 0.                               (4.2)

The key to our constructions in this section is to use a representations of the affine
Hecke algebra H eaff on a space of polynomials Zτ,g [Y ]. Such a construction was
introduced in [31, 95], and what is new here is the use of ideas from the previous
section to equip Zτ,g [Y ] with an explicit decomposition into Heaff -submodules and
an involution that allows us to introduce a g-twisted version of Kazhdan–Lusztig
theory.

4.1. Metaplectic Demazure–Lusztig operators. Our goal in this section is to
construct a representation of H    eaff on a certain space of polynomials. Our computa-
tions will take place in the ring Zτ,g [Y ] (or Zτ,g [Ye ]). We also introduce localizations
Zτ,g,m [Y ] and Zτ,g,m [Ye ] by the ideal
                                                          
                 m = 1 −Y−ea∨i , 1 − τ −2Y−ea∨i | i ∈ I ⊂ Cτ,g [Y ],                   (4.3)

and for a positive integer n > 0, define the residue map resn : Z → {0, 1, . . . , n − 1}.

4.1.1. The Chinta–Gunnells action. Following Chinta and Gunnells [30, Def. 3.1],
define
                                                                                                          
                 Yλ̌ ·sa
Yλ̌ ? sa =                   (1 − τ −2 )Y                           − τ −2 g                Y ∨ (1 −Y−ea∨ ) for λ̌ ∈ Y, a ∈ Π,(4.4)
                                                                               Q(ǎ)+B(λ̌ ,ǎ) ae −ǎ
                                                    
             1 − τ −2Y−ea∨               resn(ǎ)
                                                        B(λ̌ ,ǎ)
                                                         Q(ǎ)
                                                                     ǎ


where λ̌ ·sa denotes the right action of sa on λ̌ and Π denotes the set of simple roots
attached to D. Extend this by Zτ,g -linearity to define f ? sa for every f ∈ Zτ,g [Y ]
and use
                             f       f ? sa
                               ? sa = s for f ∈ Zτ,g [Y ], h ∈ m,                                           (4.5)
                             h        ha
to further extend this to an action ? of W : − ? sa : Zτ,g,m [Y ] → Zτ,g,m [Y ]. Note that
for a ∈ Π we have that

                ( f · h) ? sa = ( f ? sa ) · hsa for h ∈ Zτ,g [Ye ], f ∈ Zτ,g [Y ],                         (4.6)

where hsa is the usual action of sa on Zτ,g [Y ].
                                                            51
4.1.2. Metaplectic Demazure–Lusztig operators. Introduce the rational functions
                                       2                             −Y−X 2
                                   τ −1
                           b(X) = 1−Y −X
                                                and        c(X) = τ 1−YX
                                                                          .                                  (4.7)

For each a ∈ Π with corresponding simple reflection sa , we define the following
elements in Zτ,g (Y )[W ]∨ :

                             T                                a∨ ).
                                                  a∨ ) + [1]b(e
                                    e a := [sa ]c(e
                             e s := T
                                a                                                                            (4.8)

Consider now the action on Cτ,g,m [Y ] of T
                                          e a by the formulas

                             Yλ̌ · T                        a∨ )Yλ̌ .
                                           a∨ )Yλ̌ ? sa + b(e
                                   e a = c(e                                                                 (4.9)

Remark. Note that our operators T e a are the inverse of the ones in [95, eq. (4.10)]
                         −2
(if one replaces v with τ ). They also act on the right here, as opposed to the left
in op. cit.

The operators T  e a will be used to define a representation of the affine Hecke algebra
on Cτ,g [Y ] (see §4.2.1). Recall the dot action of the affine Weyl groups Waff and Weaff
                                                                                     •
on Y from 3.4.6 and (3.73), respectively, as well as the fundamental domain A−,n
for the dot action from (3.74). From the computation in [95, (4.18) and (4.12)]22,
we deduce the following formulas.

Lemma.           (1) For a ∈ Π and λ̌ ∈ Y , we have
               
               
               ghλ̌ +ρ̌,ai Q(ǎ)Yλ̌ •sa + (τ 2 − 1)  ∑  Yλ̌ −kn(ǎ)ǎ                    if hλ̌ , ai ≥ 0,
               
               
                                                    k≥0
                                                        kn(ǎ)≤hλ̌ ,ai
 Yλ̌ · T
       ea =                                                                                              (4.10)
               
               ghλ̌ +ρ̌,ai Q(ǎ)Yλ̌ •sa + (1 − τ 2 )         ∑           Yλ̌ +kn(ǎ)ǎ   if hλ̌ , ai < 0.
                                                              k>0
               
               
               
                                                        kn(ǎ)<−hλ̌ ,ai

     (2) For µ̌ = η̌ •W and i ∈ I, we have
                  
                      −1                                                            if − n(ǎi ) < hµ̌ + ρ̌, ai i < 0,
                 τ ghµ̌+ρ̌,ai i Q(ǎi )Yµ̌•si
                 
Yµ̌ · τ −1 T
           e s = τ −1 ghµ̌+ρ̌,a i Q(ǎ ) Yµ̌•s + (τ − τ −1 )Yµ̌
              i                i      i        i
                                                                                    if 0 < hµ̌ + ρ̌, ai i < n(ǎi ), (4.11)
                   −1
                     −τ Yµ̌ = −τ −1Yµ̌•si
                  
                                                                                    if hµ̌ + ρ̌, ai i = 0.

     (3) If µ̌ ∈ Y, ζˇ ∈ Ye and i ∈ I, we have
                                                                                Yζˇ ·si −Yζˇ
                                   e s ) = Yµ̌ · (τ −1 T
                (Yµ̌ Yζˇ ) · (τ −1 T  i
                                                       e s ) + (τ − τ −1 )
                                                          i                                    .         (4.12)
                                                                                  1 −Y−ǎ
Remark. Note that the formulas in (4.10) are equivalent to the ones in (4.11)
and (4.12).

    22Note that in (4.12) there is a mistake; the right hand side of the equality should be replaced by
Yλ̌ + vgQ(ǎ)Yλ̌ −ǎ
                                                      52
4.1.3. Statement of result. The following computation plays a crucial role in our
work. In making it we were inspired by the straightening formulas of [75, (1.3)]
and [53, Prop. 6.3], see [77].
Proposition. Let λ̌ ∈ Y , a ∈ Π, and n(ǎ) as in (3.18).
     (1) If hλ̌ + ρ̌, ai ≥ 0 and hλ̌ + ρ̌, ai ≡ 0 mod n(ǎ) then
                                                        
                          Yλ̌ +Yλ̌ •sa Te a = − Y +Y
                                                  λ̌ λ̌ •sa .                                     (4.13)

     (2) If 0 < hλ̌ + ρ̌, ai < n(ǎ), then
                                                                             
            Yλ̌ − ghλ̌ +ρ̌,ai Q(ǎ)Yλ̌ •sa Tea = − Y − g
                                                    λ̌   hλ̌ +ρ̌,ai Q(ǎ) λ̌ •sa .
                                                                         Y                        (4.14)

     (3) If hλ̌ + ρ̌, ai > n(ǎ) but j := hλ̌ + ρ̌, ai 6≡ 0 mod n(ǎ), then setting λ̌ (1) :=
         λ̌ − resn(ǎ) (hλ̌ + ρ̌, ai) ǎ,
                                                                                                                    
 Yλ̌ − g j Q(ǎ) Yλ̌ •sa − g j Q(ǎ)Yλ̌ (1) +Yλ̌ (1) •sa Te a = − Y − g j Q(ǎ) Y
                                                                   λ̌            λ̌ •sa − g        Y
                                                                                            j Q(ǎ) λ̌ (1) +Y            .
                                                                                                             λ̌ (1) •sa (4.15)

The proof will occupy the remainder of this section. Set m := n(ǎ) ≥ 1, ae∨ := mǎ,
then
           hλ̌ + ρ̌, ai = j + md, where j ∈ {0, 1, . . . , m − 1} and d ∈ Z.                      (4.16)
Let us also record here that hλ̌ • sa , ai = −hλ̌ , ai − 2.
4.1.4. Proof of Proposition 4.1.3 (1). In case (1), we must have j = 0 and d ≥ 0.
Assume further d = 0 so that hλ̌ + ρ̌, ai = 0 and hence
                       λ̌ • sa = (λ̌ + ρ̌)sa − ρ̌ = λ̌ + ρ̌ − ρ̌ = λ̌ .                           (4.17)
Since hλ̌ , ai = hλ̌ • sa , ai = −1 we may apply the second case of (4.10) to conclude
that
                                              
                                          λ̌ •sa Ta = −Yλ̌ ,
                               Yλ̌ Tea = Y        e                             (4.18)
where we used ghλ̌ +ρ̌,ai Q(ǎ) = g0 = −1. Next, assume that d ≥ 1 in (4.16) and
j = 0, so
                hλ̌ , ai = md − 1 ≥ 0 and hλ̌ • sa , ai = −md − 1 < 0.                            (4.19)
Applying the first and second case of (4.10) to Yλ̌ and Yλ̌ •sa = Yλ̌ −dmǎ , resp., we
find
                                    + (τ 2 − 1) ∑ Y
                    
                 Y T  e a = −Y                                  ∨ , and          (4.20)
                       λ̌                  λ̌ •sa                         λ̌ −ke
                                                                               a
                                                              0≤k≤d−1
                       
                 Yλ̌ •sa Te a = −Y + (1 − τ 2 )              ∑ Yλ̌ −d ae +k ae .
                                                                          ∨     ∨                 (4.21)
                                  λ̌
                                                           0<k≤d

If we add the above expressions, the terms in the sums over k cancel, which leaves
with
                                                      
                      Yλ̌ +Yλ̌ •sa Te a = − Y +Y
                                             λ̌    λ̌ •sa .                 (4.22)
                                                    53
4.1.5. Proof of Proposition 4.1.3 (2). In case (2), we must have d = 0 and so
j = hλ̌ + ρ̌, ai > 0. Hence hλ̌ , ai ≥ 0 and we may apply the first case of (4.10) to
obtain
                                                       2
                           
                                            λ̌ •sa + (τ − 1)Yλ̌ .
                        Yλ̌ Te a = g jQ(ǎ)Y                                       (4.23)
                                             
On the other hand, to compute Yλ̌ •sa T          e a we note (see after (4.16)) that hλ̌ •
sa , ai = −( j + 1) < 0 so that the second case of (4.10) yields
                                     
                               Yλ̌ •sa Te a = g− jQ(ǎ)Y ,                         (4.24)
                                                         λ̌

since the sum over k in the second expression of (4.10) has no terms since j + 1 ≤
m. One then has
                          
                                                                             2
       g jQ(ǎ)Yλ̌ •sa −Yλ̌ Te a = g jQ(ǎ) g− jQ(ǎ)Y − g jQ(ǎ)Y
                                                      λ̌          λ̌ •sa − (τ − 1)Yλ̌(4.25)
                                                          
                                 = − g j Q(ǎ)Yλ̌ •sa −Yλ̌ ,                         (4.26)

where we used that g jQ(ǎ) g− jQ(ǎ) = τ 2 whenever j 6= 0 and Q(ǎ) 6= 0 mod n (see
§2.3.1).

4.1.6. Proof of Proposition 4.1.3 (3). In case (3), we have d ≥ 1 and also j 6= 0
in (4.16). Hence hλ̌ , ai = j + md − 1 > 0, so that we may apply the first case of
(4.10) to write
                                                   2
                    
                                        λ̌ •sa + (τ − 1) ∑ Yλ̌ −ke
                      e a = g j Q(ea∨ )Y
                 Yλ̌ T                                           a∨ .       (4.27)
                                                                        0≤k≤d

Consider next λ̌ (1) • sa = (λ̌ − jǎ)sa − ǎ = λ̌ − md ǎ from which we conclude
                    hλ̌ (1) • sa , ai = −(λ̌ (1) , a) + 2 = j − nd − 1 < 0                            (4.28)
since md ≥ m and 0 < j < m. Hence we can apply the second case of (4.10) to
obtain
                                   e a = g j Q(ǎ)Y (1) + (1 − τ 2 )
                     (Yλ̌ (1) •sa )T                                       ∑         Yλ̌ (1) •sa +kea∨ =(4.29)
                                                   λ̌
                                                                           k>0
                                                                        km<md− j+1

g j Q(ǎ)Yλ̌ (1) + (1 − τ 2 )    ∑ Yλ̌ −dea +kea = g j Q(ǎ)Yλ̌
                                            ∨    ∨                (1)   + (1 − τ 2 )                .
                                                                                        ∑ Yλ̌ −kea (4.30)
                                                                                                     ∨
                                0<k<d                                                  0<k<d

Hence, we find that
                                                                                      
                                                                   2
    Y +Y (1)
        λ̌     λ̌  Te a = g j Q(ǎ) Y
                    •sa                     λ̌ •sa +Yλ̌ (1)   + (τ   − 1)  Yλ̌ +Yλ̌ (1) •sa .         (4.31)

If we now define
                          A := Yλ̌ +Yλ̌ (1) •sa and B := Yλ̌ •sa +Yλ̌ (1) ,                           (4.32)
we may restate what we have proven as follows:
                                    e a = g jQ(ǎ) B + (τ 2 − 1)A.
                                 (A)T                                                                 (4.33)
                                                     54
Recalling the quadratic relation (4.36), we may apply T
                                                      e a to the previous relation to
get
                  (g jQ(ǎ) B)T                        e a = τ 2 A.
                                      e a − (τ 2 − 1)A)T
                              e a = (AT                                            (4.34)
Using g jQ(ǎ) g− jQ(ǎ) = τ 2 we get (B)T
                                         e a = g− jQ(ǎ) A, hence we conclude using (4.33)
that A − g jQ(ǎ) B is an eigenvector of Te a with eigenvalue −1 as desired.

Remark. In Proposition 4.1.3 we essentially compute eigenvectors with eigenvalue
−1 for the operators T e a . These are used to define a certain “exterior power”
quotient in §4.3.2 which models the metaplectic spherical Gelfand–Graev repre-
sentation. A similar exterior power is known to model the representations theory
of quantum groups at a root of unity; we’ll make this more precise in §7. One
may similarly compute g-twisted eigenvectors with eigenvalue τ 2 for Te a and use
them to define “symmetric power” quotients. This does not have any immediate
applications to the p-adic setting, so we will not pursue it here.
4.1.7. The classical straightening rules. Note that Proposition 4.1.3 holds for any
Q as defined in 3.2.5, including when Q(ǎ) ≡ 0 mod n. In this case (owning to
gmk = −1), equations (4.13) and (4.14) are the same and equation (4.15) is a linear
combination of (4.13) for λ̌ and λ̌ (1) . The relations become classical in nature,
and the straightening rules we develop in Proposition 4.3.2 will be the same to
the classical straightening rules in (1.4). This is consistent with the fact that when
Q(ǎ) ≡ 0 mod n for all ǎ ∈ Π̌, then the corresponding metaplectic n-cover of G(F)
is just the direct product G(F) × µn .
4.2. The metaplectic polynomial representation V.
4.2.1. The representation V. Let V := Zτ,g [Y ] be the space of polynomials in the
variables Yλ̌ , λ̌ ∈ Y . The elements in Zτ [Ye ] act on V by translations, i.e.
                        Yλ̌ ·Yµ̌ = Yµ̌+λ̌ for µ̌ ∈ Ye , λ̌ ∈ Y.                    (4.35)
                                                e a preserves the space V. In fact,
From the formulas in Lemma 4.1.2, one sees that T
one has the following.
Proposition. Keep the notation above and recall the space Ve from §3.6.5 equipped
         eaff -action.
with its H
    (1) The formulas (4.35) together with Yλ̌ · Tsi := Yλ̌ · T
                                                             e a for i ∈ I, λ̌ ∈ Y define
                                                                i

         an action of Haff on V.
                       e
    (2) The quantum specialization q : Zτ,g → Zτ induces an isomorphism, which
                                                                      ∼
                                                                      =
         we continue to denote by the same name, q : Zτ ⊗Zτ,g V −→ Ve that is equi-
                                     eaff -actions.
         variant with respect to the H
                                                                    e a | i ∈ I}
Proof. From the arguments in [31, Prop. 3.1] we know the operators {T  i
satisfy the braid relations as well as the quadratic relation
                                        e a + τ 2 for a ∈ Π.
                        e 2a = (τ 2 − 1)T
                        T                                                          (4.36)
                                             55
This shows that the given formulas define an action on V. A more conceptual proof
of this fact that does not use the Chinta-Gunnells action is given in [100, Theorem
3.7]. The second part follows by observing that the formulas in Lemma 4.1.2
reduce to the formulas for T e [a under the quantum specialization.               

4.2.2. Decomposition of V. In analogy with the constructions of §3.6.1, for each
       •
η̌ ∈ A−,n , define the right H
                             eaff -module

                         eaff := {w ∈ V | w = Yη̌ · h for some h ∈ H
          V(η̌) := Yη̌ · H                                         eaff }.                  (4.37)
The following result follows immediately from the explicit formulas in Lemma
4.1.2.
                                •
Proposition. For each η̌ ∈ A−,n , V(η̌) is a Zτ,g [Ye ]-module of rank equal to the
cardinality of the orbit η̌ • W, and we have V(η̌) = ζˇ ∈η̌•W Yζˇ · Zτ,g [Ye ] and a
                                                         L

decomposition of V into Heaff -submodules

                            V := Zτ,g [Y ] ∼
                                                M
                                           =             V(η̌).                             (4.38)
                                                   •
                                               η̌∈A−,n


   It is then clear that a basis of V(η̌) is given by Yµ̌ for µ̌ ∈ η̌ • W
                                                                        eaff .

                                   •
4.2.3. The basis vµ̌ . Let η̌ ∈ A−,n and J as in (3.77). In analogy with the construc-
tion of the elements vµ̌ from §3.6.1, we introduce elements vµ̌ for µ̌ ∈ η̌ • Weaff by
the formula
  vµ̌ := Yη̌ Hσ Yβ̌   when   µ̌ = η̌ • σ t(β̌ ), σ t(β̌ ) ∈ J W
                                                              eaff , σ ∈ W, β̌ ∈ Ye . (4.39)
                                              
where we recall the action of Hsi = τ −1 Te s on Zτ,g [Y ] is computed in Lemma 4.1.2.
                                             i



Lemma. Let µ̌ = η̌ • σ t(β̌ ) with σ ∈ J W of minimal length and β̌ ∈ Ye . Then the
new basis satisfies
     vµ̌ = κ(µ̌)Yµ̌     where     κ(µ̌) =           ∏          (τ −1 ghη̌+ρ̌,aiQ(ǎ) ) ∈ Zτ,g(.4.40)
                                            a∈R+ ,(a)σ −1 >0

Proof. By definition we have that vη̌ = Yη̌ . If µ̌ = η̌ • σ with σ ∈ JW of minimal
length, then we may use induction on the length of σ and the argument follows by
using the first case of (4.11) repeatedly. If µ̌ = η̌ • σ t(β̌ ), then κ(µ̌) only depends
on σ .                                                                                 
Remark. By construction, if we replace the Yµ̌ in Lemma 4.1.2 with vµ̌ , we obtain
the exact relations from the previous section, namely (4.11) becomes (3.102) with
vµ̌ replaced by vµ̌ . In other words, all the Gauss sum contributions are absorbed
into the vµ̌ . Finally, let us comment that under the quantum specialization of (2.6),
κ(µ̌) is mapped to 1.
                                               56
4.2.4. Examples. Consider the PGL3 root datum D with simple coroots α̌1 , α̌2 ,
simple roots α1 , α2 such that hα̌i , α j i = −1 + 3δi j and ρ̌ = α̌1 + α̌2 . Let D(Q,n) be
the twist of D with n = 6 and Q(α̌1 ) = Q(α̌2 ) = Q. Consider η̌ = −2α̌1 − 2α̌2 ∈
  •
A−,n . Then we have by using the first case of Lemma 4.1.2(2):
v−2α̌1 −2α̌2 = Y−2α̌1 −2α̌2 ,    v−α̌1 −2α̌2 = τ −1 g−QY−α̌1 −2α̌2 ,          v−2α̌1 −α̌2 = τ −1 g−QY−2α̌1 −α̌2 ,
v−α̌1 = τ −2 g−Q g−2QY−α̌1 , v−α̌2 = τ −2 g−Q g−2QY−α̌2 , v0 = τ −3 g−Q g−2Q g−QY0 .
These are all the elements vµ̌ with µ̌ ∈ η̌ •W . The rest of the elements vµ̌ in V(η̌)
can be obtained by multiplying with elements Yβ̌ for β̌ ∈ Ye . If instead we work
with η̌ 0 = −3α̌1 − 2α̌2 , then we have
v−3α̌1 −2α̌2 = Y−3α̌1 −2α̌2 ,    v−2α̌2 = τ −1 g−3QY−2α̌2 ,             v2α̌1 +3α̌2 = τ −2 g−3Q g−3QY2α̌1 +3α̌2 .
4.3. g-twisted canonical bases. We now construct an involution on the space V
and use it to study a version of Kazhdan–Lusztig theory on a spherical quotient
Vsph of V.
                                                            •
4.3.1. The involution on V(η̌). Let η̌ ∈ A−,n and J as in (3.77). We would like
to define an involution on V(η̌) which is compatible with the action of H eaff and
reduces to our previous involution on V (η̌) under the quantum specialization. We
                                      e
begin with the following simple observation which follows from Lemma 4.1.2(2)
                                                                 •
and the same ideas as in the remark concluding §3.7.1. For η̌ ∈ A−,n , we have
       e w = τ `(w0 ) (−τ)−`(wJ0 ) κ(η̌ • w0 )Yµ̌•w
 Yη̌ · T                                                            where   κ(η̌ • w0 ) =        ∏       (τ −1 ghη̌+ρ̌,aiQ(ǎ) ),
          0                                        0
                                                                                               a∈R+ ,
                                                                                            (a)(wJ0 )−1 >0

or equivalently in terms of the basis vµ̌ introduced in §4.2.3, we may write
                                                                J
                                vµ̌ · Hw0 = (−τ)−`(w0 ) vµ̌•w0 .                                      (4.41)
Inspired by (3.121) and the computation in Remark 3.7.1, we now set for µ̌ ∈
η̌ • W
     eaff either
                                                   J
                                                                   e w )−1 or equiv.
    d(Yµ̌ ) := Yµ̌ := τ `(w0 ) (−τ)−`(w0 ) κ(µ̌ • w0 )κ(µ̌)Yµ̌•w0 (T  0           (4.42)
                                 J
    d(vµ̌ )    =     (−τ)−`(w0 ) vµ̌•w0 · Hw−1
                                             0
                                               .                                                      (4.43)
The equivalence of the two expressions is immediate from (4.40) and the fact that
                           •
κ(µ̌) = κ(µ̌)−1 . If η̌ ∈ A−,n , then Yη̌ = Yη̌ follows from (3.122).
Proposition. The formula (4.42) defines an involution on V(η̌) which satisfies
                      d(v · h) = v · h       for       v ∈ V(η̌), h ∈ H
                                                                      eaff .                          (4.44)

Proof. First suppose h = Yζˇ with ζˇ ∈ Ye and w = vµ̌ for any µ̌ ∈ η̌ • W
                                                                        eaff . From
(3.84), we have Yζˇ = Hw0 Yζˇ ·w0 Hw−1
                                     0
                                       , and we wish to show that
                                                            J
              d(vµ̌ Yζˇ ) = d(vµ̌+ζˇ ) = (−τ)−`(w0 ) v(ζˇ +µ̌)•w0 Hw−1
                                                                     0
                                                                       is equal to
                                         J
              d(vµ̌ )Yζˇ = (−τ)−`(w0 ) vµ̌•w0 Hw−1
                                                 0
                                                   Hw0 Yζˇ ·w0 Hw−1
                                                                  0
                                                                    .
                                                       57
Since (ζˇ + µ̌) • w0 = µ̌ • w0 + ζˇ · w0 , (4.44) follows for h = Yζˇ . Suppose now that
                                     •
h = Hsi , i ∈ I and µ̌ = η̌ ∈ A−,n . It suffices to show show
                         d(vη̌ · Hsi ) = d(vη̌ ) · Hsi = vη̌ · Hs−1
                                                                 i
                                                                    .                            (4.45)
Now d(vη̌ · Hsi ) may be computed using Lemma 4.1.2(2) as follows
                     (         J
                      (−τ)−`(w0 ) vη̌•si w0 Hw−1    if hη̌ + ρ̌, ai i 6= 0
     d(vη̌ · Hsi ) =       −`(wJ)      −1
                                               0
                                                 −1
                                                                           .                     (4.46)
                      (−τ)     0  (−τ )vη̌•w0 Hw0   if hη̌ + ρ̌, ai i = 0
The rest of the proof is an exercise in Coxeter combinatorics with the use of Lemma
4.1.2 (2). Note that the involutive property of d follows from (4.44) since each
v inV(η̌) is of the form Yη̌ · h for some h ∈ H
                                              eaff .                              
                                                                                             •
4.3.2. On the space Vsph (η̌). Recall the element ε from §3.5.2. For η̌ ∈ A+,n , we
define the Zτ,g -module
                                                      eaff } = SpanZ {[vµ̌ ], µ̌ ∈ η̌ • W
Vsph (η̌) := V(η̌) · ε := SpanZτ,g {[Yµ̌ ], µ̌ ∈ η̌ • W             τ,g
                                                                                        eaff },
                                                                                             (4.47)
where [v] := v · ε ∈ V for any v ∈ V(η̌). Here, the action of ε on v is obtained by
writing ε = εI+ as in (3.39) and identifying the action of Hw , w ∈ W with that of
the operator τ −`(w) T
                     e w from Lemma 4.1.2. As with [vµ̌ ], the elements [Yµ̌ ] are not
independent and satisfy the straightening rules below. Since εHsi = τε,
                                         e s = τ 2 [Yµ̌ ] for i ∈ I.
                                [Yµ̌ ] · T                                                       (4.48)
                                            i

As a consequence of Proposition 4.1.3 and (4.48), we obtain the following.
Proposition. If a = ai , i ∈ I, one has the following relations for elements [Yλ̌ ] (resp.
[vλ̌ ]), λ̌ ∈ η̌ • W
                   eaff :
    (1) If hλ̌ + ρ̌, ai ≥ 0 and hλ̌ + ρ̌, ai ≡ 0 mod n(ǎ) then
                    [Yλ̌ ] + [Yλ̌ •sa ] = 0       or         [vλ̌ ] + [vλ̌ •sa ] = 0.            (4.49)

    (2) If 0 < hλ̌ + ρ̌, ai < n(ǎ), then
                [Yλ̌ ] = ghλ̌ +ρ̌,ǎiQ(ǎ) [Yλ̌ •sa ]        or     [vλ̌ ] = τ[vλ̌ •sa ].        (4.50)

    (3) If hλ̌ + ρ̌, ai > n(ǎ) , j := hλ̌ + ρ̌, ai 6≡ 0 mod n(ǎ), then setting λ̌(1) :=
        λ̌ − resn(ǎ) (hλ̌ + ρ̌, ai) ǎ
              [Yλ̌ ] − g j Q(ǎ) [Yλ̌ •sa ] − g j Q(ǎ) [Yλ̌ (1) ] + [Yλ̌ (1) •sa ] = 0 or
                                                                                                 (4.51)
              [vλ̌ ] − τ[vλ̌ •sa ] − τ[vλ̌ (1) ] + [vλ̌ (1) •sa ] = 0.
                                                                                    •
4.3.3. On the space Vsph and its canonical bases. Fix η̌ ∈ A−,n . Using the straight-
ening rules above, we may show that
Corollary. The collection {[Yµ̌ ]} for µ̌ ∈ Y+ ∩ η̌ • W
                                                      eaff forms a basis of Vesph (η̌),
and similarly for {[vµ̌ ]}.
                                                        58
If we now define the Zτ,g -module
                                                M
                               Vsph :=                 Vsph (η̌),                                (4.52)
                                                •
                                            η̌∈A−,n

then we find that, as an Zτ,g -module, Vsph has a basis {[Yλ̌ ]} or {[vλ̌ ]} where λ̌
ranges over Y+ . The involution d : V(η̌) → V(η̌) studied in §4.3.1 induces an invo-
lution on the subspace Vsph (η̌) by using Proposition 4.3.1 and the fact that ε = ε.
We have
                  d([vµ̌ ]) := d(vµ̌ ε) = d(vµ̌ )ε for µ̌ ∈ η̌ • W
                                                                 eaff .                          (4.53)
Combining the arguments in Proposition 3.7.2 and Proposition 4.3.1, we obtain the
following formula for the involution d : V(η̌) → V(η̌) restricted to the subspace
Vsph (η̌),
                                      J                     J
             d([vλ̌ ]) = (−1)`(w0 ) τ −`(w0 )−`(w0 ) [vλ̌ •w0 ] or equivalently,                 (4.54)
                                  `(wJ0 )       −`(w0 )−`(wJ0 )
             d([Yλ̌ ]) = (−1)               τ                     κ(λ̌ )κ(λ̌ • w0 )[Yλ̌ •w0 ].   (4.55)
The involution d defined above naturally extends to one on Vsph .

Proposition. For each λ̌ ∈ Y+ , there exist unique self-dual elements [Gλ̌ ], [G− ] ∈
                                                                                   λ̌
                 •
Vsph (η̌) (η̌ ∈ A+,n is such that λ̌ = η̌ • w for w ∈ W
                                                      eaff ) which satisfy the triangu-
larity condition
                [Gλ̌ ] = [vλ̌ ] + ∑µ̌<λ̌ aµ̌,λ̌ [vµ̌ ], for a+ ∈ Z+
                                                                  τ and
                                                                     µ̌,λ̌
                                                                                                 (4.56)
                [G− ] = [vλ̌ ] + ∑µ̌<λ̌ aµ̌,λ̌ [vµ̌ ], for a− ∈ Z−
                                                                 τ .
                  λ̌                                                 µ̌,λ̌

By the way they were constructed, one can verify that a± = o± are the parabolic,
                                                       µ̌,λ̌ µ̌,λ̌
singular Kazhdan–Lusztig polynomials from (3.127). Writing (4.56) in terms of
the basis [vµ̌ ] = κ(µ̌)[Yµ̌ ] we find relations
                [Gλ̌ ] = κ(λ̌ )[Yλ̌ ] + ∑µ̌<λ̌ κ(µ̌)o+ (τ −1 )[Yµ̌ ] and
                                                            µ̌,λ̌
                                                                                                 (4.57)
                [G− ] = κ(λ̌ )[Yλ̌ ] + ∑µ̌<λ̌ κ(µ̌)o− (τ −1 )[Yµ̌ ]
                  λ̌                                         µ̌,λ̌

Defining [Gλ̌ ], [G− ] to satisfy [Gλ̌ ] = κ(λ̌ )[Gλ̌ ] and [G− ] = κ(λ̌ )[G− ], the previous
                   λ̌                                         λ̌            λ̌
equations become
              [Gλ̌ ] = [Yλ̌ ] + ∑µ̌<λ̌ κ(µ̌)κ(λ̌ )−1 o+ (τ −1 )[Yµ̌ ] and
                                                   µ̌,λ̌
                                                                                                 (4.58)
                −
              [G ] = [Yλ̌ ] + ∑µ̌<λ̌ κ(µ̌)κ(λ̌ ) o− (τ −1 )[Yµ̌ ].
                                                −1
                λ̌                                 µ̌,λ̌

We shall refer to [Gλ̌ ] and [G− ] as the canonical basis in Vsph (η̌) and [Gλ̌ ], [G− ] as
                               λ̌                                                    λ̌
the g-twisted canonical bases. We also set
                             g ±      κ(µ̌) ±
                              o :=          o (τ ±1 )                                            (4.59)
                               λ̌ ,µ̌ κ(λ̌ ) µ̌,λ̌
and refer to these as g-twisted parabolic, singular Kazhdan–Lusztig polynomials.
                                                     59
4.4. g-twisted Littlewood–Richardson theory. Recall the spherical subalgebra
Hesph := ε H eaff ε introduced in §3.5.3. It is equipped with two bases, e    hλ̌ := εYλ̌ ε and
ceλ̌ , both indexed by λ̌ ∈ Ye+ . Under the Satake isomorphism S : H          esph → Zτ [Ye ]W
we have S(hλ̌ ) is given by the formula (3.91) and S(e        cλ̌ ) = χλ̌ the Weyl character,
see (3.92). The Zτ,g -modules Vsph (η̌) and Vsph can be equipped with a right H             esph
action, denoted by ?, and defined as in §3.5.4. We shall also write ♦ for the action
of Zτ [Ye ]W as in (3.130), i.e.
                        w♦ f = v ? S−1 ( f ) for w ∈ Vsph , f ∈ Hesph .                  (4.60)

                 hλ̌ . Let [Yµ̌ ] := Yµ̌ ε ∈ Vsph (η̌) for µ̌ ∈ Y+ ∩ η̌ • W
4.4.1. Action of e                                                        eaff . From §4.3.2
                                         f µ̌) ·Y ]
          [Yµ̌ ] ? hλ̌ = Yµ̌ · εYλ̌ ε = [CS(     λ̌        for     λ̌ ∈ Ye+ , µ̌ ∈ Y+ ,   (4.61)
where we have written CS(                              f µ̌) ∈ Vsph are precisely
                         f µ̌) := Yµ̌ ε. The elements CS(
the values of the unramified spherical Whittaker function on metapletic covers
(see [95] and the references therein). Alternatively, one may write the above ex-
pression in terms of the (Hall-Littlewood) polynomials S(hλ̌ ) introduced in (3.91),
                                 [Yµ̌ ] ? hλ̌ = [Yµ̌ · S(hλ̌ )],                          (4.62)
where again one needs to use the straightening rules to rewrite the above in terms
of the basis {[Yµ̌ ]}µ̌∈Y+ . One may prove a version of Proposition 3.8.1 and
                           [Yλ̌ ] ? ceζˇ = [Yλ̌ ]♦χζˇ = [Yλ̌ · χζˇ ].                     (4.63)
4.4.2. g-twisted Littlewood–Richardson polynomials. If we alternatively expand
the product [Yµ̌ ] ? cλ̌ for µ̌, λ̌ as in the previous paragraph, we obtain an expression
of the form
                                        ζˇ                    ζˇ
                [Yλ̌ ] ? cζˇ = ∑ g Q         [Y ] for some g Q ∈ Zτ,g .                   (4.64)
                                        µ̌,λ̌ µ̌              µ̌,λ̌
                             µ̌∈Y+

                       ζˇ
We call the elements g Q     g-twisted Littlewood–Richardson polynomials and un-
                       µ̌,λ̌
                                                              ζˇ     ζˇ
der the quantum specialization, one can easily show that q(g Q ) = Q , where
                                                              µ̌,λ̌  µ̌,λ̌
the latter are the polynomials defined in (3.133). In fact, we can be even more
precise. From Remark 4.2.3 it follows that the elements [vλ̌ ] will satisfy equa-
tion (3.133) on the nose, and by comparing that with (4.64) and the use of (4.40)
we get
                                  ζˇ                     ζˇ
                             g
                                 Q      = κ(µ̌)κ(λ̌ )−1 Q .                               (4.65)
                                  µ̌,λ̌                  µ̌,λ̌

4.4.3. g-twisted Tensor Product Theorems. We now consider the action of H       esph on
                        −
the new bases [Gµ̌ ], [Gµ̌ ], µ̌ ∈ Y+ of the space Vsph that were introduced in §4.3.3.
The action is entirely determined from the following g-twisted analogue of the
tensor-product theorem [77], [74].
Proposition. Let λ̌ ∈ Y+ be written uniquely as λ̌ = λ̌0 + ζˇ with λ̌0 ∈ (Q,n) and
ζˇ ∈ Ye+ .
                                                  60
    (1) We have [Gλ̌0 ] ? ceζˇ = [Gλ̌0 +ζˇ ]
    (2) Writing λ̌0† := λ̌0 · w0 + 2(ρe∨ − ρ̌) we have

                                 [G−† ] ? ceζˇ = [Gλ̌ † +ζˇ ].                            (4.66)
                                    λ̌0               0


The proof given in Section §3.9 carries over here, where one uses the properties
of the involution d from Proposition 4.3.1 as well as the fact that the straightening
relations (see Proposition 4.3.2) when viewed with respect to the [vλ̌ ] basis look
the same as their ‘quantum’ counterparts from the previous section.

Remark. The Proposition holds if we replace the bases [Gλ̌ ] and [G− ] with the
                                                                                     λ̌
bases [Gλ̌ ] and [G− ], respectively. To see this, note that [Gλ̌ ] = κ −1 (λ̌ )[Gλ̌ ] and
                     λ̌
[Gλ̌0 ] = κ −1 (λ̌0 )[Gλ̌0 ] by definition, and use the fact that κ(λ̌ ) = κ(λ̌0 ) because
λ̌ − λ̌0 = η̌ ∈ Ye+ . The same argument works for the [G− ] basis.
                                                                   λ̌



Part 2. p-adic models
   Throughout this part, we let (I, ·, D)be a root datum with D = (Y, {ǎi }, X, {ai })
assumed to be of simply-connected type. Let (Q, n) be a twist as in §3.2.5 and
(I, ◦(Q,n) , D)
             e the corresponding twisted root datum as in §3.2.6 again assumed to be
of simply-connected type. Write D               a∨i }, X,
                                     e = (Ye , {e         ai }). Both simply-connected
                                                       e {e
assumptions can be removed (for the purposes of this part) with known techniques,
though the constructions become a bit more notationally involved. Denote also by

                Waff := Waff (I, ◦, D)         and    eaff := Waff (I, ◦(Q,n) , D)
                                                      W                         e         (4.67)

the affine Weyl groups attached to D and D.   e Again, by our assumptions both are
Coxeter groups and we adopt the same terminology here as in §3.4. On occasion,
we write A (resp. A) e for the Cartan matrix attached to (I, ·) (resp. (I, ◦(Q,n) )) and
Aaff and A
         e aff for their untwisted affinizations (see §3.1.4).


 5. R ECOLLECTIONS ON p- ADIC GROUPS , THEIR COVERS , AND ASSOCIATED
                           H ECKE ALGEBRAS
   In this section, we recall some facts about (covers of) p-adic groups and their
associated Hecke algebras.

5.1. Groups attached to root datum. Throughout this section F will denote an
arbitrary field. Denote by G := GD the corresponding split, simple algebraic group
of simply-connected type whose points over any field F will be denoted as G(F) :=
GD (F). We review a few details of this construction following [115], and adopt
the notation in §3.2.4 to describe the roots, weights, etc. associated to (I, ·, D).
                                                 61
5.1.1. Torus H. The group G comes equipped with a (split) torus H such that
H(F) ∼= Hom(X, F ∗ ). For any s ∈ F and λ̌ ∈ Y we write sλ̌ ∈ H(F) for the element
which sends µ ∈ X to shλ̌ ,µi . As D was assumed simply-connected, Y has basis
Π̌ and it follows that every element in H(F) may be written uniquely as ∏i∈I sǎi i
with si ∈ F ∗ . There is a natural action of W := W (I, ·) on H(F) induced from the
corresponding action of W on X, and for s ∈ W and h ∈ H(F) we denote this action
by s(h) ∈ H(F).

5.1.2. Unipotent subgroups. For each a ∈ R there exists a subgroup Ua ⊂ G and
an isomorphism23 xa : F → Ua (F). Recall that a nilpotent set of roots Ψ ⊂ R is a
subset such that if a, b ∈ Ψ and a+b ∈ R, then a+b ∈ Ψ as well. For a nilpotent set
of the form {a, b}, we write [a, b] = (Na + Nb) ∩ R and also ]a, b[:= [a, b] \ {a, b}.
For each nilpotent pair {a, b}, there exist constants k(a, b; c) that can be computed
explicitly from D with c ∈]a, b[ such that [xa (s), xb (t)] = ∏c xc (k(a, b; c)smt n ) for
a, b, c ∈ R+ and where the products is taken over roots c = ma + nb with m, n ≥
1. For any nilpotent set Ψ ⊂ R, there exists a subgroup UΨ ⊂ G equipped with
inclusions Ua → UΨ and such that: i) UΨ (C) is the unipotent group corresponding
to the nilpotent Lie algebra defined by Ψ; and ii) for any order on Ψ, we have an
isomorphism of schemes, ∏a∈Ψ Ua → UΨ . The sets R± are clearly nilpotent, and
we write U := UR+ and U− := UR− for the corresponding ‘positive’ and ‘negative’
unipotent subgroups of G. Often we drop the + from the positive case.

5.1.3. Some relations. For each a ∈ R, consider elements in G(F),
 wa (s) := xa (s)x−a (−s−1 )xa (s) for x ∈ F ∗ and ha (s) := wa (s)wa (1)−1 for s ∈ F ∗ . (5.1)
Note that wa (s)−1 = wa (−s).Write for ẇa := wa (−1). The following holds in
G(F):
     • txa (s)t −1 = xa (t(a)s) for t ∈ H(F) = Hom(X, F ∗ ) and s ∈ F and a ∈ Π ⊂
       X.
     • For a ∈ Π and t ∈ H(F), ẇat ẇ−1 a = sa (t) for sa ∈ W the simple reflection
       in W corresponding to a.
     • For a ∈ Π and z ∈ F ∗ , we have ha (z) = zǎ , where the latter elements were
       described in §5.1.1.
     • For a ∈ Π, b ∈ R and x ∈ F, we have ẇa xb (s)ẇ−1  a = xwa (b) (η(a, b)s) for
       some η(a, b) = ±1 that can be determined explicitly from D (cf. [87,
       Lemma 5.1(c)]).

5.1.4. N and the Weyl group. Denote by by N := hwa (s) | a ∈ Π, s ∈ F ∗ i and note
the above relations imply H(F) ⊂ N. Then the map W (A) → N which sends si 7→
ẇai induces an isomorphism of groups W → N/H(F). Note that the lifts ẇa satisfy
the braid relations (see [114, Proposition 3]) so that for w ∈ W with reduced de-
composition w = si1 · · · sik we may unambiguously define ẇ := ẇai1 · · · ẇaik ∈ G(F).
An explicit set of relations which the generators satisfy is also known (see [113]).

   23To define x , a further choice is needed to fix some signs, and we refer to [115] for more details.
                a
                                                  62
5.1.5. BN-pairs. Let B be the subgroup generated by U and H. We know that
B(F) = U(F)oH(F). In an analogous way, we may define B− using U− . The tuple
(G(F), B(F),
N, S) where S := {ẇa , a ∈ Π} satisfies the condition of a Tits system or BN-pair
([14, Def.1, Chap IV, §2.1]) and hence one has Bruhat decompositions for the
group G(F). We can replace B with B− and obtain a (conjugate) BN-pair.

5.1.6. Attached to the chosen twist Q as in §3.2.5 and an abelian group A with
bilinear Steinberg symbol (·, ·) : F ∗ × F ∗ → A as in §2.2.2, one can construct a
                                                                      p
universal covering group E fitting into an exact sequence 0 → A → E → G(F) → 1.
We follow the approach of Matsumoto [87], but adapt the terminology of [26]
where the construction of covers for general reductive groups is given, and review
a few aspects of this construction following [97] which treats the Kac-Moody (but
simply-connected) case in this same notation.

5.1.7. The torus H.
                  e There exists a subgroup H      e ⊂ E fitting into a sequence 0 →
A → H → H(F) → 1. More concretely, the group H
      e                                              e is generated by A and symbols
                              ∗
ha (s) with a ∈ Π and s ∈ F and subject to the relations that A ⊂ H
e                                                                      e is an abelian
subgroup, and that for ǎ, b∨ ∈ Π̌ and s,t ∈ F ∗ :
                                                                              ∨
     ha (s)e
     e           ha (st)−1 = (s,t)Q(ǎ)
           ha (t)e                        and   [e       hb (t)] = (s,t)B(ǎ,b ) .
                                                 ha (s), e                           (5.2)

5.1.8. Some relations in E. Next, we note that there exists a homomorphism U(F)± →
E which splits the map p from (5.1.6). Abusing notation slightly, we shall hence-
forth write xa (s) for a ∈ R and s ∈ F to mean the corresponding element in E.
Define elements w  ea (s) := xa (s)x−a (−s−1 )xa (s) ∈ E, and then set λa := w
                                                                             ea (−1).
The elements λa satisfy the braid relations and p(λa ) = ẇa for each a ∈ Π. More-
over, one has the following relations
      • e           ha (s)−1 = xb (shǎ,bit),
        ha (s)xb (t)e
      • w
        ea (s)wea (−1) = e ha (s),
          −1                                ∨
      • λa e hb (s)λa−1 = e      ha (s−ha,b i ),
                           hb (s)e
      • λa−1 xb (s)λa = ẇ−1
                           a xb (s)ẇa .

5.1.9. Weyl groups. Define N e to be the subgroup generated by He and the elements
λa . Then the pair (N, e where Be := H
                    e B)               e o U(F) satisfies the axioms of a BN-pair.
                        −
Replacing U(F) with U (F), we also obtain the BN-pair (Be− , N).
                                                               e The Weyl group
of N/
    e He is isomorphic to W := W (I, ·) ∼
                                        = W (I, ◦(Q,n) ).

5.2. Structure of p-adic groups and their covers. Let F be a non-archimedean
local field as in §2.2.1 and write G := G(F) (recall the convention in §2.1.1). Let
n be a positive integer such that (q, 2n) = 1, µn the group of n-th roots of unity in
F (which, by our assumption, is of cardinality n), and write (·, ·) for the Hilbert
n-symbol as in §2.2.2. We call G  e the central extension of G as in §5.1.6 specialized
to these particular choices, see [97, §6] for more details in the same notation as this
paper.
                                           63
5.2.1. Affine Weyl group. Recall that we have an isomorphism W → N/H sending
si 7→ wai (−1)H for i ∈ Π. We can extend this to a map from the affine Weyl group
ζ : Waff → N/HO as follows: let x ∈ Waff be written as x = wt(λ̌ ), where w ∈ W and
λ̌ ∈ Q̌ is written as λ̌ = ∑i∈I bi ǎi with bi ∈ Z; define π λ̌ := ∏i∈I hai (π mi ) and set
ζ (x) = ζ (wt(λ̌ )) = ẇ π λ̌ HO . The map ζ is an isomorphism, and we often write,
for x ∈ Waff , ẋ := ẇπ λ̌ .

5.2.2. Compact and Iwahori Subgroups. Let K = G(O) and let us continue to
write ω for the reduction map G(O) → G(κ). Let us define the Iwahori subgroup
I − = ω −1 (B− (κ)). The integral torus and unipotent groups are defined as
         HO := H(F) ∩ K = H(O) and UO± := K ∩ U± (F) = U(O),                         (5.3)
where the second equality in each of the above expressions is verified using some
simple representation theory. As U ± (O) ⊂ K, we also define, using the map
ω : UO → U(κ), the congruence subgroup Uπ± := ω −1 (1). One can verify that
Uπ is generated by elements xa (s) with a ∈ R+ and s ∈ πO; in fact one has a
unique factorization of any n ∈ Uπ as n = ∏a∈R_+ xa (sa ) for some fixed order
of R+ and where each sa ∈ πO. From ([56, Thm 2.5]), we have the Iwahori-
Matsumoto decompositions I − = UO− HO Uπ . We can also obtain different (though
equivalent) decompositions by permuting the order of the factors in the above.
From [56, Prop. 2.4], we have K = tw∈W I − ẇI − . From [56, Prop 3.2], for x ∈ Waff ,
we have |I − \ I − ẋI − | = q`(x) , and so, with respect to the natural Haar measure on
K which is normalized to give I − volume 1, we have
                                 vol(K) =     ∑ q`(w) .                              (5.4)
                                             w∈W

5.2.3. Some p-adic decompositions. The Iwasawa decomposition for G asserts
that G = B− K. We can refine this further to assert the decomposition into disjoint
pieces
                                 G = tλ̌ ∈Y U − π λ̌ K.                              (5.5)

In particular, to each g ∈ G we may write g = kπ λ̌ u with λ̌ ∈ Y uniquely deter-
mined from g. Note that k and u are not unique, since we could replace u with any
element from π −λ̌ U(O)π λ̌ . The Cartan decomposition asserts G = tλ̌ ∈Y+ Kπ λ̌ K.
Combining the Cartan and Iwasawa decomposition with the ones from the previous
paragraph, we obtain what we refer to as the Iwahori-Matsumoto decompositions
              G = tx∈Waff I − ẋI − = tx∈Waff I − ẋI − = tx∈Waff U − ẋI − .        (5.6)

5.2.4. The group G. e As mentioned above, the group G    e splits over U and U − and
we fix a given splitting as above and continue to adopt the same notation (i.e. xa (s),
etc.) for elements in these unipotent groups. We continue to denote the Weyl group
   e by W and write, for a ∈ Π, w
of G                              ea := λa for the elements as constructed in §5.1.8.
As the λa satisfy the braid relations, we may also define w  e for any w ∈ W in the
natural way.
                                               64
5.2.5. On H e and its abelian subgroups. Fix an ordering on I. As we are in the
simply-connected case, every t ∈ H    e may be written uniquely (with respect to the
fixed order) as t = ζ ∏i∈I hai (si ) with si ∈ F∗ and ζ ∈ µn . For λ̌ ∈ Y, written in
                            e
terms of the Z-basis {ǎi (i ∈ I)} as λ̌ = ∑i∈I ci ǎi , we define the elements in H,
                                                                                    e
  λ̌
π := ∏i∈I e       c
            hai (π i ). As (π, π) = 1 (see end of §2.2.2) we may use (5.2) to see
that the above element does not depend on the choice of ordering on I. Define H    eO
to be the subgroup generated by the elements hai (s) with s ∈ O , i ∈ I. Under the
                                                                    ∗

assumption that q ≡ 1 mod 2n, H                                            e ≃ µn ×Y.
                                                                      eO \ H
                                   eO is in fact an abelian group and H

                                         e Recall the subgroups K := G(O)
5.2.6. Iwahori and compact subgroups of G.
      −                                −
and I ⊂ K constructed in §5.2.2. Let Ie ⊂ G
                                          e be the subgroup generated by the
following elements:

       ξa (s), s ∈ O, a ∈ R− , ξ−a (t), a ∈ R+ , t ∈ πO        and     h∈H
                                                                       e eO .          (5.7)

Writing Ie+− := Ie∩U and Ie−− := Ie∩U − , one can show as in [56, Theorem 2.5] that
           eO Ie−− . Moreover one knows [97, Lemma 6.1.3] that the covering map p
Ie− = Ie+− H
satisfies p|Ie : Ie− → I − is an isomorphism. For this reason, we continue to write I −
in place of Ie− and will let context dictate what we mean.
   Let K e⊂G   e be the subgroup generated by elements ξa (s) with s ∈ O, a ∈ R. For
w ∈ W , the elements w    e constructed earlier lie in K, and one has K   e = Fw∈W Iew   e I.
                                                                                           e
Moreover, p(Iew                              e is such that p(x) = 1, then x ∈ Ie and, from
                     e = I ẇ I. Thus if x ∈ K
                   e I)
what we said earlier about p|Ie we have x = 1, i.e. p : K     e → K is an isomorphism.
From now on, we just identify K with K       e using p, and shall drop the notation K. e


5.2.7. Decompositions of G.  e Recall the decompositions from §5.2.3 and let us
explain the corresponding versions for G e now. The Cartan decomposition for G  e
asserts that G = tλ̌ ∈Y+ µn Kπ K and easily follows from the corresponding result
             e                λ̌

     e The analogue of the Iwasawa decomposition for G
for G.                                                    e is as follows. Every
                                 −                −
g ∈ G can be written as g = u ak with k ∈ K, u ∈ U, and a ∈ H.
     e                                        e        e          e The class of
a ∈ H/
     e HeO is unique in any such decomposition. For g ∈ Ge written (non-uniquely)
         −
as g = u ak, we denote the class of a in H/HO by IwHe (g). Use what was said at
                                          e  e
the end of §5.2.5 to set

           ln(g) := ln(IwHe (g)) ∈ Y      and     z(g) := z(IwAe(g)) ∈ µn ,            (5.8)

so that image of IwAe(g) in Y × µn is (ln(g), z(g)).

5.3. Hecke algebras. We now review an algebraic (as opposed to measure theo-
retic) framework to associate convolution Hecke algebras on p-adic groups. We
refer to [16, §4] for more details on this approach, which is equivalent to the usual
one.
                                             65
5.3.1. Iwahori–Hecke algebras. For x ∈ Waff , let Tx denote the characteristic func-
tion of I − ẋI − . Let H(G, I − ) denote the space of Z- linear combinations of the form
∑x∈Waff nx Tx with almost all nx = 0. Equivalently, we are looking at Z-valued, com-
pactly supported I − -biinvariant functions on G. This Z-module is equipped with
the structure of an associative, unital algebra under convolution defined as follows.
For x, y ∈ Waff , let mx,y : I − ẋI − ×I − I − ẏI − → G and define (see [56, p. 44])
   Tx ? Ty := ∑ nz Tz , where nz := |m−1 (ż)| = |I − \ I − ẋ−1 I − z ∩ I − ẏI − |.    (5.9)
               z∈Waff

Theorem. [56, Theorem 3.5] Writing Haff for the affine Hecke algebra attached
to (I, ·, D) (see §3.5), the map Haff → Z[q±1/2 ] ⊗ H(G, I − ) sending Tsi 7→ Tsi for
i ∈ Iaff is an isomorphism of algebras when τ 7→ q1/2 .
Using this result, we construct elements in H(G, I − ) that we again denote (by abuse
of notation) as Hw and Yλ̌ for w ∈ W, λ̌ ∈ Y which correspond to similarly named
elements in Haff .
5.3.2. Spherical Hecke algebra. The spherical Hecke algebra H(G, K) consists
of finite linear combinations of the characteristic functions hλ̌ , λ̌ ∈ Y+ of the dou-
ble cosets Kπ λ̌ K and multiplication defined as follows: for λ̌ , µ̌ ∈ Y+ and m :
Kπ λ̌ K ×K Kπ µ̌ K → G, set
      hλ̌ ? hµ̌ = ∑ |m−1 (π η̌ )|hη̌ = ∑ |K \ Kπ −λ̌ Kπ η̌ ∩ Kπ µ̌ K| hη̌ .             (5.10)
                 η̌∈Y+                    η̌∈Y+

Justifying the abuse of notation (since hµ̌ were already defined in §3.5.3), we have
the following result.
Theorem. The map from the spherical subalgebra Hsph := ε Haff ε ⊂ Haff to Z[q±1/2 ]⊗
H(G, K) sending ε Yµ̌ ε to hµ̌ for µ̌ ∈ Y+ is an isomorphism of algebras when
τ 7→ q1/2 .
5.3.3. Relating H(G, I − ) and H(G, K). To relate H(G, I − ) with H(G, K) we need
to take into account the fact that convolution in the spherical Hecke algebra is with
respect to a measure which assigns K volume 1, whereas in H(G, I − ), the con-
volution is with respect to a measure that assigns I − volume 1. Recalling equa-
tion (5.4), let eK := vol1(K)
                          K
                              where 1K is the characteristic function on G of the
subgroup K. One may define a left and right convolution of H(G, I − ) with the
function eK which then produces an element in H(G, K), and we find that the map
H(G, I − ) → H(G, K), f 7→ eK ? f ? eK fits into the commutative diagram
                                        eK ? · ?eK
                         H(G, I − )                   H(G, K)
                           ∼
                           =                                ∼
                                                            =                           (5.11)
                                         ε ··ε
                           Haff                          Hsph
where the bottom row is the map h 7→ εhε, h ∈ Haff and the vertical maps are from
Theorems 5.3.1 and 5.3.2.
                                              66
5.3.4. ε-genuine functions. Recall that µn ⊂ F is assumed to have cardinality n.
Fix a faithful embedding ε : µn ,→ C∗ which we use to define the Gauss sums as in
                       e → C is ε-genuine if
§2.2.4. A function f : G

                                                       e ζ ∈ µn .
                         f (ζ g) = ε(ζ ) f (g) for g ∈ G,                          (5.12)

Let Cε (G)
        e denote the space of compactly supported ε-genuine functions on f :
e → C.
G

5.3.5. Metaplectic spherical Hecke algebra. Define the spherical Hecke algebra

          H(G,                e | f (k1 gk2 ) = f (g) for k1 , k2 ∈ K}.
            e K) := { f ∈ Cε (G)                                                   (5.13)

                            e (see §5.2.7) ensures that the functions, for λ̌ ∈ Y+ ,
The Cartan decomposition of G
                            (
                             ε(z(x)) if x ∈ µn Kπ λ̌ K,
                  hλ̌ (x) =
                  e                                                          (5.14)
                             0         otherwise,

span the C-vector space Hε (G,  e K). In fact, one can also verify that e hλ̌ if well-
                                    / Ye there exists hO ∈ H
defined only if λ̌ ∈ Ye since if λ̌ ∈                      eO such that [hO , π λ̌ ] 6= 1.
The collection {e h } e forms a basis of H(G,
                      λ̌ λ̌ ∈Y+
                                                  e K) as a vector space. The vector
space H(G,e K) is also equipped with a convolution structure, which is defined by
                                                                     e For µ̌ ∈ Ye+
considering the multiplication map mλ̌ ,ν̌ : µn Kπ λ̌ K ×K Kπ ν̌ K → G.
and x ∈ m−1 (π µ̌ ), written as x = (a, b) with a ∈ µn , Kπ λ̌ K and b ∈ Kπ ν̌ K, we set,
          λ̌ ,ν̌
in the terminology of §5.2.7, z(x) := z(a) ∈ µn as it only depends on x. Then we
define the convolution product as
                                                       

                              hν̌ = ∑ e
                        hλ̌ ? e       hµ̌                         ε(z(x)) .      (5.15)
                                                                         
                        e                              ∑
                                            µ̌∈Y   x∈m−1 (π µ̌ )
                                                       λ̌ ,ν̌



The metaplectic Satake isomorphism ([90, §11]) gives an isomorphism of algebras
                           ∼
              Se : H(G,       C[Ye ]W ∼
                                                           
                     e K) −→          = K0 Rep(Ǧ(Q,n) (C)) ,            (5.16)

                                                           e ∨ := D(Q,n) ∨ . So, for each
                                                                         
where Ǧ(Q,n) (C) is the complex group attached to D
λ̌ ∈ Ye+ , we can define elements ceλ̌ ∈ H(G,                     e c ) = χ , i.e. ce cor-
                                                 e K) such that S(e
                                                                     λ̌    λ̌        λ̌
responds to the class of the representation Vλ̌ of highest weight λ̌ of the group
Ǧ(Q,n) (C). For λ̌ , µ̌, ζˇ ∈ Ye+ , we have the multiplication rule

                   ceλ̌ ? ceµ̌ = ∑ dim HomǦ(Q,n) (C) (Vλ̌ ⊗Vµ̌ ,Vζˇ ) ceζˇ .      (5.17)
                                  ζˇ ∈Ye+
                                                     67
5.3.6. Metaplectic Iwahori–Hecke algebras. We define H(G,       e I − ) to be the space
                     e which are also I − bi-invariant. It has a convolution structure
of functions f ∈ Cε (G)
that can be defined starting from the multiplication map mx,y : I − ẋI − ×I − I − ẏI − G
                                                                                         e
and using a procedure as in §5.3.1, but taking into account the ε-genuine condition
as in the previous paragraph. As an algebra, the structure of this Hecke algebra was
first described by Savin in [103], [104, §6] (see [90, §12] for a proof that corrects
an error in a rank 1 computation of Savin’s original proof). In our notation, his
results state
         e I−) ∼
       H(G,    = C ⊗Zτ H                               e ∼
                       eaff := C ⊗Zτ Haff (I, ◦(Q,n) , D) = HW ⊗ C[Ye ],           (5.18)

where the map Zτ → C sends τ 7→ q−1/2 . We shall write Yλ̌ , λ̌ ∈ Ye and Hw , Tw , w ∈
W for the elements in H(G,
                         e I − ) corresponding to similarly named elements in H   eaff .
             e I ) and H(G,
To relate H(G,  −          e K) one has a diagram analogous to (5.11), where we
note that eK is again defined as 1K /vol(K) where vol(K) stays the same in the
metaplectic context.


   6. S PHERICAL AND I WAHORI –W HITTAKER FUNCTIONS ON COVERS OF
                             p- ADIC GROUPS
   Fix the same conventions as at the start of Part II and notations as in §5.2-5.3.

6.1. Whittaker spaces for covering groups.

6.1.1. Character of unipotents. Fix an additive character ψ : F → C∗ as in §2.2.3.
For a ∈ Π, using the chosen isomorphism xa : F → Ua (F), s 7→ xa (s), we regard ψ
first as a character of Ua := Ua (F), and then, via the isomorphism U → U/[U,U] ∼     =
⊕a∈ΠUa , as a character, to be denoted by the same name, ψ : U → C . One can ∗

easily verify that ψ|U(O) is trivial, and ψ|U(π −1 O) is non-trivial. As we identify the
unipotent group U with its preimage in the cover G,   e we can regard ψ as a character
of U ⊂ G  e as well.


6.1.2. Spherical Whittaker space Wψ (G,    e K). An ε-genuine function f : G  e→C
is said to be (U, ψ) left invariant if f (ug) = ψ(u) f (g) for any u ∈ U and g ∈ G.
Denote by Wψ (G,  e K) the space of ε-genuine functions on G    e which are right K-
invariant, left (U, ψ)-invariant and supported on a finite union of sets of the form
µnUπ µ̌ K with µ̌ ∈ Y. For f ∈ Wψ (G,   e K), if we define Supp( f ) ⊂ Y as the set
of µ̌ ∈ Y such that f (π ) 6= 0, then one can show that Supp( f ) ⊂ Y+ for any
                          µ̌

 f ∈ Wψ (G,e K). For µ̌ ∈ Y , we define Jeµ̌ ∈ Wψ (G,
                                                   e K) to be the unique ε-genuine
function that takes value 1 on π µ̌ and is 0 outside of µnUπ µ̌ K.e Using the Iwa-
sawa decomposition from §5.2.7, one shows that the set {Jµ̌ }µ̌∈Y+ is a basis of
                                                               e
Wψ (G,e K).
                                           68
6.1.3. Convolution action of H(G,     e K) on Wψ (G,   e K). One has a right convolution
action, denoted again by ?, of H(G,    e K) on the space Wψ (G,   e K). Let us recall here
the definition of Jeµ̌ ? hλ̌ with µ̌ ∈ Y+ , λ̌ ∈ Ye+ . As we observed earlier, the support
of such a function is a linear combination of Jeζˇ with ζˇ ∈ Y+ . For such a ζˇ ∈ Y+ ,
consider the multiplication map m
                            µ̌,λ̌            : µnUπ µ̌ K ×K Kπ λ̌ K → Ge and let (a, b) ∈
 −1    ˇ
m (π ) with a ∈ µn Uπ K and b ∈ Kπ λ̌ K.
       ζ             µ̌                                         Suppose we write a = ωuπ µ̌ k for
 µ̌,λ̌
ω ∈ µn , u ∈ U, k ∈ K. Write ω = z(x) as one sees easily that it depends only
on x. On the other hand, u is not well-defined as we can replace it by uu1 with
π −µ̌ u1 π µ̌ ∈ K, i.e. n1 ∈ π µ̌ UO π −µ̌ . However, since µ̌ ∈ Y+ and ψ is trivial on UO ,
                                                                                         ˇ
we have ψ(uu1 ) = ψ(u)ψ(u1 ) = ψ(n). In sum, if for any x = (a, b) ∈ m−1 (π ζ )
                                                                                         µ̌,λ̌
where a = z(x) uπ µ̌ k we set n(x) = u, then ψ(n(x)) only depends on x. Using this
notation, we define
                                                            
                                ˇ 
                   hλ̌ := ∑ qhρ,ζ i 
           Jeµ̌ ?K e                                          ε(z(x))ψ(n(x)) Jζˇ ,              (6.1)
                                                                            
                                                ∑
                           ζˇ ∈Y+         x∈m−1 (π ζ )
                                                          ˇ
                                                µ̌,λ̌
                                                                                
                                                   ˇ
where ζˇ ≤ λ̌ + µ̌ in order for bλ̌µ̌ (ζˇ ) := qhρ,ζ i ∑x∈m−1 (π ζˇ ) ψ(x)ε(z(x)) 6= 0.
                                                                     µ̌,λ̌


Remark. Let du be the usual Haar measure on U which assigns U(O) volume 1.
Then we can also write
                                                Z
                                      hρ,ζˇ i                                ˇ
                     bλ̌µ̌ (ζˇ )    = q                 ψ(u)hλ̌ (π −µ̌+ζ u)du.                   (6.2)
                                                 U

6.1.4. Iwahori–Whittaker spaces. We define Wψ (G,       e I − ) by replacing K with I − in
the definitions given in §6.1.2. In light of the Iwahori-Matsumoto decomposition
(5.6), we may regard functions in Wψ (G,     e I − ) as (U, ψ)-left invariant, right I − -
invariant, ε-genuine functions which are supported on a finite union of sets of the
                                                                                −
form µn U ẋ I − with x ∈ Waff := Waff (I, ·, D). For each x ∈ Waff , let vIψ,x denote
the unique function (if it exists) in Wψ (G,  e I − ) which is supported on the subset
         −
µn U ẋI , and taking the value 1 on ẋ. If x = t(µ̌) with µ̌ ∈ Y , we shall just write
  −               −                                 −
vIψ,µ̌ in place vIψ,t(µ̌) from now on. Note that vIψ,x with x ∈ Waff is only well-defined
when ψ |xI − x−1 ∩U = 1. The vector space Wψ (G,  e I − ) carries a right action, denoted
again by ?, under convolution by H(G,    e I − ). One can define its action in a similar
manner to the one in which we defined the action of H(G,        e K) on Wψ (G, e K) (note
that the modular character does not appear though).
                                gen                          gen
6.1.5. Averaging operator AvU − . Define the operator AvU − : Wψ (G,   e I − ) → C[Y ]
                                                                             −
by linearly extending the following procedure. For x ∈ Waff , let f = vIψ,x . Note
that f is only well-defined if ψxI − x−1 ∩U = 1.
   Using the map m = mx : µn U ẋI − ×I −U − → G,           e and y = (a, b) ∈ m−1 (z)
                                                  e for z ∈ G
                                                  −
with a = z(y) uxi for z(y) ∈ µn , u ∈ U, and i ∈ I , we may set ψ(y) = ψ(u). By our
                                                    69
assumption on x, ψ(y) is well-defined. Set
                                                                     
                   gen   −
               AvU − (vIψ,x ) = ∑              ∑       ε(z(y)) ψ(y) Yµ̌ qhρ,µ̌i .        (6.3)
                                   µ̌∈Y     y∈m−1
                                               x (π )
                                                   µ̌



For example, since Uπ λ̌ I − ∩U − π λ̌ I − = π λ̌ I − we have
                             gen                −
                          AvU − (q−hρ,λ̌ i vIψ,λ̌ ) = Yλ̌ for λ̌ ∈ Y+ .                    (6.4)

Remark. In the usual integral notation, one writes
                                        Z             
                 gen            hρ,ζˇ i        ζˇ −  −
              AvU − ( f ) = ∑ q            f (π u )du Yζˇ ,                                (6.5)
                                                    U−
                                    ζˇ ∈Y

with du− the Haar measure normalized so that U− (O) = K ∩U − has total volume
1.

6.1.6.     The following result can be deduced using arguments as in [29].
                                   gen
Proposition. The map AvU − induces an isomorphism of vector spaces
                                gen                =       ∼
                                          e I − ) −→
                              AvU − : Wψ (G,         C[Y ],                                (6.6)

which satisfies the following equivariance condition:
                  gen                     gen            e I − ), λ̌ ∈ Ye ,
              AvU − (w ?Yλ̌ ) = AvU − (w)Yλ̌ for w ∈ Wψ (G,                                (6.7)

where the action on the right hand side is just by multiplication in the group alge-
bra.

One can prove the Proposition in a different manner than op. cit. as follows:
                                gen         −
         • We may write AvU − (vIψ,x ) = ∑µ̌∈Sx cµ̌ Yµ̌ with cµ̌ ∈ C and Sx := {µ̌ ∈ Y |
           µn U ẋI − ∩ µnU − π µ̌ I − 6= 0}.
                                          / One may introduce a natural order on Y such
                     gen
           that AvU − is upper triangular with non-zero diagonal coefficients. This
           suffices to prove that the map is an isomorphism.
         • To prove the equivariance, one uses that Yλ̌ ?1µn IU − = 1µ I − π λ̌ U − for λ̌ ∈ Ye ,
                                                                            n
           where for any ν̌ ∈ Ye , we write 1µ I − π ν̌ U − ∈ Cε (G) to be the unique function
                                                    n
           supported on µn I − π ν̌ U − and taking value 1 on π ν̌ .

6.2. Structure of the Iwahori–Whittaker space Wψ (G,         e I − ). Recall that we con-
structed an action of Heaff on V = Zτ,g [Y ] in §4.2 by means of the operators T   e s for
                                                                                      i
i ∈ I, see §4.1. Using the p-adic specialization map p : Zτ,g → C defined as in 2.3.3
and the isomorphism C⊗Z H(G,    e I−) ∼
                                      = C⊗Zτ H    eaff , we obtain an action of H(G,
                                                                                   e I−)
on C[Y ] = C ⊗Zτ,g Zτ,g [Y ].
                                                    70
6.2.1.       e ∈ Wψ (G,
         Let Yλ̌
                     e I − ) be defined uniquely through the relation

                                gen e
                              AvU − (Yλ̌ ) = Yλ̌ for any λ̌ ∈ Y.                               (6.8)

Proposition. For any simple root a ∈ Π and λ̌ ∈ Y, we have
                                      gen e
                                    AvU − (Y λ̌ ? Ta ) = Yλ̌ · Ta .
                                                  e            e                               (6.9)

Hence we have an isomorphism of C-vector spaces that we denote as
                                                      ≃ e I−)
                                   p : C ⊗Zτ,g V −→ Wψ (G,                                    (6.10)

sending Yλ̌ 7→ Y λ̌
                                                 eaff and H(G,
               e and intertwining the actions of H          e I − ).

6.2.2. Proof of Proposition 6.2.1, part 1. Suppose that λ̌ ∈ Y+ and consider the
          −                                                 gen           −
element vI constructed above which we showed satisfies AvU − (q−hρ,λ̌ i vI ) = Yλ̌ .
           ψ,λ̌                                                                          λ̌
      e = q−hρ,λ̌ i vI − for λ̌ ∈ Y+ . We claim
Hence Y λ̌                  ψ,λ̌

                      gen                 −
                   AvU − (q−hρ,λ̌ i vλ̌I ? T          e a when λ̌ ∈ Y+
                                           es ) = Y · T
                                             a     λ̌                                         (6.11)

follows from the arguments in [95, §5.7]. Since the setup in op. cit. is a bit different
than the present context (in particular what we write as T
                                                         e s here is Te −1
                                                                        si in op. cit.),
                                                            i
let us sketch the key ideas in the computation here. First, to determine the support
      gen   −
of AvU − (vI ? Tes ), we need to determine for which µ̌ ∈ Y
                  a
            λ̌

                  ea I −U − ∩ µnUπ µ̌ U − = µn Uπ λ̌ Uπ U−a,O w
0/ 6= µnUπ λ̌ I − w                                           eaU − ∩ µn Uπ µ̌ U −(,6.12)

where we have used the dominance of λ̌ and the Iwahori–Matsumoto factorization
to obtain the equality in the last line. Apply [95, (5.24), (5.25)] or using the rela-
tions described in §5.1.8, for x−a (s) ∈ U−a (O) with s−1 = π −k r, r ∈ O ∗ and k ≥ 0,
we write

                             ea xa (s−1 ), where ha (s−1 ) = ha (r)π −kǎ (r, π)kQ(ǎ) .(6.13)
 x−a (s) = xa (s−1 )ha (s−1 )w
                                                                  gen             −
Defining Ψ(x−a (s)) = ε (r, π)kQ(ǎ) , one finds then that AvU − (q−hρ,λ̌ i vI ? T
                                        
                                                                                        es ) is
                                                                                 λ̌       a
computed as the sum
                                      Z
             ∑ qhρ,λ̌ −µ̌iYλ̌ −kǎ      U−a [k]
                                                  ψ(π λ̌ u−a π λ̌ )Ψ(x−a (s))du−a [k],        (6.14)
            k≥0

where du−a [k] is the restriction of the measure on U−a giving U−a (O) total volume
1. Note that non-zero summands in the above expression may arise only for Yζˇ
when ζˇ ∈ {λ̌ , λ̌ − ae∨ , . . . , λ̌ − k0 ae∨ , λ̌ • wa }, where k0 is the largest positive integer
such that k0 ae∨ ≤ hλ̌ , ai. We leave the rest of the computation to the reader as it
follows from the same ideas at the end of [95, §5.7].
                                                          71
                                                                                                   •
6.2.3. Proof of Proposition 6.2.1, part 2. Recalling the definition of A−,n from
                                               •
(3.66), we choose λ̌ = η̌ • W for some η̌ ∈ A−,n . As we observed earlier, this
forces

                          −n(ǎi ) < hλ̌ + ρ̌, ai i < n(ǎi ) for all i ∈ I,                           (6.15)

and one notes that verifying the Proposition for these λ̌ is equivalent (see Lemma
4.1.2(2)) to verifying :

            ghλ̌ +ρ̌,ai iQ(ǎi ) Yλ̌ •si
            
                                 e                 if − n(ǎi ) < hλ̌ + ρ̌, ai i < 0,
 Yλ̌ · Tsi = ghλ̌ +ρ̌,a iQ(ǎ ) Yλ̌ •s + (q − 1)Yλ̌ if 0 < hλ̌ + ρ̌, ai i < n(ǎi ), (6.16)
 e     e                          e             e
                      i      i          i
              −Y                                    if hλ̌ + ρ̌, ai i = 0.
             e
                     λ̌
                                                               gen
Indeed, we may just apply the isomorphism AvU − to such relations and bear in
               gen e
mind that AvU − : Y  λ̌ 7→ Yλ̌ . Now the second case above follows since λ̌ ∈ Y+ , so we
may apply part (1) and the general formulas for T    e s action. Assume then that λ̌ is
                                                        i
as in the first case, and let us show the equivalent statement that g−1            Y
                                                                                   e =
                                                                                      hλ̌ +ρ̌,ai iQ(ǎi )
                                                                                     λ̌
Y
e
  λ̌ •si · Tsi . Since
           e −1

           gen e           e −1        gen e                            gen e
         AvU − (Y λ̌ •si · Tsi ) = q AvU − (Yλ̌ •si · Tsi ) + (q − 1) AvU − (Yλ̌ •si ),
                                                      e                                                (6.17)

and hλ̌ • si , ai i ≥ 0 by our assumption on λ̌ , the right hand side of the above can be
computed explicitly using part (1) and the desired result follows. The third case is
                                                                     •
proven similarly. The Proposition is thus proven for all λ̌ ∈ A−,n •W .

6.2.4. Proof of Proposition 6.2.1, part 3. Observe that for ζˇ ∈ Ye , Proposition 6.1.6
gives

                           Y      e ˇ for λ̌ ∈ A• •W, ζˇ ∈ Ye .
                           e Yˇ = Y                                                                    (6.18)
                             λ̌ ζ   λ̌ +ζ       −,n

                                                                                  •
As every µ̌ ∈ Y is of the form µ̌ = λ̌ + ζˇ with ζˇ ∈ Ye and λ̌ ∈ A−,n •W , it suffices
to show

             gen                                                           •
          AvU − (Y
                 e ˇ ?T ea ) = Y ˇ · Te a for a ∈ Π, λ̌ ∈ A−,n •W, ζˇ ∈ Ye .                           (6.19)
                  λ̌ +ζ         λ̌ +ζ

Using Proposition 6.1.6 we may compute

  gen e
                                                                                                            Ywa ζˇ −Yζˇ
AvU − (Y        ea ) = Avgen
               ?T                      ea ) = Avgen
                              e ?Y ˇ · T
                             (Y                     (Y  eaY ˇ ) + (q − 1) Avgen
                                                     e ?T                       (Y
                                                                                 e )?                            (6.20)
        λ̌ +ζˇ           U − λ̌   ζ             U − λ̌     wa ζ             U − λ̌                           1 −Y−ǎ
                                  gen                                gen
                                                                               Ywa ζˇ −Yζˇ
                                   e ?T
                          = AvU − (Y   ea )Y ˇ + (q − 1) Av − (Y
                                            wa ζ           U
                                                               e )?                           .                 (6.21)
                                    λ̌                          λ̌              1 −Y−ǎ
 The terms on the right hand side are all computed from part 2, so (6.19) can be
verified.
                                                    72
                              e I − ). For η̌ ∈ A•−,n , define the H(G,
6.2.5. A decomposition of Wψ (G,                                     e I − )-module
                  e I − )(η̌) := SpanC { Y
              Wψ (G,                                     e I − )}.
                                         eη̌ ? h | h ∈ H(G,                      (6.22)
From the previous Proposition and the results of Section 4, we obtain the following.
                            •
Proposition. For η̌ ∈ A−,n , the map p from Proposition 6.2.1 restricts to an iso-
morphism
                                         ≃     e I − )(η̌)
                          C ⊗Zτ,g V(η̌) −→ Wψ (G,                                (6.23)
and hence by Proposition 4.2.2 we have a decomposition into H(G,
                                                              e I − )-submodules
                          e I − ) := ⊕
                      Wψ (G,                   e −
                                      η̌∈A Wψ (G, I )(η̌).                       (6.24)
                                          •
                                            −,n


6.3. Structure of the spherical Whittaker space Wψ (G,
                                                    e K).

                    e K) on Wψ (G,
6.3.1. Action of H(G,            e K). Let Vsph be H esph -module introduced in
§4.3.3. The map p : C ⊗Zτ,g V −→ Wψ (G, I ) from the Proposition 6.2.1 descends
                                     e   −

to a map that we denote as
                          pK : C ⊗Zτ,g Vsph −→ Wψ (G,
                                                   e K).                         (6.25)
Recall the diagram in (5.11) and the remarks at the end of §5.3.6 which explain
the relation between the element eK ∈ H(G,e I − ) and ε ∈ H
                                                          eaff . The natural right
convolution maps · ? eK : Wψ (G, I ) → Wψ (G, K).
                              e   −         e

Proposition. The following diagram
                 · ?eK
 Wψ (G,
     e I−)                  Wψ (G,
                                e K)                     Y
                                                         e
                                                           λ̌        Jeλ̌
     p ∼
       =                        ∼
                                = pK       which sends                        for λ̌ ∈ Y
                 ·ε
  C ⊗Zτ,g V                 C ⊗Zτ,g Vsph                 Yλ̌         [Yλ̌ ]
is commutative. The vertical maps in the left diagram are isomorphisms that inter-
twine the actions of the corresponding Hecke algebras: H(G, e I−) ≃ H
                                                                    eaff on the left
and H(G,e K) ≃ H esph on the right.

We may define the H(G,
                    e K)-submodules

                      Wψ (G,              e I − )(η̌) ? eK ,
                          e K)(η̌) := Wψ (G,                                     (6.26)
          •
for η̌ ∈ A−,n and by the Proposition above we have that pK restricts to an isomor-
phism
                      pK : C ⊗Zτ,g Vsph (η̌) −→ Wψ (G,
                                                    e K)(η̌)                     (6.27)
which intertwines the H(G,
                        e K) ≃ H
                               esph -actions. We can reformulate this using (4.52).

                                                      e K) into H(G,
Corollary. One has the following decomposition of Wψ (G,          e K)-modules:

                         Wψ (G,
                             e K) ≃ ⊕
                                     η̌∈A Wψ (G, K)(η̌).
                                         •    e                                  (6.28)
                                            −,n
                                            73
                                       e and T
For λ̌ ∈ Y+ , define the natural bases L λ̌
                                                f in Wψ (G,
                                                 λ̌
                                                         e K) which correspond un-
                                            −
der the isomorphism pK to the bases [G ] and [Gλ̌ ] of C ⊗Zτ,g Vsph (η̌), respectively.
                                            λ̌
We call these the canonical bases of Wψ (G,    e K).

6.3.2. Metaplectic geometric Casselman–Shalika formulas. Using Proposition 6.3.1
and the remarks in the previous paragraph, we can import the structures studied in
Part I and especially in §4 to the study of Wψ (G,e K). The results in §4.4.2 and
§4.4.3 produce the following geometric Casselman–Shalika formulas for the ‘p-
                                         e and T
adic basis’ Jeλ̌ and the canonical bases L λ̌
                                               f of Wψ (G,
                                                λ̌
                                                         e K), respectively.

                                                           ζ     ˇ  ζ         ˇ
Theorem.     (1) Suppose µ̌ ∈ Y+ and λ̌ ∈ Ye+ . Writing g Q := p(g Q ) for the
                                                           µ̌,λ̌    µ̌,λ̌
      p-adic specializations of the g-twisted Littlewood-Richardson coefficients
      defined in (4.64), we have
                                               ζˇ
                            Jeµ̌ ? ceλ̌ = ∑ g Q [Yζˇ ].                            (6.29)
                                                 µ̌,λ̌
                                       ζˇ ∈Y+

    (2) If λ̌0 ∈ (Q,n) and ζˇ ∈ Ye+ , then we have
                                e ? ceˇ = L
                                Lλ̌0  ζ
                                          e
                                            λ̌0 +ζˇ
                                                    .                              (6.30)

    (3) If λ̌0 ∈ (Q,n) and ζˇ ∈ Ye+ , then writing λ̌0† := λ̌0 · w0 + 2(ρe∨ − ρ̌) we have
                                T
                                f† ? ceˇ = T
                                 λ̌    ζ
                                           f† ˇ .
                                            λ̌ +ζ
                                                                                   (6.31)
                                   0             0

Remark. Note that the second and third parts, together with the well-known struc-
ture coefficients for ceµ̌ ∈ H(G,
                               e K) (see (5.17)), determine the action of ceµ̌ on the
      e and T
basis L λ̌
               e as explained in (1.6) of §1.1.1.
                λ̌

Part 3. Interpretation via quantum groups at roots of unity and applications
                   7. Q UANTUM GROUPS AT A ROOT OF UNITY
   After introducing in §7.1-7.3 quantum groups and their specializations (follow-
ing Lusztig [80, 84]), we collect several results from the representation theory of
these objects. We are working with Lusztig’s dotted version of the quantum group
and its root of unity and quasi-classical specializations, though we could have as
well worked with the undotted versions of these objects as their representations
theories are the same. The main results needed to connect the quantum setting to
the p-adic one are contained in §7.5.
   Fix throughout (I, ·, D) a root datum written as D = (Y, {ǎi }, X, {ai }) with Car-
tan matrix A = (ai j ) attached to (I, ·). Let u be a formal variable and, for each
                   i·i
i ∈ I, set ui := u 2 . These elements lie in the ring Zu := Z[u, u−1 ]. Throughout this
section we shall consider commutative, unital rings A equipped with a ring homo-
morphisms φ : Zu → A. We shall need to impose stricter conditions on D in §7.5
as we will explain there.
7.1. Algebras attached to root datum.
                                            74
7.1.1. The algebra f. Attached to the Cartan datum (I, ·) with Cartan matrix A =
(ai j ), we construct f := f(I, ·) the associative Q(u)-algebra with unit defined as in
[84, §1.2.5]. It is a deformation of the enveloping algebra of the ‘positive’ half of
g, and defined as the unital algebra generated by elements θi (i ∈ I) subject to the
quantum Serre relations: for i, j ∈ I, with i 6= j
                        p0   p      !
                                        p0 0 !                  !
                                                                        p
                                                                           usi − u−s
                                                                                  i
         ∑0        (−1)    θi  /[p] i  θ j θ i /[p ]i = 0 where [p]i = ∏ ui − u−1    .(7.1)
   0
p,p ∈N;p+p =1−ai j                                                     s=1        i

The algebra f has a decomposition f = ⊕µ∈Z[I] fµ where fµ is the vector space
spanned by words in {θ j } such that the number of appearances of θi is given by
the coefficient of i in µ.
7.1.2. Zu -forms for f. For each i ∈ I, n ∈ Z, we define the divided power θi (n) :=
θin /[n]!i if n ≥ 0 and θi (n) = 0 otherwise. Defining fZu to be the unital subalgebra of
f generated by θi (n) for all i ∈ I, n ∈ Z, we have
                   fZu = ⊕µ∈Z[I] fµ,Zu where fµ,Zu = fµ ∩ fZu .                       (7.2)
For any Zu → A as above, we set fA := A ⊗Zu fZu and note again that
                   fA = ⊕µ∈Z[I] fµ,A where fµ,A = A ⊗Zu fµ,Zu .                       (7.3)
7.1.3. The quantum group U̇A (D). Let U̇A (D) be the A-algebra generated by sym-
bols x+ 1ζ y− , x− 1ζ y where x ∈ fµ,A , y ∈ fµ 0 ,A for µ, µ 0 ∈ Z[I] and ζ ∈ X and subject
to the relations described in [84, §31.1.3]. Note that these relations depend on the
root datum D, not just on the Cartan datum (I, ·). We also record here that the
A-linear maps
              fA ⊗A Zτ [X] ⊗A fA → U̇A (D) , x ⊗ Xλ ⊗ y 7→ x+ 1λ y−                   (7.4)
              fA ⊗A Zτ [X] ⊗A fA → U̇A (D) , x ⊗ Xλ ⊗ y 7→ x− 1λ y+                   (7.5)
are isomorphisms of A-modules and hence we have U̇A (D) = A ⊗Zu U̇Zu . Note that
U̇A does not have a unit, but instead a family of elements (1λ )λ ∈X such that 1λ 1λ 0 =
δλ ,λ 0 . These give a decomposition U̇A = ∑λ ,λ 0 1λ U̇A 1λ 0 . If A = Q(u), we often drop
it from our notation and just write U̇ in this case; the natural map Zu ⊂ Q(u) allows
us to view U̇A ⊂ U̇ as an Zu -subalgebra, or, what we might call a Zu -lattice.
7.1.4. Module categories. Let CA (D) denote the category whose objects U̇A (D)-
modules M which are
      • unital in the sense that for any z ∈ M, we have 1λ z = 0 for almost all λ ∈ X
        and ∑λ ∈X 1λ z = z,
      • finitely generated when regarded as an A-module.
Objects M ∈ CA (D) can be decomposed as M = ⊕λ ∈X Mλ where Mλ = 1λ M. One
can equip CA (D) with the structure of a monoidal tensor category (see [80, §1.6])
with product denoted ⊗A . If A = Q(u), we drop it from our notation and just write
C(D) in this case. An object M ∈ CA (D) is said to be a highest weight module with
highest weight λ ∈ X, see [84, §31.3] if there exists a vector m ∈ M λ such that
      • setting Ei (n) := ∑ζ ∈X (θi (n) )+ 1ζ , we have Ei (n) m = 0 for all i and n > 0;
                                            75
      • M = {x− m | x ∈ fA };
      • M λ is a free A-module of rank one with generator m.
We define a module M to be integrable if for every m ∈ M and i ∈ I, there exists an
              (n )      (n )
n0 such that Ei 0 m = Fi 0 m = 0 (see [84, §31.2.4]). For a field F, let Rep(U̇F (D))
be the full subcategory of CA (D) consisting of integrable highest weight (unital)
modules M whose weight spaces Mλ̌ are finite-dimensional F-vector spaces. For
such modules we can define their character
                         χM := ∑ (dimF Mλ ) Xλ ∈ F[X].                                  (7.6)
                                 λ ∈X

7.1.5. Standard or Weyl modules Λλ . For λ ∈ X+ , define the f-modules Tλ =
      hǎ ,λ i+1
∑i fθi i         and define Λλ = f/Tλ . Letting ηλ = 1 + Tλ , we may regard Λλ as
an element in C(D) see [84, 6.3.4, 23.1.4] in which
 (θi+ 1λ 0 )ηλ = 0, i ∈ I, λ 0 ∈ X   and    (x− 1λ 0 )ηλ = δλ ,λ 0 x + s, where s ∈ Tλ for x ∈ f, λ 0 ∈ X. (7.7)
We also write, given any Zu -algebra Zu → A,
               Λλ ,Zu := U̇Zu (D)ηλ        and    Λλ ,A := A ⊗Zu Λλ ,A .                (7.8)
One knows that Λλ ,Zu is an Zu -lattice in Λλ and Λλ ,A ∈ CA (D). These are called
the standard modules. Over a field F, Λλ ,k ∈ Rep(U̇F (D)) and their characters can
be computed using the Weyl character formula.
7.1.6. Irreducible modules. Again we work over a field F. The structure of ir-
reducible highest weight modules in Rep(U̇F (D)) is similar to that for ordinary
Lie algebras, see [84, Prop. 31.3.2]: for each λ ∈ X+ there is a simple object in
Rep(U̇F (D)) which is a highest weight module with highest weight λ . We denote
this object as Lλ ,F (or just Lλ if F is implicitly understood). One know that Lλ ,F
and Lλ 0 ,F are not isomorphic if λ , λ 0 ∈ X are distinct. Moreover, if M is any highest
weight module with highest weight module with highest weight λ , then M has a
unique maximal subobject whose corresponding quotient is isomorphic to Lλ ,F .
7.2. Classical and quasi-classical specializations.
7.2.1. Classical and quasi-classical specializations. Let φ : Zu → A be a Zu - alge-
bra such that φ (ui ) = ±1 for all i ∈ I. In this case U̇A will be called a quasi-classical
specialization of U̇Zu . If φ (u) = 1, then we say that U̇A is a classical specializa-
tion of U̇Zu . We would like to describe the categories CA (D) when A is taken to be
one of these two specializations. As it turns out if φ : Zu → A is a quasi-classical
specialization, and we write A0 = A for a copy of A and define φ0 : Zu → A0 to be
the unique map such that φ (u) = 1, then from [84, Prop. 33.2.3], there is a unique
isomorphism of Zu -algebras
                         ∼
                         =
                U̇A0 (D) → U̇A (D), and hence CA0 (D) ∼
                                                      = CA (D).                         (7.9)
Not only do the representation categories under classical and quasi-classical spe-
cializations agree, but from the construction in op. cit. it follows that if M0 ∈
CA0 (D) corresponds to M ∈ CA (D) under this equivalence, then it also follows that
M0,λ ∼= Mλ for each λ ∈ X.
                                             76
7.2.2. Classical enveloping algebras attached to root datum. Following [80, §5.1],
define UQ (D) be the Q-algebra with unit generated by symbols x+ , x− with x ∈ fQ
and y, y ∈ Y subject to the relations:
         • the maps fQ → UQ (D), x 7→ x± are Q-algebra homomorphisms preserving
           1,
         • the map Y → UQ , y 7→ y is Z-linear,
         • yy0 = yy0 for y, y0 ∈ Y ,
         • yθi± = θi± (y ± hy, ai i) for y ∈ Y, i ∈ I,
         • θi+ θ j− θ j− θi+ = δi, j ǎi for i, j ∈ I.
This is a generalization of the usual universal enveloping algebra (attached to a
semi-simple algebra), and will be called the universal enveloping algebra attached
to a root datum. One may equip it with a Hopf algebra structure as in op. cit.

7.2.3. Kostant type forms. Let UZ (D) be the subring of UQ (D) generated by
                  y        1
                        := y y − 1 · · · y − k + 1 for y ∈ Y, k ∈ N
                    k        k!
                ±
as well as θi (m) for i ∈ I, m ∈ N. It is a Z-lattice in UQ (D) which is the analogue
of Kostant’s Z-form see [72], which it agrees with when D is of adjoint type (we
eventually need to restrict to this case due to existing limitations in the literature).

7.2.4.     Let C0Q (D) denote the category of unital UQ (D)-modules M such that

   M = ⊕λ ∈X M λ where we set M λ = {z ∈ M | yz = hy, λ iz for any y ∈ Y }. (7.10)
The algebra form §7.1.3 attached to the map φ : Zu → Q, u 7→ 1 will be denoted
U̇Q (D) and its category of unital modules written CQ (D). From [80, §5.4], one has
                                       ∼
                                       =
an equivalence of categories CQ (D) → C0Q (D). These categories are semi-simple
with the simple objects Vλ := Λλ ,Q , λ ∈ X+ introduced above. Letting GD denote
the algebraic group attached to the root datum D, it then also follows from [80] that
there is an equivalence to the the category of finite-dimensional representations of
GD (C), i.e.
                          Rep(U̇C (D)) ≃ Rep(GD (C)).                            (7.11)

7.3. Quantum groups at roots of unity.

7.3.1. Roots of unity. Let ` be any positive integer. If ` is even, set l = 2` while
if ` is odd, we define l = ` or 2`. Let Zl = Zu /(Φl (u)) where Φd is the d-th
cyclotomic polynomial. In this section, we only consider φ : Zu → A which factors
through Zl , i.e. Φl (φ (u)) = 0. For ζ ∈ C a primitive l-th root of unity, we define
the corresponding map φζ : Zu → C sending u 7→ ζ . With respect to this map, we
then write
                            U̇ζ (D) := C ⊗Zu U̇Zu (D).                           (7.12)
                                           77
7.3.2. On Rep(U̇ζ (D)). The category Rep(U̇ζ (D)) is isomorphic to the category
of finite dimensional highest weight complex modules of type 1 of the (non-dotted)
quantum group at a root of unity (as defined as in [8, Definition 1.1], see also [71]).
For λ ∈ X+ , we denote by ∆λ the specialization of the modules Λλ defined in §7.1.5.
We denote by ∇λ the costandard object of highest weight λ (for its construction,
which is essentially ‘dual’ to that of ∆λ , we refer to either [57] where they are de-
noted by H 0 (λ ) in or to [36] where they are denoted as A(λ )). The characters of
both standard and costandard modules are given by the Weyl character formula. Let
Lλ be the simple module with highest weight λ ∈ X+ in Rep(U̇ζ (D)). Their char-
acters are given by Lusztig’s conjecture (see, for example [57, Appendix H.12]).
7.3.3. Tilting modules. Tilting modules are a class of representations that naturally
appear when studying Rep(U̇ζ (D)). They are objects admitting both a filtration by
standard modules and a filtration by costandard modules. Andersen [6, Theorem
2.5] showed (using ideas from modular representation theory) that there exists a
unique indecomposable tilting module in Rep(U̇ζ (D)) with highest weight λ ∈ X+ .
We shall denote such a tilting by Tλ . See [7, §2] for an explicit construction of Tλ .
   The characters of Tλ are known due to the work of Soergel [110, 111] in many
cases.
7.3.4. On Rep(U̇(Dl )). If (I, ·, D) is our given root datum, where D = (Y, {ǎi }, X, {ai })
is assumed of adjoint type, we may construct the l-twisted root datum (I, ◦l , Dl )
                                                 ai }), we have that ae∨i = li−1 ǎi , aei = li ai
                                    a∨i }, Xl , {e
as in §3.2.8. Denoting Dl := (Yl , {e
                                                                                           2
where li were defined in §3.2.8. With respect to (I, ◦l ) we then have ui := uli (cf.
[84, 35.2.1]) so that if we are working with a map φ : Zu → A as in the previous
section, we are necessarily in the quasi-classical case. So, for example U̇C (Dl ) for
the map Zu → C, v 7→ ζ is a quasi-classical specialization of U̇Zu (Dl ), and hence
from (7.11)
                         Rep (U̇(Dl )) ∼
                               C         = Rep(Gl (C)),                                   (7.13)
where G` is the algebraic group with root datum Dl .
7.3.5. Quantum Frobenius. For any φ : Zl → A as in §7.3.1, the quantum Frobe-
nius morphism of Lusztig, see [84, Ch. 35], is the unique A-algebra homomor-
phism Fr : U̇A (D) → U̇A (Dl ) such that for all i ∈ I, n ∈ Z and ζ ∈ X we have
                                                               
              lki                                               lki
       (k)
 Fr : Ei 7→     E i 1ζ    if k ≡ 0 mod   li ,  and Fr : Fi 7→ Fi 1ζ if k ≡ 0 mod li ,(7.14)
                                                           (k)
             0           otherwise                             0          otherwise .
Using this map of algebras, we can define a fully faithful and exact embedding
                               Fr : CA (Dl ) → CA (D).                               (7.15)
For Zu → C, v 7→ ζ as above, we obtain a functor Fr : Rep(GDl (C)) → Rep(U̇ζ (D)).
                                            ∨
Replacing D by Ď, writing Ďl = D(Q,l) for (Q, l) as in §3.2.8, and setting
Ǧ` := GĎl ,
                        Fr : Rep(Ǧ` (C)) → Rep(U̇ζ (Ď)).                           (7.16)
                                             78
The simples in Rep(Ǧ` (C)), which we’ll denote from now on as Vλ̌ , are parame-
terized by λ̌ ∈ Yl,+ which we regard as a subset of Y+ (the latter is the set param-
eterizing simples Lµ̌ in Rep(U̇ζ (Ď)).) As Fr is exact, Fr(Vλ̌ ) ∈ Rep(U̇ζ (Ď)) for
λ̌ ∈ Yl is again simple. Unlike the general simple in the latter, one can explicitly
write down the character of these simples using a dilation of the Weyl character
formula [84, Prop. 35.3.2].

7.3.6. Tensor product theorems. Recall the notion of restricted weights from §3.4.9
and consider the box in the affine root system determined by Ďl . Concretely,
                    l = {λ̌ ∈ Y | 0 ≤ hλ̌ , ai i < li , for all i ∈ I}.                        (7.17)

Note that each λ̌ ∈ Y+ can be written uniquely as λ̌ = λ̌0 + η̌ where λ̌0 ∈ l , η̌ ∈ Yl .

Theorem. Let λ̌0 ∈ l and η̌ ∈ Yel,+ .
    (1) (Steinberg-Lusztig) We have an isomorphism of modules
                                  Lλ̌0 +η̌ ≃ Lλ̌0 ⊗ Fr(Vη̌ ).                                   (7.18)

    (2) (Tilting) Writing λ̌0† := λ̌0 · w0 + 2(ρe∨ − ρ̌), we have
                                  Tλ̌ † +η̌ ≃ Lλ̌ † ⊗ Fr(Vη̌ ).                                 (7.19)
                                     0          0

The first is the analogue Steinberg tensor product theorem from modular represen-
tation theory which has been proved for l odd by Lusztig [79] (for general l, see
[9]). The second is due to Andersen [6, Corollary 5.10] , and follows closely from
related results by Donkin in the mod p literature.

7.4. Background on enriched Grothendieck rings.

7.4.1. Enriched Grothendieck rings of highest weight categories. Given an abelian
category C , it is natural to consider the derived bounded category Db (C ) (see [52,
Chapter III] for definitions and basic properties of derived categories). The Grothendieck
ring does not distinguish between the C and Db (C ), namely K0 (C ) ≃ K0 (Db (C )).
For a natural class of categories arising in representation theory, a finer invariant
called the enriched Grothendieck group was introduced in [36] to partially remedy
this deficiency. To introduce it, let τ be an indeterminate and consider the ring
Z[τ, τ −1 ] of Laurent polynomials24. Let C be a highest weight categories as intro-
duced in [34] with weight poset Λ indexing simple objects in C . Define the full
additive subcategories Eˆ L ⊂ Db (C ) and Eˆ R ⊂ Db (C ) as in [36, Section 2]. Then
K0L (C ) is the free abelian group generated by symbols [X], X ∈ Eˆ L subject to the
relation [X] + [Z] = [Y ] if there is a distinguished triangle X → Y → Z in Eˆ L . One
may define K0R (C ) similarly.

   24At the categorical level, τ −1 will correspond to the exact functor t : Db (C ) → Db (C ) that maps
τ −1 : X 7→ X[−1] on objects and t : f 7→ f [−1] on morphisms.
                                                    79
7.4.2. Inner products. Let C be a highest weight category equipped with weight
poset Λ+ . For λ ∈ Λ+ , we denote by ∆λ the standard object of highest weight
λ (also known as the Weyl module) and by ∇λ the costandard object of highest
weight λ (which is the induced module and denoted H 0 (λ ) in [57]). Let Lλ be the
simple module with highest weight λ ; it appears as the unique irreducible quotient
of ∆λ .
Proposition. [36, Proposition 2.3] The spaces K0L (C ) and K0R (C ) are free Z[τ, τ −1 ]-
modules with basis given by {[∆λ ], λ ∈ Λ+ } and {[∇λ ], λ ∈ Λ+ }, respectively.
Moreover, there is a natural non-degenerate, sesquilinear pairing
 h·, ·i : K0L (C ) × K0R (C ) → Z[τ, τ −1 ];   h[V ], [W ]i = R Hom(V,W ) := ∑i≥0 τ −i dim(ExtiC (V,W )).(7.20)
Under this pairing [∆µ ], [∇η ] form dual bases, i.e., h[∆µ ], [∇η ]i = δµ,η for µ, η ∈
Λ+ .
Using this pairing, for V ∈ C its image V in K0R (C ) may be written as
                               [V ] = ∑h[∆µ ], [V ]i [∇µ ].                        (7.21)
                                       µ

Remark. Note that in (7.20) we are using τ −1 instead of the t of [36]. This is done
to make the matching with the results in §3.3 easier.
7.4.3. A trivial example. Let (I, ·, D) be a root datum, and G the corresponding
algebraic group. Then Rep(G(C)), the semi-simple category of finite-dimensional
representations of G(C), is a highest weight category and there are natural Z[τ, τ −1 ]
isomorphisms
    K0L (Rep(G(C))) ≃ K0R (Rep(G(C))) ≃ Z[τ, τ −1 ] ⊗Z K0 (Rep(G(C))).             (7.22)
Let us denote by K0 (Rep(G(C))) the space Z[τ, τ −1 ] ⊗Z K0 (Rep(G(C))).

7.5. Extension formulas in Rep(U̇ζ (Ď)). In this section we need to make more
stringent requirements on D and `. Fix D = (Y, {ǎi }, X, {ai }), which implies Ď =
(X, {ai },Y, {ǎi }). We emphasize that all representations from now on are over C.
Our restrictions are:
      • We assume (I, ·, D) is simply-connected. This means Ď is of adjoint type
         and so admits a primitive twist (Q̌, l) for any l. The quantum group U̇ζ (Ď)
         is also isomorphic to the quantum group associated to a semi-simple Lie
         algebra U̇ζ (g).
      • We choose l larger than the Coxeter number of the semi-simple Lie algebra
         g of Cartan type given by (I, ·) and also that l is KL-good (as defined
         in [112, §7]). Under these assumptions, one can invoke the Kazhdan–
         Lusztig equivalence [69].
   Under the first assumption, it is known that Rep(U̇ζ (Ď)) is a highest weight
category see [35], see also [71, §2]. It has standard objects ∆λ := Λλ ,C , costan-
dard objects which we denote as ∇λ and irreducibles Lλ for λ ∈ Y+ . The second
assumption is needed because we use a result of Ko (Proposition 7.5.3).
                                               80
7.5.1. Under the assumptions above, the spaces K0L (Rep(U̇ζ (Ď))) and K0R (Rep(U̇ζ (Ď)))
are free Z[τ, τ −1 ]-modules with (dual) bases given by the classes [∆λ̌ ] and [∇λ̌ ],
respectively, for λ ∈ Y+ . We will mostly be working with K0R (Rep(U̇ζ (Ď))). Re-
call that K0 (Rep(Ǧ` (C))) defined in §7.4.3 has basis [Vη̌ ], η̌ ∈ Yl,+ . The quantum
Frobenius map (7.16) equips K0R (Rep(U̇ζ (Ď))) with the structure of a K0 (Rep(Ǧ` (C)))-
module defined as follows: for V ∈ Rep(Ǧ` (C)) and W ∈ Rep(U̇ζ (Ď)), then

                 [W ]       [V ] = [W ⊗ Fr(V )] ∈ K0R (Rep(U̇ζ (Ď)).                    (7.23)

The Z[τ, τ −1 ]-module K0R (Rep(U̇ζ (Ď)) also has another basis coming from simple
modules [Lλ̌ ], λ̌ ∈ Y , and Theorem 7.3.6(1) implies that for λ̌0 ∈ l and η̌ ∈ Yl,+ ,
one has

                  [Lλ̌0 ]      [Vη̌ ] = [Lλ̌0 +η̌ ] ∈ K0R (Rep(U̇ζ (Ď)).                (7.24)

This relation determines the structure of K0R (Rep(U̇ζ (Ď)) as a K0 (Rep(Ǧ` (C)))-
module in the following sense: if λ̌ ∈ Y+ and η̌ ∈ Yl,+ , we write λ̌ = λ̌0 + η̌ 0 with
λ̌0 ∈ l and η̌ 0 ∈ Yl,+ , and then we can compute
                                         
          [Lλ̌ ] [Vη̌ ] = [Lλ̌0 ] [Vη̌ 0 ]  [Vη̌ ] = [Lλ̌0 ] ([Vη̌ 0 ] · [Vη̌ ]), (7.25)

where [Vη̌ 0 ]·[Vη̌ ] is computed in K0 (Rep(Ǧl (C)) using the usual Littlewood–Richardson
coefficients.
    Alternatively, the Z[τ, τ −1 ]-module K0R (Rep(U̇ζ (Ď)) also has another basis con-
sisting of indecomposable tilting modules [Tλ̌ ], λ̌ ∈ Y and if λ̌ = λ̌0 + η̌ with
λ̌0 ∈ l and η̌ ∈ Yl,+ , Theorem 7.3.6 implies that

                    [Tλ̌ † ]    [Vη̌ ] = [Tλ̌ † ] ∈ K0R (Rep(U̇ζ (Ď)).                  (7.26)
                        0



7.5.2.                 esph (D) ≃ Hsph (D(Q,l) ) from §3.8.1. It is a standard fact
                esph = H
         Recall H
that

                        K0 (Rep(Ǧ` (C))) ≃ Z[Yl ]W ≃ H
                                                      esph ,                             (7.27)

where in §3.8.1 we used Ye for Yl . The space Vesph from §3.7.3 is a H  esph -module,
where we take the twist (Q, l) to be a multiple of a primitive twist (Qprim , l). Using
Proposition 3.9.1 and Theorem 7.3.6(1), we deduce:

Proposition. The map Φ : K0R (Rep(U̇ζ (Ď)) → Vesph sending [Lλ̌ ] 7→ [G− ] for λ̌ ∈ Y+
                                                                                    λ̌
is an isomorphism of Z[τ, τ −1 ]-modules which intertwines the K0 (Rep(Ǧ` (C))) ≃
Hesph actions. In particular,

         Φ(v) ? cµ̌ = v        [Vµ̌ ]   for   v ∈ K0R (Rep(U̇ζ (Ď)), µ̌ ∈ Yl,+ .        (7.28)
                                                 81
7.5.3. Let Weaff := Waff (I, ◦l , D∨ ). Let us also recall the definition of A•−,n from
                                   l
§3.4.7, which is again defined for root datum (I, ◦l , D∨l ). The following result of
Ko will be used in our matching.
                                                             •
Proposition. [71, Thm. 4.10] Fix η̌ ∈ A−,n and J ⊂ Iaff as in (3.77) and let x, y ∈
Waff such that η̌ • x, η̌ • y ∈ Y+ . Then
                         h[∆η̌•y ], [Lη̌•x ]i =          ∑ (−τ −1 )`(z) m−zy,x .             (7.29)
                                                            el )
                                                       z∈J (W

Proof. This is essentially the result of [71, Thm. 4.10]; we will now explain how
to translate it into our setting. Unlike op. cit, we use a right action of W      el on the
weight lattice as opposed to a left action. As such, x • λ in op. cit corresponds to
our λ • x−1 . Now the t in op. cit corresponds to our τ −1 and t `(x)−`(y) Py,x (t −1 ) from
(2.3.1) in op. cit (which, we note, matches with the my,x (t) in [57, II.C.2] needs to
be replaced with m−  y−1 ,x−1
                              in our conventions, since MJ in (3.42) is a left module for
HW while [57] works with right modules and Jantzen’s m is our m− ). Finally, we
note that the expression
t `(x)−`(y) Py,x
             J
                 (t −1 ) := t `(x)−`(y)      ∑ (−1)l(z) Pyz,x (t −1 ) = ∑ (−t)l(z)t `(x)−`(yz) Pyz,x (t −1 )
                                             eaff )J
                                          z∈(W                                  eaff )J
                                                                             z∈(W

in [71, §4.2] matches to Jantzen’s [57] ∑z∈(Wel )J (−t −1 )`(z) myz,x (t) which in turn
matches to our ∑z∈J (Wel ) (−τ −1 )`(z) m−
                                         zy,x .                                                   

7.5.4. The following result follows immediately by combining Propositions 7.5.2
and 7.5.3, (7.27) and (3.127) and the definition of Qλ̌η̌,µ̌ in (3.133).

Proposition. For any µ̌ ∈ Y+ and λ̌ ∈ Yl,+ we have

                                 [∇µ̌ ]       [Vλ̌ ] = ∑ Qλ̌η̌,µ̌ [∇η̌ ].                    (7.30)
                                                          η̌∈Y

Proof. It suffices to show that for any µ̌ ∈ Y+ , we may write
                                  [Lµ̌ ] = [∇µ̌ ] + ∑ o− ˇ [∇ξˇ ].                           (7.31)
                                                                   µ̌,ξ
                                                          ξˇ <µ̌

We know that o− ˇ = o−
                     y,x , so the result above follows by (7.21), (3.128) and (7.29).
              µ̌,ξ
                                                                                   
Remark. The proof presented for this result is not optimal as it assumes (via the
dependence on [71]) the graded version of Lusztig’s conjecture. The restrictions
on l which we place (especially l being KL-good) stem from the application of
Kazhdan–Lusztig equivalence that is used to prove this conjecture. We believe25
there should be a proof that bypasses this work and just uses the fact ∇µ̌ ⊗ Fr(Vζˇ )
has a ∇ filtration where the successive quotients can be expressed combinatorially.
   25We thank Hankyung Ko and Catharina Stroppel for discussions and advice on this point.
                                                            82
7.5.5. On tiltings and dualities. Using the Zτ -module K0L (Rep(U̇ζ (Ď)) allows us
to naturally connect (at least conjecturally) the tilting modules with the polynomi-
als oλ̌ ,µ̌ . Recall that oλ̌ ,µ̌ ∈ Z+
                                     τ , so we do not expect it to arise from an inner-product
of the type introduced in Proposition 7.4.2, which would take values in τ −1 . On
the other hand, one may just take oµ̌,λ̌ ∈ Z−       τ and posit that

                                     hTλ̌ , ∇µ̌ i = oµ̌,λ̌ .                                     (7.32)

If this were true, then in K0L (Rep(U̇ζ (Ď)), we would have
              [Tλ̌ ] = [∆λ̌ ] + ∑ hTλ̌ , ∇µ̌ i [∆µ̌ ] = [∆λ̌ ] + ∑ oµ̌,λ̌ [∆µ̌ ]                 (7.33)
                                     µ̌<λ̌                               µ̌<λ̌

We could not find a reference for (7.32) in the literature, though it does seem to hold
at the level of specialized characters from the work of Soergel [111]. Actually,
(7.32) seems to be the content of certain Koszul type dualities at the categorical
level (see [1, §1.3]); it is also consistent with the known multiplicity of ∇µ̌ in a ∇-
flag of Tλ̌ (the later of which produces character formulas for many Tλ̌ , see [110,
§7] and [111]).

                          8. M AIN RESULT AND APPLICATIONS
    In this section we formulate the main connection between the results in Part I,
II, and §7. In §8.1, the main result is stated and the consequences for Lysenko’s
conjecture in the ‘quantum’ Geometric Langlands program are drawn. In §8.2,
an extension of Savin’s local Shimura correspondence to the Whittaker level is
formulated. We use this to highlight certain classical behaviors within metaplec-
tic Whittaker spaces connecting to recent work of Gao–Shahidi–Szpruch [50]. In
§8.3, we describe some combinatorial properties and a formulate some questions
concerning the different basis of Wψ (G,
                                       e K).

8.1. The main result. Let us review the different settings which our main result
will bring together.

8.1.1. The generic case. Fix (I, ·, D) a root datum, written D     e = (Y, {ǎi }, X, {ai }),
a (Q, n) a twist on D, and associated twisted root datum (I, ◦(Q,n) , D)   e where D =
       a∨i }, X, {e
(Ye , {e          ai }). Assume that D  e is of simply-connected type and construct the
Hecke algebra H                     e and its module V as in §4.2. V has a decomposition
                     eaff := Haff (D)
V = ⊕η̌∈A• V(η̌) into H       eaff -submodules and bases {v } and {Y } for λ̌ ∈ Y .
                                                            λ̌        λ̌
              −,n

    At the spherical level, we have Hsph := ε Haff ε and its module Vsph = {[w] | w ∈
                                         e         e
V}, where [w] := wε for any w ∈ V. The algebra H        esph is equipped a basis ce while
                                                                                            λ̌
the module Vsph is equipped with bases [vλ̌ ], [Gλ̌ ], and [G− ] (all indexed by λ̌ ∈ Y+ ),
                                                                        λ̌
as well as their rescaled versions [Yλ̌ ], [Gλ̌ ], [G− ] for λ̌ ∈ Y+ , where
                                                           λ̌

         [vλ̌ ] = κ(λ̌ )[Yλ̌ ],   [G− ] = κ(λ̌ )[G− ],         and [Gλ̌ ] = κ(λ̌ )[Gλ̌ ],         (8.1)
                                    λ̌            λ̌

and κ(λ̌ ) is a product involving the Gauss sum parameters as in (4.40).
                                                  83
8.1.2. The quantum case. Assume that D is of simply-connected type (i.e., Ď is
of adjoint type.) For any positive integer `, define the integer l as in §7.3.1 and
construct the corresponding quantum group at a primitive l-th root of unity U̇ζ (Ď).
Write (Q, l) for the primitive twist on D (see §3.2.8) so that (D(Q,l) )∨ is equal to
Ďl , the l-twist from the theory of quantum groups at roots of unity. In §7.5.1 we
constructed the module K0R (Rep(U̇ζ (Ď))) for the algebra K0 (Rep(Ǧ` (C))). The
module is equipped with bases of simple modules {[Lλ̌ ]}, indecomposable tilting
modules [Tλ̌ ], and costandard modules {[∇λ̌ ]} for λ̌ ∈ Y+ . On the other hand, the
algebra K0 (Rep(Ǧ` (C))) comes equipped with bases [Vη̌ ], η̌ ∈ Yl,+ , and its (right)
action on K0R (Rep(U̇ζ (Ď))) is denoted by , i.e. [W ] [V ] = [W ⊗ Fr(V )] for
W ∈ Rep(U̇ζ (Ď)) and V ∈ Rep(Ǧ` (C)).

8.1.3. The p-adic case. Fix ψ an additive character of conductor 0 of the lo-
cal field F of residue characteristic q, an integer n such that q ≡ 1 mod 2n, and
ε : µn → C∗ as in §5.3.4. We assume now that both (I, ·, D) and (I, ◦(Q,n) , D)
                                                                             e are of
simply-connected type. In Part II, we have constructed a metaplectic group G    e with
associated spherical and Iwahori–Hecke algebras of genuine functions H(G,        e I−)
and H(G, e K) as well as their Whittaker modules Wψ (G,    e I − ) and Wψ (G,e K), re-
spectively. The right actions of the Hecke algebras were denoted by ?. We recall
that Wψ (G,e K) has a natural p-adic basis which we write as Jeµ̌ , µ̌ ∈ Y+ as well
as corresponding canonical bases that were denoted as L    e µ̌ and Tfµ̌ . The algebra
H(G,e K) has a natural basis ce for λ̌ ∈ Ye+ which, under the Satake isomorphism, is
                               λ̌
mapped to the character of the associated irreducible, highest weight representation
                    e ∨ (C).
Vλ̌ of the group G(D)

8.1.4.   Connecting the above constructions, we have the following.
Theorem. Let ` be a positive integer satisfying the assumptions in §7.5 and l de-
fined as in §7.3.1. Fix (I, ·, D) of simply connected type with primitive twist (Q, l)
such that (D(Q,l) )∨ = Ďl is also of simply connected type. The maps p : Zτ,g → C
(see §2.3.3) and q : Zτ,g → Zτ (see §2.3.2) extend to isomorphisms of C and Zτ -
modules respectively that we continue to denote by the same name,
                                       ≃
                     p : C ⊗Zτ,g Vsph −→ Wψ (G,
                                             e K)       sending [Yµ̌ ] 7→ Jµ̌ for µ̌ ∈ Y+(8.2)
                                                                                          ,
             −1                ≃
q : Z[τ, τ        ] ⊗Zτ,g Vsph −→ K0R (Rep(U̇ζ (Ǧ)))   sending [Yµ̌ ] 7→ [∇µ̌ ] for µ̌ ∈ Y(8.3)
                                                                                           +.

The map p intertwines the H  esph and H(G,  e K) actions, while q intertwines the H     esph
and K0 (Rep(Ǧ` (C))) actions. Moreover, p maps [G−     µ̌ ] to Lµ̌ , [Gµ̌ ] to Tµ̌ . On the
                                                                e               f
other hand, q sends [G−           −
                      µ̌ ] (or [Gµ̌ ]) to [Lµ̌ ].

Remark. In §8.1.6, we comment on the image of [Gµ̌ ] under the ’dual’ of q. Let
us also mention here that we may work on the p-adic side with a twist that is a
multiple of a primitive twist, then the main theorem will still hold after choosing l
accordingly, see Remark 3.2.8.
                                               84
As for the proof of this theorem: first on the quantum side, the theorem follows
from the main results of §7: Theorem 7.3.6 and Proposition 7.5.4; on the p-adic
side, the theorem follows from Proposition 6.3.1.
8.1.5. Lysenko’s Conjecture. Within the quantum Langlands program (see [46]),
Lysenko [85, Conjecture 11.2.4] formulated the Casselman–Shalika problem as
giving an interpretation of a certain quantity (see [85, equation (62)])– essentially,
the function-sheaf equivalent of our Jeµ̌ ? ceλ̌ – in terms of quantum groups at a root
of unity. He conjectured a precise relation in Conjecture 11.2.4 of loc. cit. and the
following result seems to answer the version of his conjecture that can be seen at
the level of functions.
                                                         ζˇ
Corollary. For λ̌ ∈ Y+,l , µ̌, η̌ ∈ Y+ there exist g Q ∈ Zτ,g defined via (4.64), such
                                                      µ̌,λ̌
that
     Jeµ̌ ? ce = ∑η̌ p(g Qλ̌ )Jeη̌ and               V = ∑η̌ q(g Qη̌ ) ∇η̌ .
                                                                   
           λ̌             η̌,µ̌             ∇µ̌          λ̌              µ̌,λ̌
                                                                                  (8.4)
The p-adic statement is Theorem 6.3.2, the quantum statement is Proposition 7.5.4.
8.1.6. Tiltings, dualities, and inner-products. In this paragraph only, denote the
                        ≃
map q : Zτ ⊗Zτ,g Vsph → K0R (Rep(U̇ζ (Ď)) which sends [vλ̌ ] 7→ ∇λ̌ by qL now, and
let us define a corresponding ‘left’-variant
                              ≃
       qL : Zτ ⊗Zτ,g Vsph −→ K0L (Rep(U̇ζ (Ď))          by sending [vλ̌ ] 7→ ∆λ̌ ,   (8.5)
where [vλ̌ ] is the image of [vλ̌ ] under the involution d. Dualizing (3.127) one
obtains
                  [Gλ̌ ] = [vλ̌ ] + ∑ oµ̌,λ̌ [vµ̌ ], where oµ̌,λ̌ ∈ Z−
                                                                     τ .              (8.6)
                                      µ̌<λ̌

Applying qL to the right hand side, we obtain [∆λ̌ ] + ∑µ̌<λ̌ oµ̌,λ̌ [∆µ̌ ], which under
assumption (7.32) is just equal to [Tλ̌ ], i.e. qL ([Gλ̌ ]) = [Tλ̌ ] under this assumption.
The map qL may be understood as follows. The pairing of Proposition 7.4.2
                   K0L (Rep(U̇ζ (Ď)) × K0R (Rep(U̇ζ (Ď)) → Zτ                       (8.7)
is uniquely defined such that ∆λ̌ and ∇λ̌ are dual bases. Using the map qL and the
diagram below, one obtains a unique pairing on Zτ ⊗Zτ,g Vsph
          Zτ ⊗Zτ,g Vsph              ×               Zτ ⊗Zτ,g Vsph               Zτ
                  qL                                          qR                      (8.8)

        K0L (Rep(U̇ζ (Ď))           ×             K0R (Rep(U̇ζ (Ď))            Zτ

such that [vλ̌ ] and [vλ̌ ] are dual bases.
Remark. Presumably there is an inner product on Wψ (G,      e K) given in terms of
p-adic integrals, defined independently of our main result, but consistent with it.
Such an inner product would allows us to give a consistent p-adic interpretation of
all quantum objects Lλ̌ , ∆λ̌ , ∇λ̌ and Tλ̌ simultaneously.
                                              85
8.2. On the local Shimura correspondence.

8.2.1. Let (I, ·, D) be any root datum equipped with a twist (Q, n) and correspond-
ing twisted root datum written now as D(Q,n) = (Y(Q,n) , {ǎ(Q,n),i }, X(Q,n) , {a(Q,n),i }).
Denote the algebraic group attached to this twisted root datum as G(Q,n) . Write
                                 −
G(Q,n) := G(Q,n) (F), and let I(Q,n)  and K(Q,n) be Iwahori subgroups and compact
subgroups defined in analogy with I − and K, respectively, where we note that a
choice of dominant chamber for the root system defined by D also picks one out
in D(Q,n) . In this notation, the local Shimura correspondence of Savin [103] and
McNamara [90], see (5.18) and (5.16), states
       e I − ) ≃ H(G(Q,n) , I(Q,n) )
     H(G,                                and        e K) ≃ H(G(Q,n) , K(Q,n) ).
                                                  H(G,                                 (8.9)

8.2.2. Let ψ be an additive character on F of conductor 0 extended to the unipo-
tent subgroup U(Q,n) of G(Q,n) as in §6.1.1. We may then define Wψ (G(Q,n) , I(Q,n) )
and Wψ (G(Q,n) , K(Q,n) ) as the Iwahori and spherical Whittaker spaces for the linear
group G(Q,n) . The structure of these modules over H(G(Q,n) , I(Q,n) ) and H(G(Q,n) , K(Q,n) )
was partially reviewed in §1.1.1. Let us also mention here some additional facts.
      • It is known (see [29]) that Wψ (G(Q,n) , I(Q,n) ) is the anti-spherical module
                                                              I−
         for H(G(Q,n) , I(Q,n) ) with anti-spherical vector vψ,−
                                                             (Q,n)
                                                                 ρe∨
                                                                     ∈ Wψ (G(Q,n) , I(Q,n) ),
         i.e.
         Wψ (G(Q,n) , I(Q,n) ) ∼
                               = C[Y(Q,n) ] as vector spaces and as a module over
         H(G(Q,n) , I(Q,n) ) ∼
                             = HW ⊗ C[Y(Q,n) ], the structure is specified as follows:
                                                                         (Q,n)
                                                                              I−
         C[Y(Q,n) ] acts by translation and for each i ∈ I, Hsi acts on vψ,− ρe∨
                                                                                 via the
        scalar −τ −1 .
      • The space Wψ (G(Q,n) , K(Q,n) ) has a basis J(Q,n),µ̌ for µ̌ ∈ Y(Q,n),+ and
        H(G(Q,n) , K(Q,n) ) has basis cλ̌ for λ̌ ∈ Y(Q,n),+ , see (1.5). One has J(Q,n),0 ?
        cλ̌ = J(Q,n),λ̌ .


8.2.3. Decompose Wψ (G,            = C[Y ] ∼
                             e I−) ∼                         e I − )(η̌) into H(G,
                                            = ⊕η̌∈A•−,n Wψ (G,                     e I−)
submodules as in Proposition 6.2.5. Using Theorem 6.2.1 together with the ob-
servation that −ρ̌ • w = −ρ̌ for all w ∈ W , we conclude that Wψ (G,    e I − )(−ρ̌) has
                                                   e I − ) and the Hs , i ∈ I act on Y
rank one as a module over C[Ye ] = C[Y(Q,n) ] ⊂ H(G,                  i
                                                                                     e−ρ̌
via the scalar −τ −1 . The following is an Iwahori–Whittaker variant of Savin’s local
Shimura correspondence. It follows by using the description of Wψ (G(Q,n) , I(Q,n) )
in the previous paragraph.
                                         −
                        e−ρ̌ 7→ vI(Q,n) ∨ extends to an isomorphism of H(G,
Proposition. There maps Y                                                e I − )-
                                 ψ,−ρe
modules
                                         ≃
                         e K)(−ρ̌) −→ Wψ (G(Q,n) , I − ).
                     Wψ (G,                         (Q,n)                             (8.10)
                                             86
                                                                       I−                I−
Remark. This isomorphism must send Y e
                                       −ρ̌+ρe∨ = Y−ρ̌ Yρe∨ to vψ,−ρe∨ Yρe∨ = vψ,0 .
                                                 e             (Q,n)          (Q,n)


This computation explains the appearance of the coweight −ρ̌ + ρe∨ in the next
paragraph.

8.2.4.    From Corollary 6.3.1, we have a decomposition Wψ (G,  e K) = ⊕
                                                                          η̌∈A−,n Wψ (G, K)(η̌)
                                                                               •        e
into H(G, e K)-modules. One observes that Wψ (G,   e K)(−ρ̌) := Wψ (G,e I − )(−ρ̌)?eK
is a free rank one H(G,   e K)-module. Within it, consider the elements Je−ρ̌+ρe∨ +µ̌ =
Y
e
  −ρ̌+ρe∨ +µ̌ ? eK for µ̌ ∈ Y+ = Y(Q,n),+ , where we note that µ̌ ∈ Y+ implies −ρ̌ +
                            e                                       e
  ∨
ρe + µ̌ ∈ Y+ . The spherical extension of the previous result can now be stated:

Proposition. There is an isomorphism of H(G,
                                          e K)-modules
                                           ≃
                        e K)(−ρ̌) −→ Wψ (G(Q,n) , K(Q,n) )
                    Wψ (G,                                                           (8.11)

which is defined by sending Jeρe∨ −ρ̌ 7→ J(Q,n),0 . For µ̌ ∈ Ye+ , one has (cf. (1.5))

                              Jeρe∨ −ρ̌ ? ceµ̌ = Jeρe∨ −ρ̌+µ̌ ,                      (8.12)
Equation (8.12) together with Theorem 6.3.2 imply

Corollary. Let µ̌ ∈ Ye+ . Then Jeρe∨ −ρ̌+µ̌ = L ρ −ρ̌+µ̌ = Tρe∨ −ρ̌+µ̌ .
                                              e e∨         f

8.2.5. Quantum group interpretation. On the quantum group side, Corollary 8.2.4
and equation (8.12) correspond to the fact that in Rep(U̇ζ (Ď)) the representation
Lρe∨ −ρ̌+µ̌ for µ̌ ∈ Ye+ is equal to the costandard and indecomposable tilting cor-
responding to the same weights (see [88, Corollary 6.8] and [6]). In particular,
equation (8.12) ‘corresponds’ on the quantum side to [88, Lemma 5.2]. The space
Lρe∨ −ρ̌ is called the Steinberg representation and plays an important role on the
quantum side (see [6]).

8.2.6. Relation to the p-adic literature. An asymptotic or usual Casselman–Shalika
formula (in the terminology of our introduction) was found in [50] for the same
coweight ρe∨ − ρ̌ at the level of unramified Whittaker functions on the metaplec-
tic group. In [22, Section 5] a similar result is shown using integrable systems
techniques for certain metaplectic covers of GLr . Actually in op. cit. multiple
coweights where similar phenomenon occur are shown. This stems from the fact
that glr is not semi-simple. In the semi-simple case, one expects that ρe∨ − ρ̌ will
be the only point at which such phenomenon can occur.
   We also note here a proof of the classical (non-metaplectic) Casselman–Shalika
formula in terms of the Steinberg-Lusztig theorem was given in [74, Theorem 2.3].

8.3. Whittaker functions and g-twisted combinatorics. In this section we dis-
cuss in more detail the g-coefficients which arise in our work and mention a few
questions that can be solved using the connections to the theory of quantum groups.
We fix the same notation and hypotheses as in §8.2.
                                                87
 8.3.1. The µ̌-large asymptotic Casselman–Shalika formula. Let µ̌ ∈ Y+ and λ̌ ∈
Ye+ . As in (6.29), write
                                       ζˇ
              Jeµ̌ ? ceλ̌ = ∑ζˇ ∈Y+ g Q Jeζˇ or equivalently
                                          µ̌,λ̌
                                                                                    ζˇ
                                                                                                          (8.13)
              [Yµ̌ ] ? ceλ̌ = [Yµ̌ ]♦χλ̌ = [Yµ̌ · χλ̌ (Y )] = ∑ζˇ ∈Y+ g Q                [Y ˇ ].
                                                                                    µ̌,λ̌ ζ

In general, straightening rules may be needed to rewrite the product [Yµ̌ · χλ̌ (Y )] in
terms of the basis [Yλ̌ ] with λ̌ ∈ Y+ . However, if µ̌ is large compared to λ̌ in the
sense that µ̌ + ζˇ ∈ Y+ for any ζˇ appearing as a weight of the representation Vλ̌ ,
then no such straightening relations are necessary. We shall say that µ̌ is λ̌ -stable
if this condition is satisfied. Equations (4.63) and (4.65) can be used to show for
aλ̌ ,µ̌ ∈ Z:

Proposition. Let λ̌ ∈ Ye+ and let µ̌ ∈ Y+ be λ̌ -stable. Then writing χλ̌ (Y ) =
∑ζˇ ∈Ye aλ̌ ,µ̌ Yµ̌ ,

     [Yµ̌ ] ? cλ̌ = ∑ζˇ ∈Ye g aλ̌ ,ζˇ [Yµ̌+ζˇ ]     where        ga
                                                                      ζˇ ,µ̌
                                                                             := κ(µ̌)κ(λ̌ )−1 aζˇ ,µ̌ .   (8.14)
   There are well-known combinatorial interpretations of the coefficients aλ̌ ,ζˇ . For
example, in type A the Weyl character is written as a sum over Gelfand–Tsetlin
patterns and the coefficients are the number of certain Young Tableaux (there are
generalizations of this result to orthogonal and symplectic characters). This result
and Proposition 6.3.1 produce simple combinatorial formulas for Jeλ̌ ? ceζˇ in the
stable range:
                                    Jeµ̌ ? ceλ̌ = ∑ g aλ̌ ,ζˇ Jeµ̌+ζˇ .                                   (8.15)
                                                   ζˇ ∈Ye

8.3.2. On g-twisted LLT polynomials. As already mentioned, Qη̌ are known to
                                                                µ̌,λ̌
have non-negative coefficients by the work of Grojnowski and Haiman [53, The-
orem 5.9]. We may use g Qη̌ to define g-twisted LLT polynomials by using the
                           µ̌,λ̌
formula after [53, Eq. (13)]. Among the connections between LLT polynomi-
als and Macdonald polynomials, let us note that it is proven in op. cit. that the
Schur polynomial expansion of transformed Macdonald polynomials are positive
by using an expression of transformed Macdonald polynomials in terms of LLT
polynomials. This suggests there might exist connections between g-twisted LLT
polynomials and the metaplectic Macdonald polynomials of [100, 101].
8.3.3. On the inverse g-twisted Kazhdan–Lusztig polynomials. Consider the basis
Jeλ̌ and L   e of the Whittaker space Wψ (G,
              λ̌
                                               e K) introduced in §6.3.1. If we define
gd
    λ̌ ,µ̌ ∈ C as the expansion coefficients in

                                       Jeλ̌ = ∑ g dλ̌ ,µ̌ L
                                                          e µ̌ ,                                          (8.16)
                                                  µ̌∈Y+

then it is a natural question to understand when these coefficients are non-zero.
                                                            88
   As in the representation theory of quantum groups, we say that λ̌ ∈ Y+ is strongly
linked to µ̌ ∈ Y+ (see [8, §3]) if there exists a chain µ̌ = µ̌1 , µ̌2 , · · · , µ̌r = λ̌ of
elements in Y+ such that
     µ̌ j−1 = µ̌i • sβ̌ j + m j lβ̌ j β̌ j ≤ µ̌i   for        β̌ j ∈ Ř+ , mi ∈ Z, i = 2, · · · , r . (8.17)
In the equation above lα j is the integer l j defined in §3.2.8 when α j is a simple
positive coroot. Otherwise, for any coroot β̌ , there exists a w ∈ W such that β̌ =
w(α̌ j ), j ∈ I and we set lβ̌ = lα̌ j . The following is a p-adic analogue of the strong
linkage principle from the theory of quantum groups see [8, 10].
Proposition. If the coefficient g dλ̌ ,µ̌ 6= 0, then µ̌ is strongly linked to λ̌ .
Proof. By the discussion in §4.3.3, the coefficients g dλ̌ ,µ̌ 6= 0 will be non-zero if
and only if their quantum version dλ̌ ,µ̌ is non-zero (they will differ by a quotient of
κ factors which is product of Gauss sums). The quantum coefficients are non-zero
if a filtration of ∇λ̌ by irreducibles contains Lµ̌ . The result follows by the strong
linkage principle see [10, Theorem 8.1][8, Theorem 3.13].                             
Remark. It might be interesting to see if there is a purely p-adic proof of the above
result. We also remark that a similar result may be stated for the relation between
Jeλ̌ and T
         e , whose proof would again rest of the validity of (7.32).
           λ̌

8.3.4. On the principal submodule Wψ (G,          e K)(0). In §8.2.4 we related the sub-
space Wψ (G,  e K)(−ρ̌) with the non-metaplectic version of the spherical Gelfand–
Graev representation. Let us now look the principal subspace Wψ (G,            e K)(0). Let
λ̌ ∈ Ye+ ⊂ 0 • Weaff ∩Y+ .
   Recall that [Yλ̌ ] := Yλ̌ ε can be thought of as an element in Zτ,g [Y ] obtained by
acting with ε on Yλ̌ , where ε is defined in (3.86) and the action of the Hsi on Zτ,g [Y ]
is the one from §4.2.1. On the other hand, in (3.88), we introduced an action of
HW on Zτ [Ye ] (this is not the quantum action considered above). Using it, to each
µ̌ ∈ Ye , we define an element [Yeµ̌ ] := Yeµ̌ ε where Yeµ̌ is a typical element in the group
algebra Zτ [Ye ].
   Denote by Π(Q,n) : Zτ,g [Y ] → Zτ,g [Ye ] the natural projection sending Yµ̌ 7→ 0 if
µ̌ ∈
   / Ye and Yµ̌ 7→ Yµ̌ if µ̌ ∈ Ye . Now, one expects (as in [45, 88]) that Π(Q,n) ([Yλ̌ ]) ∈
C[Ye ] can be expanded to an identity in Zτ,g [Ye ].
                                  Π(Q,n) ([Yλ̌ ]) = ∑ g m [Yeµ̌ ].
                                                                µ̌
                                                                                                    (8.18)
                                                                λ̌
                                                         µ̌

Specializing τ 7→ −1 in the identity above, which on the quantum group side means
working with the regular Grothendieck group instead of the enriched one, the cor-
                                                µ̌
responding specialized coefficients, denoted g m , will be equal to (up to signs) the
                                                                     λ̌
                                                   µ̌+ρe∨ −ρ̌
Littlewood–Richardson coefficients c e∨      for the group Ǧ(Q,n) . This essentially
                                    ρ −ρ̌,λ̌
follows by comparing the work of Frenkel–Hernandez [45] and McGerty [88] (es-
pecially Proposition 4.4 and Theorem 5.5 in loc. cit.) to our setting. We pose
                                                      89
                                                   µ̌
the problem to study the coefficients g m for generic τ and give them a p-adic
                                         λ̌
interpretation.


                                         R EFERENCES
 [1] Pramod N. Achar, Shotaro Makisumi, Simon Riche, and Geordie Williamson, Koszul duality
     for Kac-Moody groups and characters of tilting modules, J. Amer. Math. Soc. 32 (2019), no. 1,
     261–310.
 [2] Amol Aggarwal, Alexei Borodin, and Michael Wheeler, Colored fermionic vertex models and
     symmetric functions, 2021. Preprint, arXiv:2101.01605.
 [3] H. H. Andersen, J. C. Jantzen, and W. Soergel, Representations of quantum groups at a pth
     root of unity and of semisimple groups in characteristic p: independence of p, Astérisque 220
     (1994), 321.
 [4] H. H. Andersen and D. Tubbenhauer, Diagram categories for Uq -tilting modules at roots of
     unity, Transform. Groups 22 (2017), no. 1, 29–89.
 [5] Henning Haahr Andersen, An inversion formula for the Kazhdan-Lusztig polynomials for
     affine Weyl groups, Adv. in Math. 60 (1986), no. 2, 125–153. MR840301
 [6]          , Tensor products of quantized tilting modules, Comm. Math. Phys. 149 (1992), no. 1,
     149–159.
 [7]          , Tilting modules for algebraic and quantum groups, Algebra—representation theory
     (Constanta, 2000), 2001, pp. 1–21. MR1858029
 [8]          , The strong linkage principle for quantum groups at roots of 1, 2003, pp. 2–15. Special
     issue celebrating the 80th birthday of Robert Steinberg.
 [9] Henning Haahr Andersen and Jan Paradowski, Fusion categories arising from semisimple Lie
     algebras, Comm. Math. Phys. 169 (1995), no. 3, 563–588.
[10] Henning Haahr Andersen, Patrick Polo, and Ke Xin Wen, Representations of quantum alge-
     bras, Invent. Math. 104 (1991), no. 1, 1–59.
[11] Sergey Arkhipov and Roman Bezrukavnikov, Perverse sheaves on affine flags and Langlands
     dual group, Israel J. Math. 170 (2009), 135–183. With an appendix by Bezrukavnikov and
     Ivan Mirković. MR2506322
[12] Roman Bezrukavnikov and Simon Riche, Hecke action on the principal block, Compos. Math.
     158 (2022), no. 5, 953–1019. MR4454848
[13] Anders Björner and Francesco Brenti, Combinatorics of Coxeter groups, Graduate Texts in
     Mathematics, vol. 231, Springer, New York, 2005.
[14] Nicolas Bourbaki, Lie groups and Lie algebras. Chapters 4–6, Elements of Mathematics
     (Berlin), Springer-Verlag, Berlin, 2002. Translated from the 1968 French original by Andrew
     Pressley.
[15] Alexander Braverman and David Kazhdan, The spherical Hecke algebra for affine Kac-Moody
     groups I, Ann. of Math. (2) 174 (2011), no. 3, 1603–1642. MR2846488
[16] Alexander Braverman, David Kazhdan, and Manish M. Patnaik, Iwahori-Hecke algebras for
     p-adic loop groups, Invent. Math. 204 (2016), no. 2, 347–442.
[17] Ben Brubaker, Valentin Buciumas, and Daniel Bump, A Yang-Baxter equation for metaplectic
     ice, Commun. Number Theory Phys. 13 (2019), no. 1, 101–148.
[18] Ben Brubaker, Valentin Buciumas, Daniel Bump, and Solomon Friedberg, Hecke modules
     from metaplectic ice, Selecta Math. (N.S.) 24 (2018), no. 3, 2523–2570.
[19] Ben Brubaker, Valentin Buciumas, Daniel Bump, and Henrik P. A. Gustafsson, Colored vertex
     models and Iwahori Whittaker functions, 2019. Preprint, arXiv:1906.04140.
[20]          , Metaplectic Iwahori Whittaker functions and supersymmetric lattice models, 2020.
     Preprint, arXiv:2012.15778.
[21]          , Vertex operators, solvable lattice models and metaplectic Whittaker functions,
     Comm. Math. Phys. 380 (2020), no. 2, 535–579.
[22]          , Iwahori-metaplectic duality, 2021. Preprint, arXiv:2112.14670.
                                                 90
[23] Ben Brubaker, Daniel Bump, and Solomon Friedberg, Twisted Weyl group multiple Dirichlet
     series: the stable case, Eisenstein series and applications, 2008, pp. 1–26.
[24]          , Weyl group multiple Dirichlet series: type A combinatorial theory, Annals of Math-
     ematics Studies, vol. 175, Princeton University Press, Princeton, NJ, 2011. MR2791904
[25] Benjamin Brubaker, Daniel Bump, Gautam Chinta, Solomon Friedberg, and Jeffrey Hoffstein,
     Weyl group multiple Dirichlet series. I, Multiple Dirichlet series, automorphic forms, and an-
     alytic number theory, 2006, pp. 91–114. MR2279932
[26] Jean-Luc Brylinski and Pierre Deligne, Central extensions of reductive groups by K2 , Publ.
     Math. Inst. Hautes Études Sci. 94 (2001), 5–85.
[27] Justin Campbell, Gurbir Dhillon, and Sam Raskin, Fundamental local equivalences in quan-
     tum geometric Langlands, Compos. Math. 157 (2021), no. 12, 2699–2732.
[28] W. Casselman and J. Shalika, The unramified principal series of p-adic groups. II. The Whit-
     taker function, Compositio Math. 41 (1980), no. 2, 207–231.
[29] Kei Yuen Chan and Gordan Savin, Iwahori component of the Gelfand-Graev representation,
     Math. Z. 288 (2018), no. 1-2, 125–133.
[30] Gautam Chinta and Paul E. Gunnells, Constructing Weyl group multiple Dirichlet series, J.
     Amer. Math. Soc. 23 (2010), no. 1, 189–215. MR2552251
[31] Gautam Chinta, Paul E. Gunnells, and Anna Puskás, Metaplectic Demazure operators and
     Whittaker functions, Indiana Univ. Math. J. 66 (2017), no. 3, 1045–1064.
[32] Gautam Chinta and Omer Offen, A metaplectic Casselman-Shalika formula for GLr , Amer. J.
     Math. 135 (2013), no. 2, 403–441. MR3038716
[33] Joseph Chuang and Raphaël Rouquier, Derived equivalences for symmetric groups and sl2 -
     categorification, Ann. of Math. (2) 167 (2008), no. 1, 245–298. MR2373155
[34] E. Cline, B. Parshall, and L. Scott, Finite-dimensional algebras and highest weight categories,
     J. Reine Angew. Math. 391 (1988), 85–99.
[35]          , The homological dual of a highest weight category, Proc. London Math. Soc. (3) 68
     (1994), no. 2, 294–316.
[36] Edward Cline, Brian Parshall, and Leonard Scott, Abstract Kazhdan-Lusztig theories, Tohoku
     Math. J. (2) 45 (1993), no. 4, 511–534.
[37] Vinay V. Deodhar, Some characterizations of Bruhat ordering on a Coxeter group and deter-
     mination of the relative Möbius function, Invent. Math. 39 (1977), no. 2, 187–198.
[38]          , On some geometric aspects of Bruhat orderings. II. The parabolic analogue of
     Kazhdan-Lusztig polynomials, J. Algebra 111 (1987), no. 2, 483–506.
[39] Adrian Diaconu, Dorian Goldfeld, and Jeffrey Hoffstein, Multiple Dirichlet series and mo-
     ments of zeta and L-functions, Compositio Math. 139 (2003), no. 3, 297–360. MR2041614
[40] Peter Fiebig, The combinatorics of category O over symmetrizable Kac-Moody algebras,
     Transform. Groups 11 (2006), no. 1, 29–49. MR2205072
[41] Michael Finkelberg and Sergey Lysenko, Twisted geometric Satake equivalence, J. Inst. Math.
     Jussieu 9 (2010), no. 4, 719–739.
[42] E. Frenkel, D. Gaitsgory, D. Kazhdan, and K. Vilonen, Geometric realization of Whittaker
     functions and the Langlands conjecture, J. Amer. Math. Soc. 11 (1998), no. 2, 451–484.
[43] E. Frenkel, D. Gaitsgory, and K. Vilonen, Whittaker patterns in the geometry of moduli spaces
     of bundles on curves, Ann. of Math. (2) 153 (2001), no. 3, 699–748.
[44]          , On the geometric Langlands conjecture, J. Amer. Math. Soc. 15 (2002), no. 2, 367–
     417.
[45] Edward Frenkel and David Hernandez, Langlands duality for representations of quantum
     groups, Math. Ann. 349 (2011), no. 3, 705–746.
[46] D. Gaitsgory, Twisted Whittaker model and factorizable sheaves, Selecta Math. (N.S.) 13
     (2008), no. 4, 617–659.
[47] D. Gaitsgory and S. Lysenko, Parameters and duality for the metaplectic geometric Langlands
     theory, Selecta Math. (N.S.) 24 (2018), no. 1, 227–301.
[48] Dennis Gaitsgory and Sergey Lysenko, Metaplectic Whittaker category and quantum groups :
     the "small" FLE, 2019. Preprint, arXiv:1903.02279.
                                                91
[49] Fan Gao, Nadya Gurevich, and Edmund Karasiewicz, Genuine pro-p Iwahori–
     Hecke algebras, Gelfand–Graev representations, and some applications, 2022. Preprint,
     arXiv:2204.13053.
[50] Fan Gao, Freydoon Shahidi, and Dani Szpruch, Local coefficients and gamma fac-
     tors for principal series of covering groups, 2019. to appear in Memoirs of the AMS,
     arXiv:1902.02686.
[51] Fan Gao and Martin H. Weissman, Whittaker models for depth zero representations of cover-
     ing groups, Int. Math. Res. Not. IMRN 11 (2019), 3580–3620.
[52] Sergei I. Gelfand and Yuri I. Manin, Methods of homological algebra, Second, Springer Mono-
     graphs in Mathematics, Springer-Verlag, Berlin, 2003.
[53] Ian Grojnowski and Mark Haiman, Affine Hecke algebras and positivity of LLT and Macdon-
     ald polynomials, 2007. Preprint.
[54] J. Haglund, M. Haiman, and N. Loehr, A combinatorial formula for Macdonald polynomials,
     J. Amer. Math. Soc. 18 (2005), no. 3, 735–761.
[55] James E. Humphreys, Reflection groups and Coxeter groups, Cambridge Studies in Advanced
     Mathematics, vol. 29, Cambridge University Press, Cambridge, 1990.
[56] N. Iwahori and H. Matsumoto, On some Bruhat decomposition and the structure of the Hecke
     rings of p-adic Chevalley groups, Inst. Hautes Études Sci. Publ. Math. 25 (1965), 5–48.
[57] Jens Carsten Jantzen, Representations of algebraic groups, Second, Mathematical Surveys and
     Monographs, vol. 107, American Mathematical Society, Providence, RI, 2003.
[58] Victor G. Kac, Infinite-dimensional Lie algebras, Third, Cambridge University Press, Cam-
     bridge, 1990.
[59] Masaki Kashiwara and Toshiyuki Tanisaki, Kazhdan-Lusztig conjecture for affine Lie algebras
     with negative level, Duke Math. J. 77 (1995), no. 1, 21–62.
[60]         , Kazhdan-Lusztig conjecture for affine Lie algebras with negative level. II. Noninte-
     gral case, Duke Math. J. 84 (1996), no. 3, 771–813.
[61] Shin-ichi Kato, Spherical functions and a q-analogue of Kostant’s weight multiplicity formula,
     Invent. Math. 66 (1982), no. 3, 461–468.
[62]         , On the Kazhdan-Lusztig polynomials for affine Weyl groups, Adv. in Math. 55 (1985),
     no. 2, 103–130. MR772611
[63]         , On the Kazhdan-Lusztig polynomials for affine Weyl groups, Adv. in Math. 55 (1985),
     no. 2, 103–130.
[64] D. Kazhdan and G. Lusztig, Tensor structures arising from affine Lie algebras. I, II, J. Amer.
     Math. Soc. 6 (1993), no. 4, 905–947, 949–1011.
[65]         , Tensor structures arising from affine Lie algebras. III, J. Amer. Math. Soc. 7 (1994),
     no. 2, 335–381.
[66]         , Tensor structures arising from affine Lie algebras. IV, J. Amer. Math. Soc. 7 (1994),
     no. 2, 383–453.
[67] D. A. Kazhdan and S. J. Patterson, Metaplectic forms, Inst. Hautes Études Sci. Publ. Math. 59
     (1984), 35–142.
[68] David Kazhdan and George Lusztig, Representations of Coxeter groups and Hecke algebras,
     Invent. Math. 53 (1979), no. 2, 165–184.
[69]         , Affine Lie algebras and quantum groups, Internat. Math. Res. Notices 2 (1991), 21–
     29.
[70] Friedrich Knop, On the Kazhdan-Lusztig basis of a spherical Hecke algebra, Represent. The-
     ory 9 (2005), 417–425.
[71] Hankyung Ko, Cohomology in singular blocks for a quantum group at a root of unity, Algebr.
     Represent. Theory 22 (2019), no. 5, 1109–1132.
[72] Bertram Kostant, Groups over Z, Algebraic Groups and Discontinuous Subgroups (Proc. Sym-
     pos. Pure Math., Boulder, Colo., 1965), 1966, pp. 90–98.
[73] Robert P. Langlands, Euler products, Yale Mathematical Monographs, vol. 1, Yale University
     Press, New Haven, Conn.-London, 1971. A James K. Whittemore Lecture in Mathematics
     given at Yale University, 1967.
                                                92
[74] Martina Lanini and Arun Ram, The Steinberg-Lusztig tensor product theorem, Casselman-
     Shalika, and LLT polynomials, Represent. Theory 23 (2019), 188–204.
[75] Martina Lanini, Arun Ram, and Paul Sobaje, A Fock space model for decomposition numbers
     for quantum groups at roots of unity, Kyoto J. Math. 59 (2019), no. 4, 955–991.
[76] Alain Lascoux, Bernard Leclerc, and Jean-Yves Thibon, Ribbon tableaux, Hall-Littlewood
     functions, quantum affine algebras, and unipotent varieties, J. Math. Phys. 38 (1997), no. 2,
     1041–1068.
[77] Bernard Leclerc and Jean-Yves Thibon, Littlewood-Richardson coefficients and Kazhdan-
     Lusztig polynomials, Combinatorial methods in representation theory (Kyoto, 1998), 2000,
     pp. 155–220.
[78] Peter Littelmann, Paths and root operators in representation theory, Ann. of Math. (2) 142
     (1995), no. 3, 499–525.
[79] G. Lusztig, Modular representations and quantum groups, Classical groups and related topics
     (Beijing, 1987), 1989, pp. 59–77.
[80]           , Study of a Z-form of the coordinate ring of a reductive group, J. Amer. Math. Soc.
     22 (2009), no. 3, 739–769.
[81] George Lusztig, Hecke algebras and Jantzen’s generic decomposition patterns, Adv. in Math.
     37 (1980), no. 2, 121–164.
[82]           , Singularities, character formulas, and a q-analog of weight multiplicities, Analysis
     and topology on singular spaces, II, III (Luminy, 1981), 1983, pp. 208–229.
[83]           , Quantum groups at roots of 1, Geom. Dedicata 35 (1990), no. 1-3, 89–113.
[84]           , Introduction to quantum groups, Modern Birkhäuser Classics, Birkhäuser/Springer,
     New York, 2010. Reprint of the 1994 edition.
[85] Sergey Lysenko, Twisted Whittaker models for metaplectic groups, Geom. Funct. Anal. 27
     (2017), no. 2, 289–372.
[86] I. G. Macdonald, Affine Hecke algebras and orthogonal polynomials, Cambridge Tracts in
     Mathematics, vol. 157, Cambridge University Press, Cambridge, 2003.
[87] Hideya Matsumoto, Sur les sous-groupes arithmétiques des groupes semi-simples déployés,
     Ann. Sci. École Norm. Sup. (4) 2 (1969), 1–62.
[88] Kevin McGerty, Langlands duality for representations and quantum groups at a root of unity,
     Comm. Math. Phys. 296 (2010), no. 1, 89–109.
[89] Peter J. McNamara, Metaplectic Whittaker functions and crystal bases, Duke Math. J. 156
     (2011), no. 1, 1–31.
[90]           , Principal series representations of metaplectic groups over local fields, Multiple
     Dirichlet series, L-functions and automorphic forms, 2012, pp. 299–327.
[91]           , The metaplectic Casselman-Shalika formula, Trans. Amer. Math. Soc. 368 (2016),
     no. 4, 2913–2937. MR3449262
[92] Jürgen Neukirch, Algebraic number theory, Grundlehren der mathematischen Wissenschaften
     [Fundamental Principles of Mathematical Sciences], vol. 322, Springer-Verlag, Berlin, 1999.
     Translated from the 1992 German original and with a note by Norbert Schappacher, With a
     foreword by G. Harder.
[93] B. C. Ngô and P. Polo, Résolutions de Demazure affines et formule de Casselman-Shalika
     géométrique, J. Algebraic Geom. 10 (2001), no. 3, 515–547.
[94] Bao Châu Ngô, Preuve d’une conjecture de Frenkel-Gaitsgory-Kazhdan-Vilonen pour les
     groupes linéaires généraux, Israel J. Math. 120 (2000), no. part A, 259–270.
[95] Manish Patnaik and Anna Puskás, On Iwahori-Whittaker functions for metaplectic groups,
     Adv. Math. 313 (2017), 875–914.
[96] Manish M. Patnaik, Unramified Whittaker functions on p-adic loop groups, Amer. J. Math.
     139 (2017), no. 1, 175–213.
[97] Manish M. Patnaik and Anna Puskás, Metaplectic covers of Kac-Moody groups and Whittaker
     functions, Duke Math. J. 168 (2019), no. 4, 553–653.
[98] I. I. Piatetski-Shapiro, Euler subgroups., Lie groups and their representations (Proc. Summer
     School, Bolyai János Math. Soc., Budapest, 1971), 1975, pp. 597–620. MR406935
                                                93
 [99] Simon Riche and Geordie Williamson, Tilting modules and the p-canonical basis, Astérisque
      397 (2018), ix+184.
[100] Siddhartha Sahi, Jasper V. Stokman, and Vidya Venkateswaran, Metaplectic representations
      of Hecke algebras, Weyl group actions, and associated polynomials, Selecta Math. (N.S.) 27
      (2021), no. 3, Paper No. 47, 42.
[101]          , Quasi-polynomial representations of double affine Hecke algebras, 2022. Preprint,
      arXiv:2204.13729.
[102] Ichirô Satake, Theory of spherical functions on reductive algebraic groups over p-adic fields,
      Inst. Hautes Études Sci. Publ. Math. 18 (1963), 5–69.
[103] Gordan Savin, Local Shimura correspondence, Math. Ann. 280 (1988), no. 2, 185–190.
[104]          , On unramified representations of covering groups, J. Reine Angew. Math. 566
      (2004), 111–134.
[105] Jean-Pierre Serre, Corps locaux, Publications de l’Université de Nancago, No. VIII, Hermann,
      Paris, 1968. Deuxième édition.
[106] Freydoon Shahidi, Eisenstein series and automorphic L-functions, American Mathematical
      Society Colloquium Publications, vol. 58, American Mathematical Society, Providence, RI,
      2010. MR2683009
[107] J. A. Shalika, The multiplicity one theorem for GLn , Ann. of Math. (2) 100 (1974), 171–193.
      MR348047
[108] Carl Ludwig Siegel, Die Funktionalgleichungen einiger Dirichletscher Reihen, Math. Z. 63
      (1956), 363–373. MR74533
[109] Wolfgang Soergel, Gradings on representation categories, Proceedings of the International
      Congress of Mathematicians, Vol. 1, 2 (Zürich, 1994), 1995, pp. 800–806.
[110]          , Kazhdan-Lusztig polynomials and a combinatoric[s] for tilting modules, Represent.
      Theory 1 (1997), 83–114.
[111]          , Character formulas for tilting modules over Kac-Moody algebras, Represent. Theory
      2 (1998), 432–448.
[112] Toshiyuki Tanisaki, Character formulas of Kazhdan-Lusztig type, Representations of finite
      dimensional algebras and related topics in Lie theory and geometry, 2004, pp. 261–276.
[113] J. Tits, Normalisateurs de tores. I. Groupes de Coxeter étendus, J. Algebra 4 (1966), 96–116.
[114]          , Sur les constantes de structure et le théorème d’existence des algèbres de Lie semi-
      simples, Inst. Hautes Études Sci. Publ. Math. 31 (1966), 21–58.
[115] Jacques Tits, Uniqueness and presentation of Kac-Moody groups over fields, J. Algebra 105
      (1987), no. 2, 542–573.
[116] Martin H. Weissman, Managing metaplectiphobia: covering p-adic groups, Harmonic analy-
      sis on reductive, p-adic groups, 2011, pp. 237–277.
[117]          , Split metaplectic groups and their L-groups, J. Reine Angew. Math. 696 (2014), 89–
      141.
[118] Zhiwei Yun, Weights of mixed tilting sheaves and geometric Ringel duality, Selecta Math.
      (N.S.) 14 (2009), no. 2, 299–320. MR2480718

   (V. Buciumas) KORTEWEG – DE V RIES I NSTITUTE , T HE U NIVERSITY OF A MSTERDAM , S CI -
ENCE PARK 107, 1090 GE, A MSTERDAM , T HE N ETHERLANDS
   Email address: valentin.buciumas@gmail.com

   (M. M. Patnaik) D EPARTMENT OF M ATHEMATICAL AND S TATISTICAL S CIENCES , U NIVER -
SITY OF A LBERTA , E DMONTON , AB T6G 2G1, C ANADA
   Email address: patnaik@ualberta.ca




                                                 94
