A compatible witness encodes the extended version space
ProvedPvsNP.VersionSpace.compatible_witness_encodes_extensioncombinatoricscomplexity-theoryformal-verification
Fix a finite family of Boolean predictors. Starting with the predictors agreeing with a given witness on a prefix, require their outputs to agree with a fixed prediction on an adjoining interval and with one observed bit at the interval end. If a predictor satisfies these constraints, then the extended set is exactly the family agreeing with that predictor through the observed bit.
Preamble
import Mathlib
Formal statement
theorem PvsNP.VersionSpace.compatible_witness_encodes_extension {Code : Type} (allowed : Finset Code) (output : Code → ℕ → Bool)
(witness next : Code) (predict : ℕ → Bool) (start stop : ℕ) (observed : Bool)
(ordered : start ≤ stop)
(compatible : next ∈ allowed.filter (fun c =>
(∀ x : Fin start, output c x = output witness x) ∧
(∀ x : Fin stop, start ≤ x.val → output c x = predict x) ∧
output c stop = observed)) :
allowed.filter (fun c => ∀ x : Fin (stop + 1), output c x = output next x) =
allowed.filter (fun c =>
(∀ x : Fin start, output c x = output witness x) ∧
(∀ x : Fin stop, start ≤ x.val → output c x = predict x) ∧
output c stop = observed) := by sorrySource
Finite prefix-witness compression for the exact version-space update in a one-pass small-circuit decision procedure.