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
