An accepting one-pass run leaves at most the code capacity in its unread suffix
ProvedPvsNP.BareMCSPReadLower.accepting_cylinder_capacitycomplexity-theoryformal-verification
Suppose terminal acceptance of any length N Boolean word entails that the word is the output of a finite code space. If a successful one-way input run consumes k bits, then k is at most its ticks and 2^(N-k-1) is at most the number of codes. The work tape and head motion are unrestricted.
Preamble
import Definitions.Def_AnchoredOneWorkTapeRun
set_option autoImplicit false
open PvsNP.WorkBoundarySplice PvsNP.OnlineWindowIO
variable {Q A : Type} {M : OnlineMachine Q A}
Formal statement
theorem PvsNP.BareMCSPReadLower.accepting_cylinder_capacity {Code : Type} [Fintype Code]
(decode : Code → List Bool) (start : Config Q A) (N : ℕ) (Accept : Q → Prop)
(sound : ∀ (w : List Bool) (z : OnlineConfig Q A) (t : ℕ),
w.length = N → OnlineRun M (start,w) z t → onlineStep M z = none →
Accept z.1.state → ∃ code, decode code = w)
(w : List Bool) (z : OnlineConfig Q A) (ticks : ℕ) (lengthEq : w.length = N)
(run : OnlineRun M (start,w) z ticks) (stop : onlineStep M z = none)
(yes : Accept z.1.state) :
let consumed := N-z.2.length
consumed ≤ ticks ∧ 2^(N-consumed-1) ≤ Fintype.card Code := by sorrySource
Indistinguishable suffixes for a one-way input machine and finite counting.