Hilbert series and Hilbert polynomial
Given a graded commutative algebra finitely generated over a field, the Hilbert function, Hilbert polynomial, and Hilbert series are three strongly related notions which measure the growth of the dimension of its homogeneous components.
The typical situations where these notions are used are the following:
- The quotient by a homogeneous ideal of a multivariate polynomial ring, graded by the total degree.
- The quotient by an ideal of a multivariate polynomial ring, filtered by the total degree.
- The filtration of a local ring by the powers of its maximal ideal. In this case the Hilbert polynomial is called the Hilbert–Samuel polynomial.
Hilbert polynomial and Hilbert series are important in computational algebraic geometry, as they are the easiest known way for computing the dimension and the degree of an algebraic variety defined by explicit polynomial equations.
Definitions and main properties 
and that .
The Hilbert function
If S is generated by h homogeneous elements of positive degrees , then the sum of the Hilbert series is a rational fraction
where Q is a polynomial with integer coefficients.
If S is generated by elements of degrees 1 then the sum of the Hilbert series may be rewritten as
where P is a polynomial with positive integer coefficients.
In this case the series expansion of this rational fraction is
where the binomial coefficient is for and 0 otherwise.
This shows that there exists a unique polynomial with rational coefficients which is equal to for . This polynomial is the Hilbert polynomial. The least n0 such that for n ≥ n0 is called the Hilbert regularity. It may be lower than .
All these definitions may be extended to finetely generated graded modules over S, with the only difference that a factor tm appears in the Hilbert series, where m is the minimal degree of the generators of the module, which may be negative.
The Hilbert function, the Hilbert series and the Hilbert polynomial of a filtered algebra are those of the associated graded algebra.
Graded algebra and polynomial rings 
Polynomial rings and their quotients by homogeneous ideals are typical graded algebras. Conversely, if S is a graded algebra generated over the field K by n homogeneous elements g1, ..., gn of degree 1, then the map which sends Xi onto gi defines an homomorphism of graded rings from onto S. Its kernel is a homogeneous ideal I and this defines an isomorphism of graded algebra between and S.
Thus, the graded algebras generated by elements of degree 1 are exactly, up to an isomorphism, the quotients of polynomial rings by homogeneous ideals. Therefore, the remainder of this article will be restricted to the quotients of polynomial rings by ideals.
Properties of Hilbert series 
Hilbert series and Hilbert polynomial are additive relatively to exact sequences. More precisely, if
is an exact sequence of graded or filtered modules , then we have
This follows immediately from the same property for the dimension of vector spaces.
Quotient by a non-zero divisor 
Let A be a graded algebra and f a homogeneous element of degree d in A which is not a zero divisor. Then we have
It follows immediately from the additivity on the exact sequence
where the arrow labeled f is the multiplication by f and is the graded algebra, which is obtained from A by shifting the degrees by d, in order that the multiplication by f has degree 0. This implies that
Hilbert series and Hilbert polynomial of a polynomial ring 
The Hilbert series of the polynomial ring is
It follows that the Hilbert polynomial is
The proof that the Hilbert series has this simple form is obtained by applying recursively the previous formula for the quotient by a non zero divisor (here ) and remarking that
Shape of the Hilbert series and dimension 
A graded algebra A has Krull dimension zero if the maximal homogeneous ideal, generated by the homogeneous elements of degree 1, is nilpotent. This implies that the dimension of A as a K-vector space is finite and the Hilbert series of A is a polynomial P(t) such that P(1) is equal to the dimension of A as a K vector space.
If the Krull dimension of A is positive, there is a homogeneous element f of degree one which is not a zero divisor (in fact almost all elements of degree one have this property). The Krull dimension of A/f is the Krull dimension of A minus one.
The additivity of Hilbert series shows that . Iterating this a number of times equal to the Krull dimension of A, we get eventually an algebra of dimension 0 whose Hilbert series is a polynomial P(t). This show that the Hilbert series of A is
where the polynomial P(t) is such that P(1) ≠ 0 and d is the Krull dimension of A.
This formula for the Hilbert series implies that the degree of the Hilbert polynomial is d and that its leading coefficient is P(1)/d!.
Computation of Hilbert series and Hilbert polynomial 
The Hilbert polynomial is easily deducible from the Hilbert series. This section describes how the Hilbert series may be computed in the case of a quotient of a polynomial ring, filtered or graded by the total degree.
Thus let K a field, be a polynomial ring and I be an ideal in R. Let H be the homogeneous ideal generated by the homogeneous parts of highest degree of the elements of I. If I is homogeneous, then H=I. Finally let B be a Gröbner basis of I for a monomial ordering refining the total degree partial ordering and G the (homogeneous) ideal generated by the leading monomials of the elements of B.
The computation of the Hilbert series is based on the fact that the filtered algebra R/I and the graded algebras R/H and R/G have the same Hilbert series.
Thus the computation of the Hilbert series is reduced, through the computation of a Gröbner basis, to the same problem for an ideal generated by monomials, which is usually much easier than the computation of the Gröbner basis. The computational complexity of the whole computation depends mainly on the regularity, which is the degree of the numerator of the Hilbert series. In fact the Gröbner basis may be computed by linear algebra over the polynomials of degree bounded by the regularity.
The computation of Hilbert series and Hilbert polynomials are available in most computer algebra systems. For example in both Maple and Magma these functions are named HilbertSeries and HilbertPolynomial.
- Eisenbud, David (1995), Commutative algebra. With a view toward algebraic geometry, Graduate Texts in Mathematics 150, New York: Springer-Verlag, ISBN 0-387-94268-8, MR1322960.
- Schenck, Hal (2003), Computational Algebraic Geometry, Cambridge: Cambridge University Press, ISBN 978-0-521-53650-9, MR011360
- Stanley, Richard (1978), "Hilbert functions of graded algebras", Advances in Math. 28 (1): 57–83, doi:10.1016/0001-8708(78)90045-2, MR0485835.