Global distance bounds the sum of local approximation errors under splicing
ProvedPvsNP.local_error_sum_ge_of_splice_closed_gapcomplexity-theoryformal-verification
Partition a labeled finite address set into pieces. If any splice of legal local witnesses is a legal global comparator and the labels are far from every global comparator, then the sum of any simultaneous local error upper bounds is at least the global distance.
Preamble
import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Data.Fintype.Basic set_option autoImplicit false
Formal statement
theorem PvsNP.local_error_sum_ge_of_splice_closed_gap {Address Part : Type}
[Fintype Part] [DecidableEq Part]
(addresses : Finset Address) (piece : Address → Part) (label : Address → Bool)
(localOK : Part → (Address → Bool) → Prop) (globalOK : (Address → Bool) → Prop)
(threshold : ℕ) (errorBound : Part → ℕ)
(splice : ∀ family : Part → Address → Bool, (∀ p, localOK p (family p)) →
globalOK (fun a => family (piece a) a))
(far : ∀ compare, globalOK compare →
threshold ≤ (addresses.filter (fun a => label a ≠ compare a)).card)
(witnesses : ∀ p, ∃ compare, localOK p compare ∧
(addresses.filter (fun a => piece a = p ∧ label a ≠ compare a)).card ≤ errorBound p) :
threshold ≤ ∑ p, errorBound p := by sorrySource
Finite support accounting for succinct history updates.