isCodimAtLeast(n, I)
This computes a partial Groebner basis, takes the initial terms, and checks whether that (partial) initial ideal has codimension at least n. Consider the following example. We create an ideal of 15 minors of the matrix myDiff (a matrix constructed in a way typical of applications). We would like to verify that the codimension of this ideal is at least 3. The built-in codim function typically does not terminate. However, isCodimAtLeast is normally very fast.
|
|
|
|
|
|
|
The function works by computing gb(I, PairLimit=>f(i)) for successive values of i. Here f(i) is a function that takes t, some approximation of the base degree value of the polynomial ring (for example, in a standard graded polynomial ring, this is probably expected to be \{1\}). And i is a counting variable. You can provide your own function by calling isCodimAtLeast(n, I, SPairsFunction=>( (i) -> f(i) ), the default function is SPairsFunction=>i->ceiling(1.5^i) Perhaps more commonly however, the user may want to instead tell the function to compute for larger values of i. This is done via the option PairLimit. This is the max value of i to be plugged into SPairsFunction before the function gives up. In other words, PairLimit=>5 will tell the function to check codimension 5 times.
|
|
|
Notice in the first case the function returned null, because the depth of search was not high enough. It only computed codim 5 times. The second returned true, but it did so as soon as the answer was found (and before we hit the PairLimit limit).
The object isCodimAtLeast is a method function with options.