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
