A polynomial sketch has a second point in every fiber below the degree threshold
ProvedPvsNP.polynomial_sketch_fiber_has_secondcombinatoricscomplexity-theoryformal-verification
Let a sketch consist of finitely many polynomial evaluations over a finite field. If the sum of their total degrees is strictly less than the number of input coordinates, then every input has a different input with exactly the same sketch.
Preamble
import Mathlib.FieldTheory.ChevalleyWarning import Mathlib.Data.Fintype.EquivFin import Lean.Elab.Tactic.Omega set_option autoImplicit false open MvPolynomial
Formal statement
theorem PvsNP.polynomial_sketch_fiber_has_second {K Variable Check : Type}
[Fintype K] [Field K] [DecidableEq K]
[Fintype Variable] [DecidableEq Variable] [Fintype Check]
(p : ℕ) [CharP K p] (characteristic : 1 < p)
(f : Check → MvPolynomial Variable K) (base : Variable → K)
(small : (∑ j, (f j).totalDegree) < Fintype.card Variable) :
∃ other : Variable → K, other ≠ base ∧ ∀ j, eval other (f j) = eval base (f j) := by sorrySource
Chevalley–Warning applied to polynomial sketch fibers. This independent lemma concerns low-degree sketches in local encoders.