Make .variety()
work for ideals of any dimension over finite fields
#39475
Labels
.variety()
work for ideals of any dimension over finite fields
#39475
Problem Description
Clearly
.variety()
cannot produce a result for an ideal of positive dimension over an infinite field since such a variety is infinite. However, in the case of finite fields, the variety is always finite (as a subset of the cartesian power of the underlying field) irrespectively of the ideal dimension.This RFE asks for an extention of the
.variety()
functionality to the ideals of positive dimension over finite fields.Proposed Solution
When we have an ideal of positive dimension
d
generated by polynomials from a setS
over a finite fieldF
, we can fix values of some variables (with a smart choice of variables, their number would bed
) in all possible ways to reduce the ideal dimension to0
and enable application of the current functionality of.variety()
.Fixing a value
x0
for the variablex
can be done by simply adding the polynomialx - x0
to the setS
. An example is given at https://ask.sagemath.org/question/81379?answer=81382#post-id-81382Overall, this calls for a recursive implementation of
.variety()
, which in the case of dimension > 0, would find a suitable variablex
, iterate its possible valuesx0
over the elements ofF
, and call itself on the ideal generated byS
andx - x0
, combining all the varieties from those calls into the result.For the choice of
x
, I think at very least it should (i) be present in some polynomial inS
; and (ii) not be the sole variable of any polynomial inS
(or, even better,S
here be replaced by the Groebner basis of the ideal if it's computed).Alternatives Considered
Alternatively to adding polynomial
x - x0
, it can make substitutionx = x0
in all polynomials fromS
, which will effectively eliminatex
, and thus reduce the number of variables and the ideal dimension (with a suitable choice ofx
). This may lead to a better performance than working with all the original variables, and may help in selecting right variables for elimination later on.Additional Information
No response
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: