Hilbert polynomials over artinian local rings