Duality for representations of a reductive group over a finite field