A prefix decides the promise exactly below its covering radius threshold
ProvedPvsNP.prefix_verdict_iff_cover_radius_ltcomplexity-theoryformal-verification
Consider finite YES words and a nonempty finite family of candidate Boolean words. A verdict depending only on a fixed prefix exists that accepts every YES word and rejects every word at distance at least the positive threshold from all candidates if and only if all completions of YES prefixes are at distance strictly below the threshold from the closest candidate.
Preamble
import Mathlib.InformationTheory.Hamming import Mathlib.Data.Finset.Max import Lean.Elab.Tactic.Omega set_option autoImplicit false
Formal statement
theorem PvsNP.prefix_verdict_iff_cover_radius_lt {width : ℕ}
(yes candidates : Finset (Fin width → Bool)) (nonempty : candidates.Nonempty)
(cutoff threshold : ℕ) (positive : 0 < threshold) :
let agrees := fun a b : Fin width → Bool =>
∀ i : Fin width, i.val < cutoff → a i = b i
let completions : Finset (Fin width → Bool) := by
classical
exact Finset.univ.filter fun x => ∃ y ∈ yes, agrees y x
let distance := fun x : Fin width → Bool =>
(candidates.image (hammingDist x)).min' (nonempty.image (hammingDist x))
(∃ verdict : (Fin width → Bool) → Bool,
(∀ a b, agrees a b → verdict a = verdict b) ∧
(∀ y ∈ yes, verdict y = true) ∧
(∀ x : Fin width → Bool, (∀ c ∈ candidates, threshold ≤ hammingDist x c) →
verdict x = false)) ↔ completions.sup distance < threshold := by sorrySource
The information-theoretic prefix conflict criterion for one-way promise problems.