A block-restriction difference drops relative squarefree degree
ProvedPvsNP.SparseRestrictionDifference.restriction_difference_and_degreealgebracombinatoricscomplexity-theoryformal-verification
Given a squarefree polynomial, compare its values at two fixed settings of the same low-coordinate block. Terms missing that block cancel. Each remaining term loses at least one low coordinate, so the degree bound for the remaining low coordinates drops by one. The theorem gives the exact factorization and the degree bound over any commutative ring.
Preamble
import Mathlib
Formal statement
theorem PvsNP.SparseRestrictionDifference.restriction_difference_and_degree {Index Scalar : Type*} [DecidableEq Index] [CommRing Scalar]
(terms : Finset (Finset Index)) (coefficient : Finset Index → Scalar)
(low frozen first second point : Finset Index) (degree : ℕ)
(blockLow : frozen ⊆ low)
(firstIn : first ⊆ frozen) (secondIn : second ⊆ frozen)
(pointApart : Disjoint point frozen)
(degreeBound : ∀ term ∈ terms, (term ∩ low).card ≤ degree + 1) :
let monomial (term point : Finset Index) : Scalar := if term ⊆ point then 1 else 0
((∑ term ∈ terms, coefficient term * monomial term (point ∪ first)) -
(∑ term ∈ terms, coefficient term * monomial term (point ∪ second)) =
∑ term ∈ terms.filter (fun term => (term ∩ frozen).Nonempty),
coefficient term * (monomial (term ∩ frozen) first - monomial (term ∩ frozen) second) *
monomial (term \ frozen) point) ∧
(∀ term ∈ terms.filter (fun term => (term ∩ frozen).Nonempty),
((term \ frozen) ∩ low).card ≤ degree) := by sorrySource
Relative-degree invariant for consecutive-address carry differences.