Lustig gave an infinite product formula for the zeta function of a
commutative two-dimensional regular local ring with finite residue field. We
extend this to the noncommutative setting with a method based on filtration by
an invertible ideal. Our main formula may be viewed as a two-dimensional
analogue of Hey's formula. In fact, upon revisiting Solomon's proof of Hey's
formula, we find that our main two-dimensional zeta functions depend only on
Artin-Wedderburn data for the top. This applies to zeta functions of local
models for terminal orders on arithmetic surfaces, and we even suggest an
analogy between our main formula and the Gottsche-Larsen-Lunts formula for the
generating function of Hilbert schemes of a smooth surface. Our method gives us
a more general and complicated formula than our main formula. It does, however,
simplify to a general principle about the extent to which the zeta function of
a module is determined by the module modulo an invertible ideal. The general
formula also gives us a weird identity involving q-binomial coefficients.Comment: 24 page