Polynomial fingerprint collisions with a finite candidate family
ProvedPvsNP.polynomial_family_fingerprint_collision_boundcombinatoricscomplexity-theoryformal-verification
Let a target polynomial differ from every member of a finite candidate family over an integral domain. Among any finite set of evaluation points, the number at which the target agrees with any candidate is at most the sum of the degrees of the corresponding differences.
Preamble
import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.Polynomial.Roots set_option autoImplicit false
Formal statement
theorem PvsNP.polynomial_family_fingerprint_collision_bound {K Candidate : Type}
[CommRing K] [IsDomain K] [DecidableEq K] [DecidableEq Candidate]
(seeds : Finset K) (candidates : Finset Candidate)
(target : Polynomial K) (family : Candidate → Polynomial K)
(different : ∀ candidate ∈ candidates, target ≠ family candidate) :
(seeds.filter fun seed => ∃ candidate ∈ candidates,
target.eval seed = (family candidate).eval seed).card ≤
∑ candidate ∈ candidates, (target - family candidate).natDegree := by sorrySource
The root count and union bound for Rabin-style polynomial fingerprints against a finite candidate family.