The accepting code budget constrains families with confined online suffix runs
ProvedPvsNP.OnlineIntervalReplay.confined_suffix_populationcomplexity-theoryformal-verification
Consider a finite family of accepted diagonal inputs to a deterministic one-way input, one-work-tape machine, with an exact prefix run and a specified suffix computation for each diagonal. Assume the indexed suffix paths stay in work-tape intervals of length r+1, whose absolute positions may differ. Distinct ordered pairs of prefix and suffix labels yield distinct mixed words, and every accepted mixed word is encoded in a finite code set. The square of the diagonal population is at most the product of the code count, the control-state count, r+1 possible relative head positions, and the number of work-tape words of length r+1.
Preamble
import Definitions.Def_JointInputBlockRun set_option autoImplicit false open PvsNP.WorkBoundarySplice PvsNP.OnlineWindowIO PvsNP.OnlineJointHybrid
Formal statement
theorem PvsNP.OnlineIntervalReplay.confined_suffix_population {A Q Γ Code : Type}
[Fintype A] [Fintype Q] [Fintype Γ] [Fintype Code]
(M : OnlineMachine Q Γ) (start : Config Q Γ) (wanted : Q → Prop)
(front back : A → List Bool) (r : ℕ)
(middle : A → Config Q Γ) (last : A → OnlineConfig Q Γ)
(preTicks postTicks : A → ℕ) (left : A → ℤ)
(frontRun : ∀ a, BlockRun M start (front a) (middle a) (preTicks a))
(suffix : ∀ a, ∃ path : Fin (postTicks a+1) → OnlineConfig Q Γ,
path 0 = (middle a,back a) ∧ path (Fin.last (postTicks a)) = last a ∧
(∀ i : Fin (postTicks a), onlineStep M (path i.castSucc) = some (path i.succ)) ∧
(∀ i, left a ≤ (path i).1.head ∧ (path i).1.head ≤ left a+(r:ℤ)))
(halt : ∀ a, onlineStep M (last a) = none) (accept : ∀ a, wanted (last a).1.state)
(decode : Code → List Bool)
(distinct : Function.Injective (fun ab : A × A => front ab.1 ++ back ab.2))
(sound : ∀ a b z ticks,
OnlineRun M (start,front a ++ back b) z ticks → onlineStep M z = none →
wanted z.1.state → ∃ c, decode c = front a ++ back b) :
Fintype.card A^2 ≤
(Fintype.card Q*(r+1)*(Fintype.card Γ)^(r+1))*Fintype.card Code := by sorrySource
Local deterministic replay under translations and Cauchy–Schwarz for the fibers of a finite interval code.