Let X be a variety defined over the
finite field k with q elements and let \bar X be the base change of X to the
algebraic closure of k. The
Frobenius endomorphism of \bar X (often the
geometric Frobenius, or just
the Frobenius), denoted by F_q, maps a point with coordinates x_1,\ldots,x_n to the point with coordinates x_1^q,\ldots,x_n^q. Thus the fixed points of F_q are exactly the points of X with coordinates in k; the set of such points is denoted by X(k). The Lefschetz trace formula holds in this context, and reads: :\#X(k)=\sum_i (-1)^i \mathrm{tr}(F_q^*| H^i_c(\bar{X},\Q_{\ell})). This formula involves the trace of the Frobenius on the
étale cohomology, with compact supports, of \bar X with values in the field of
\ell-adic numbers, where \ell is a prime coprime to q. If X is smooth and
equidimensional, this formula can be rewritten in terms of the
arithmetic Frobenius \Phi_q, which acts as the inverse of F_q on cohomology: :\#X(k)=q^{\dim X}\sum_i (-1)^i \mathrm{tr}((\Phi_q^{-1})^*| H^i(\bar X,\Q_\ell)). This formula involves usual cohomology, rather than cohomology with compact supports. The Lefschetz trace formula can also be generalized to
algebraic stacks over finite fields. ==See also==