A foreign fingerprint match leaves a fixed-size collision subset
ProvedPvsNP.foreign_fingerprint_collision_subsetcoding-theorycombinatoricsformal-verification
A reference and a different candidate differ on at least b+k designated rows. If a patch edits at most b rows and matches all the candidate fingerprints, there is a set of k designated rows where the original reference and candidate already had matching fingerprints.
Preamble
import Mathlib
Formal statement
theorem PvsNP.foreign_fingerprint_collision_subset {Row Block Fingerprint : Type*}
[DecidableEq Row]
(reference patched other : Row → Block) (fingerprint : Row → Block → Fingerprint)
(pool edited : Finset Row) (b k : ℕ)
(poolSize : b + k ≤ pool.card) (editSize : edited.card ≤ b)
(different : ∀ i ∈ pool, reference i ≠ other i)
(unchanged : ∀ i, i ∉ edited → patched i = reference i)
(accepts : ∀ i, fingerprint i (patched i) = fingerprint i (other i)) :
∃ selected : Finset Row, selected ⊆ pool ∧ selected.card = k ∧
∀ i ∈ selected, reference i ≠ other i ∧
fingerprint i (reference i) = fingerprint i (other i) := by sorrySource
Simultaneous soundness for source-centered patches in separated row signature languages.