Fallback coverage from aligned-block obstructions
ProvedPvsNP.PhaseCoverage.fallback_coverage_of_aligned_obstructioncombinatoricscomplexity-theoryformal-verification
A Boolean scan partitions its consumed symbols into finitely many phases, each consisting of an interval where a fixed predictor matches the target and at most one additional endpoint. Suppose every designated fast predictor has a disagreement inside each aligned size-2^dim block contained in its matching interval. If there are at most phaseCap phases and the first freePrefix symbols of each remaining phase are uncharged, at least total minus phaseCap times max(2^(dim+1), freePrefix) consumed symbols remain charged.
Preamble
import Mathlib
Formal statement
theorem PvsNP.PhaseCoverage.fallback_coverage_of_aligned_obstruction {Phase : Type*} [Fintype Phase] [DecidableEq Phase]
(target : ℕ → Bool) (predict : Phase → ℕ → Bool) (fast : Finset Phase)
(start matched endpoint : Phase → ℕ) (total dim phaseCap freePrefix : ℕ)
(partition : total = ∑ phase, (matched phase + endpoint phase))
(budget : Fintype.card Phase ≤ phaseCap)
(endpointBound : ∀ phase, endpoint phase ≤ 1)
(agreement : ∀ phase address, start phase ≤ address →
address < start phase + matched phase → predict phase address = target address)
(obstruction : ∀ phase ∈ fast, ∀ index : ℕ,
start phase ≤ index * 2 ^ dim →
index * 2 ^ dim + 2 ^ dim ≤ start phase + matched phase →
∃ offset < 2 ^ dim,
predict phase (index * 2 ^ dim + offset) ≠ target (index * 2 ^ dim + offset)) :
total - phaseCap * max (2 ^ (dim + 1)) freePrefix ≤
∑ phase, if phase ∈ fast then 0 else matched phase + endpoint phase - freePrefix := by sorrySource
Aligned dyadic blocks and exact version-space phase scans.