Documentation

CslibFrontier.Probability.PMF.PolynomialAgreement

Agreement of polynomials at a uniform point #

The univariate Schwartz–Zippel lemma in probability form: two distinct polynomials of degree at most d over a finite integral domain R agree at a uniformly random point with probability at most d / |R|. The counting core is Mathlib's Polynomial.eq_of_natDegree_lt_card_of_eval_eq'; this module turns it into the outer-measure bound used by the soundness proofs of the sum-check and GKR protocols.

Main results #

theorem Cslib.Probability.PMF.toOuterMeasure_uniformOfFintype_le_of_eval_eq {R : Type u_1} [CommRing R] [IsDomain R] [Fintype R] {p q : Polynomial R} {d : ℕ} (hne : p ≠ q) (hp : p.natDegree ≤ d) (hq : q.natDegree ≤ d) {S : Set R} (hS : ∀ t ∈ S, Polynomial.eval t p = Polynomial.eval t q) :

Univariate Schwartz–Zippel, probability form. Two distinct polynomials p and q of degree at most d over a finite integral domain agree on at most d points, so a uniformly random point lies in a set S of agreement points with probability at most d / |R|.