Disjoint input changes charge shared and output-local queries
ProvedPvsNP.disjoint_change_distancecombinatoricscomplexity-theoryformal-verification
Each input change is supported on its own set of coordinates, and these sets are pairwise disjoint. A changed output must touch the support using either a shared query or one of its local queries. If each change alters at least d output positions, then the number of changes times d is at most the number of shared queries times d plus the total number of local queries.
Preamble
import Mathlib.Algebra.BigOperators.Ring.Finset import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.BigOperators.Group.Finset.Sigma import Mathlib.Data.Fintype.Card import Mathlib.Data.Finset.Card set_option autoImplicit false
Formal statement
theorem PvsNP.disjoint_change_distance {Direction Position Output : Type}
[DecidableEq Position] [DecidableEq Output]
(directions : Finset Direction) (outputs : Finset Output)
(support : Direction → Finset Position) (shared : Finset Position)
(localReads : Output → Finset Position) (changes : Direction → Output → Bool)
(distance : ℕ)
(separate : ∀ a ∈ directions, ∀ b ∈ directions, a ≠ b →
Disjoint (support a) (support b))
(covered : ∀ a ∈ directions, ∀ j ∈ outputs, changes a j = true →
¬Disjoint (support a) (shared ∪ localReads j))
(far : ∀ a ∈ directions, distance ≤ (outputs.filter fun j => changes a j = true).card) :
directions.card * distance ≤ shared.card * distance + ∑ j ∈ outputs, (localReads j).card := by sorrySource
Query-distance bound for exact-to-gap MCSP encodings, including residual changes that preserve a fixed linear sketch.