          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
