The two cases
First: ℓ goes up, so the product is a single T. Second: T_s² has ℓ going down, giving the quadratic relation q·T_e + (q−1)·T_s.
The Iwahori–Hecke algebraHn(q) is parameterised differently from every other family here. The hypercomplex units vary their generators; the diagram algebras vary which diagrams are admitted. Hn(q) keeps the basis of the symmetric group algebra exactly — one element Tw per permutation, so the dimension is n! — and deforms the multiplication by a parameter q.
The whole algebra is one rule, applied one simple reflection at a time:
Ts⋅Tw={TswqTsw+(q−1)Twℓ(sw)>ℓ(w)ℓ(sw)<ℓ(w)The second line is the deformation, and it is the only place q enters. Note what it does: a product of two basis elements is a linear combination, not one basis element times a scalar. That is new here — every earlier family's product landed back on a single basis element.
When multiplying raises the Coxeter length, nothing happens but bookkeeping. When it lowers the length, q appears.
First: ℓ goes up, so the product is a single T. Second: T_s² has ℓ going down, giving the quadratic relation q·T_e + (q−1)·T_s.
The quadratic relation Ts2=q+(q−1)Ts — equivalently (Ts−q)(Ts+1)=0 — is what replaces s2=1 in the Coxeter group. At q=1 the two roots collide back onto ±1 and you recover an involution.
What does not change is the braid relations: TsTtTs=TtTsTt for adjacent generators, and TsTt=TtTs for distant ones. That is exactly why Tw is well defined — it is the product over any reduced word for w, and the tests check that for every w in S4.
Both sides of the braid relation, then two distant generators in either order.
This is the claim that makes "deformation" the right word, and it is the strongest test in the package: at q=1 the rule's two cases become one, and Tu⋅Tv=Tuv for every pair — checked exhaustively across S2, S3 and S4.
q·T_e + (q−1)·T_s at q = 1 is just T_e — the group algebra. At q = 2 it stays spread.
So Hn(1)=ZSn, and the symmetric group algebra reached as a diagram algebra is the same object by another route. Everything interesting — Kazhdan–Lusztig bases, the Jones polynomial via the Temperley–Lieb quotient, the representation theory at roots of unity — lives at q=1.
Coefficients are exact polynomials in q. They are compute-engine expressions, so they stay symbolic and simplify themselves; HeckeSpecialize(element, q) substitutes and drops whatever vanishes. The parameter is an argument of every head (HeckeT(w, q), HeckeAlgebra(n, q)), a symbol or a number of your choosing, and elements with different parameters do not multiply.
Sums compose. Because a product returns a linear combination, the parser reads sums back in — the result of one product is a valid operand for the next, which the tests check directly.
Dimension is n!, and Basis lists the Tw up to n=6; past that the dimension still answers from the closed form.
Not built yet. The Kazhdan–Lusztig basis and the KL polynomials — the real reason anyone builds Hn(q) — and the Temperley–Lieb quotient, which would connect this page directly to the diagram algebras and to the Jones polynomial. Also only type A: the same rule works for any Coxeter system given its length function.