Grothendieck trace formula
In algebraic geometry, the Grothendieck trace formula expresses the number of points of a variety over a finite field in terms of the trace of the Frobenius endomorphism on its cohomology groups. There are several generalizations: the Frobenius endomorphism can be replaced by a more general endomorphism, in which case the points over a finite field are replaced by its fixed points, and there is also a more general version for a sheaf over the variety, where the cohomology groups are replaced by cohomology with coefficients in the sheaf. The Grothendieck trace formula is an analogue in  algebraic geometry of the Lefschetz fixed-point theorem in algebraic topology. One application of the Grothendieck trace formula is to express the zeta function of a variety over a finite field, or more generally the L-series of a sheaf, as a sum over traces of Frobenius on cohomology groups. This is one of the steps used in the proof of the Weil conjectures. Behrend's trace formula generalizes the formula to algebraic stacks. Formal statement for "L"-functions. Let "k" be a finite field, "l" a prime number invertible in "k", "X" a smooth "k"-scheme of dimension "n", and formula_1  a constructible formula_2-sheaf on "X". Then the following cohomological expression for the "L"-function of formula_1 holds: where "F" is everywhere a geometric Frobenius action on "l"-adic cohomology with compact supports of the sheaf formula_1. Taking logarithmic derivatives of both formal power series produces a statement on sums of traces for each finite field extension "E" of the base field "k": For a constant sheaf formula_2 (viewed as formula_8 to qualify as an "l"-adic sheaf) the left hand side of this formula is the number of "E"-points of "X".