Advanced maths

Hilbert series calculator for a monomial ideal

Calculate the Hilbert series and graded quotient dimensions of a monomial ideal under standard grading.

Your numbers

Rows separated by semicolons; values by commas.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Calculate the Hilbert series and graded quotient dimensions of a monomial ideal under standard grading. Generator rows are exponent vectors, not sampled polynomial values. The exact numerator and coefficient table show which monomials survive, while the fixed denominator convention remains visible even when the rational function can be simplified.

THE FORMULAH_(K[x]/I)(t)=Σ_subset (−1)^|S| t^deg(lcm S)/(1−t)^n.

A worked example

For I=(x²,y²), standard monomials are 1,x,y,xy. Hilbert function degrees zero through four is 1,2,1,0,0, and Hilbert series is (1+t)².

Good to know

≤12 exponent generators/4 variables, exponents≤20; exact numerator and coefficients through degree≤30. Numerator uses fixed denominator(1−t)^n and may have cancellable factors.

Enter monomials as exponent vectors

For two variables, row two,zero means x squared and row zero,two means y squared. Coefficients are irrelevant to a monomial ideal over a field when they are nonzero, so they are not part of this exponent input. Every row must use the same number of variables.

Exponents are nonnegative integers. A row of all zeros represents the constant monomial one and generates the whole ring, making every quotient graded piece zero. It is not an empty row or a missing generator. The interface supports at most four variables and twelve generator rows.

Monomial divisibility leaves four standard monomials1xyxyI=(x²,y²): any exponent ≥2 is excludedHilbert series: 1+2t+t²
For I=(x²,y²), standard monomials are 1,x,y,xy. Hilbert function degrees zero through four is 1,2,1,0,0, and Hilbert series is (1+t)². Diagram is schematic; labels specify the numerical values.

The Univariate polynomial syzygy calculator with a degree bound finds bounded polynomial coefficient relations among entered generators. Hilbert series instead counts quotient-ring dimensions degree by degree, so the numerator is not a list of syzygy vectors.

Interpret the quotient by surviving monomials

A monomial belongs to the ideal if it is divisible by at least one generator. Monomials not in the ideal form a vector-space basis of the quotient. The Hilbert function in degree d counts those surviving monomials of total degree d, not all quotient elements over an infinite field.

Standard grading gives every variable degree one. Weighted grading would count degrees differently and requires another specification. The result is independent of the chosen coefficient field for this monomial counting task, but it does not extend unchanged to arbitrary nonmonomial generators without a justified initial-ideal computation.

Remove redundant generators without changing the ideal

If one generator divides another, every multiple of the second is already covered by the first. The larger generator can therefore be removed before inclusion–exclusion. Repeating a generator also changes no ideal and should not multiply its contribution as though it introduced a new independent condition.

This simplification preserves the ideal and Hilbert series but does not give a unique ordered presentation of the input. Compare the divisibility-minimal exponent sets rather than raw row order. A zero exponent in one coordinate does not make a generator zero; it means that variable is absent from that monomial.

Verify the square-generator example

For the ideal generated by x squared and y squared, surviving monomials are one, x, y and xy. Their total degrees are zero, one, one and two, giving Hilbert function one,two,one and then zero in every higher degree.

The Hilbert series is one plus two t plus t squared. Under the page’s fixed denominator convention it can also be written (one minus two t squared plus t to the fourth) divided by (one minus t) squared. Both expressions describe the same series; uncancelled numerator factors do not imply an error.

Derive the inclusion–exclusion numerator

All multiples of a monomial m contribute t to its degree divided by (one minus t) to the number of variables. Intersecting multiple divisibility conditions means taking their least common multiple, whose exponent vector is the coordinatewise maximum. Inclusion–exclusion over generator subsets therefore gives an exact finite numerator.

For each requested degree, expanding the denominator uses the count of unrestricted monomials, a binomial coefficient. Summing shifted contributions produces the Hilbert function through the selected bound. The formula remains exact even when many inclusion–exclusion terms cancel, and the implementation uses integer coefficients rather than floating-point approximations.

Separate a coefficient bound from the complete series

The selected maximum degree limits the displayed Hilbert-function table, not the rational series numerator. A zero coefficient at one degree can be interpreted with the ideal structure, but a short table alone is not a general proof about all future coefficients for arbitrary graded constructions.

This page does not calculate a minimal free resolution, Betti table or primary decomposition. Those structures can explain numerator patterns but are not implied by its rows. A denominator retained as (one minus t) to n is a representation convention and should not be read directly as the quotient’s Krull dimension after cancellations.

Use exact counting within the stated family

The finite generator cap controls the two-to-the-number-of-generators subset enumeration. Exponent and degree bounds keep intermediate counts manageable. If the input is outside those limits, no asymptotic series estimate is substituted under the exact label.

For a nonmonomial ideal, first deriving a suitable monomial initial ideal requires choices and an actual Gröbner computation. This calculator does not perform that reduction silently. Keep the exponent generators, variable count and standard-grading assumption with any reported quotient dimensions so the result can be reproduced.

A few questions, answered

Are rows polynomial coefficients?

No. They are exponent vectors of monomial generators.

Why is the numerator not fully cancelled?

It is displayed over the fixed denominator (1−t)^n. A simplified rational form can have a smaller denominator.

Does the degree selector truncate the rational series?

It truncates the coefficient table only; the inclusion–exclusion numerator remains complete for the entered monomial ideal.

Can I enter arbitrary polynomial generators?

No. This page requires monomials. General ideals need a justified initial-ideal calculation first.

Find your calculator

Start typing to explore the library.