Examples
Basic Examples (3)
Find the dimension of an ideal defined by three polynomials in five variables:
When we remove the first variable and regard it as a coefficient parameter the dimension decreases by 1:
If instead we remove the first polynomial then the dimension increases by 1:
Scope (3)
Find an ideal dimension:
Provide a nonzero modulus:
For most prime moduli the dimension is the same as in the case of working over the rationals, but there can be finitely many exceptions:
Properties and Relations (4)
Square systems typically have dimension zero; we show this in particular for the Cassou-Nouges benchmark polynomial ideal:
Adding a polynomial makes the system overdetermined, so the dimension becomes -1:
Here is a benchmark example from an ISSAC 2001 conference paper with more polynomials than variables; it arose in the context of locating all singular points on a particular algebraic curve:
Such a polynomial ideal can still have dimension 0 rather than -1; we use a nonzero modulus for speed:
Possible Issues
As with any computation that requires computing a Gröbner basis, this function can be slow.
Related Links
Version History
-
1.0.1
– 25 November 2025
-
1.0.0
– 08 May 2023
Author Notes
Possible extensions include
(i) allowing for approximate coefficients
(ii) Using random slicing hyperplanes to determine when solution set is zero dimensional (# planes required = dimension)