Schwartz–Zippel over any finite set of variables #
Mathlib's MvPolynomial.schwartz_zippel_totalDegree bounds the proportion of the points of
S ^ n at which a nonzero polynomial in the variables Fin n vanishes by totalDegree / |S|.
MvPolynomial.schwartz_zippel_totalDegree_fintype transports it to the variables of any finite
type σ, by renaming along Fintype.equivFin σ. For n variables over a finite domain with q
elements it reads #zeros * q ≤ d * q ^ n (MvPolynomial.card_filter_eval_eq_zero_mul_card_le).
A nonzero polynomial of total degree below |S| does not vanish on all of S ^ σ
(MvPolynomial.exists_eval_ne_zero_of_totalDegree_lt_card), a consequence of Mathlib's
MvPolynomial.eq_zero_of_eval_zero_at_prod_finset.
Main results #
MvPolynomial.schwartz_zippel_totalDegree_fintype: the Schwartz–Zippel lemma for variables indexed by a finite type.MvPolynomial.card_filter_eval_eq_zero_mul_card_le: its counting form over a finite domain.MvPolynomial.exists_eval_ne_zero_of_totalDegree_lt_card: a nonzero polynomial of total degree below|S|has a nonzero value at a point ofS ^ σ.
The Schwartz–Zippel lemma for variables indexed by a finite type σ: a nonzero polynomial
over an integral domain vanishes on at most a totalDegree / |S| proportion of the points of
S ^ σ.
The Schwartz–Zippel lemma over a finite integral domain with q elements, in counting
form: a nonzero polynomial in n variables of total degree at most d has at most d * q ^ n / q
zeros, stated without division as #zeros * q ≤ d * q ^ n.
Two distinct polynomials of individual degree at most d in n variables
can agree on at most a fraction n * d / |R| of the evaluation points.
A nonzero polynomial over an integral domain whose total degree is below |S| has a nonzero
value at some point of S ^ σ.