A one-way input cache gives each observed position one owner
ProvedPvsNP.cached_raw_interval_unique_observationcomplexity-theoryformal-verification
A monotone input head observes its current cell before advancing or staying. The cache remains valid on a stay and becomes invalid on an advance. Between two time stamps, exactly the positions in the half-open interval from the starting position plus its cache-valid bit to the ending position plus its cache-valid bit are acquired. Each is acquired at exactly one step.
Preamble
import Lean.Elab.Tactic.Omega import Mathlib.Order.Monotone.Basic import Mathlib.Data.Nat.Basic set_option autoImplicit false
Formal statement
theorem PvsNP.cached_raw_interval_unique_observation
(position : ℕ → ℕ) (cached advance : ℕ → Bool)
(headStep : ∀ j, position (j + 1) = position j + (advance j).toNat)
(cacheStep : ∀ j, cached (j + 1) = !advance j)
(start stop i : ℕ) (ordered : start ≤ stop) :
(position start + (cached start).toNat ≤ i ∧
i < position stop + (cached stop).toNat) ↔
∃! j, start ≤ j ∧ j < stop ∧ cached j = false ∧ position j = i := by sorrySource
Visit ownership in the movement-capped branching program replay.