4.3 Schwartz-Zippel by Dana Moshkovitz

The geometric viewpoint in [Mos10] is to foliate 𝔽qn by parallel lines, and count their intersections with the zero set of a polynomial. The key is to choose a direction for which no whole line lies in the zero set.

The existence of the direction uses only the following elementary fact.

Lemma 4.3.1 (Nonzero evaluation [Mos10]).

Let 𝔽q be a finite field with q elements, and f∈𝔽q⁢[X1,…,Xn] be nonzero with individual degrees less than q. Then f has a nonzero evaluation in 𝔽qn.

Proof.

Fixing coordinates successively while keeping the remaining polynomial nonzero is always possible: if every substitution Xi=a for a∈𝔽q over a nonzero remaining polynomial P, made P identically zero, then

∏a∈𝔽q(Xi−a)=Xiq−Xi∣P,

contradicting degXi⁡P<q. After all coordinates are fixed, the resulting value is nonzero. ∎

We now restate Schwartz-Zippel [Sch80, Zip79] in Moshkovitz’s viewpoint [Mos10].

Lemma 4.3.2 (Schwartz-Zippel [Sch80, Zip79]).

Let 𝔽q be a finite field with q elements, and f∈𝔽q⁢[X1,…,Xn] be nonzero of total degree d, with n≥1. From uniformly random 𝐱←r𝔽qn,

Pr⁡[f⁢(𝐱)=0]≤dq.

Equivalently, as for the zero set of f over 𝔽qn,

|{𝐱∈𝔽qn:f⁢(𝐱)=0}|≤d⁢qn−1.
Proof.

The cases d=0 and d≥q are immediate, so assume 1≤d<q.

Write f=g+h, where nonzero g consists of all the degree-d monomials, and thus deg⁡h<d. By lemma 4.3.1, g has a nonzero evaluation over 𝔽qn, and by g being all degree-d monomials, g⁢(𝟎)=0. Hence, there exists 𝐲∈𝔽qn∖{𝟎} such that g⁢(𝐲)≠0.

For any basepoint 𝐱, substitution gives p⁢(t)=f⁢(𝐱+t⁢𝐲) that degt⁡p=d, whose degree-d term has coefficient g⁢(𝐲), and has at most d roots.

There are qn−1 distinct parallel lines 𝐱+t⁢𝐲, as |𝔽qn/Span⁢(𝐲)|=qn−1, and thus at most d⁢qn−1 zero evaluations, as each line contributes at most d roots. ∎

The same counting pattern appears in the Ligero argument below: choose a direction along which every parallel line contains few exceptional points, then count across the partition. There the points are received words close to a code; here they are zeros of f.