A local patch cannot match an isolated competing row signature
ProvedPvsNP.isolated_signature_candidate_of_patchcoding-theorycombinatoricsformal-verification
A patched table differs from a reference by at most e input bits, and its row signatures differ from a candidate signature on at most h rows. If a foreign candidate is more than e+h signature rows from the reference, the matching candidate must be the reference.
Preamble
import Mathlib
Formal statement
theorem PvsNP.isolated_signature_candidate_of_patch {Row Col Bit Code : Type*}
[Fintype Row] [Fintype Col] [DecidableEq Bit] [DecidableEq Code]
(signature : Row → (Col → Bit) → Code)
(reference patched candidate : Row → Col → Bit) (edits tolerance : ℕ)
(rawDistance : (∑ r : Row, hammingDist (reference r) (patched r)) ≤ edits)
(withinTolerance : hammingDist (fun r => signature r (patched r))
(fun r => signature r (candidate r)) ≤ tolerance)
(isolated : candidate ≠ reference → edits + tolerance <
hammingDist (fun r => signature r (reference r)) (fun r => signature r (candidate r))) :
candidate = reference := by sorrySource
Local certificate rigidity in the one-pass movement lower bound for joint high moments and row fingerprints.