An inactive-center walk samples each active block exactly once
ProvedPvsNP.center_walk_samples_each_active_blockcomplexity-theoryformal-verification
Suppose active blocks have no active successor. Start at an inactive center, and advance one block unless the next block is active, in which case advance two. In the span of the walk, an address is active exactly when it is the middle block of a unique two-block step.
Preamble
import Lean.Elab.Tactic.Omega import Mathlib.Data.Nat.Basic import Mathlib.Order.Monotone.Basic set_option autoImplicit false
Formal statement
theorem PvsNP.center_walk_samples_each_active_block (active : ℕ → Bool) (center : ℕ → ℕ)
(gap : ∀ i, active i = true → active (i + 1) = false)
(initial : active (center 0) = false)
(step : ∀ j, center (j + 1) =
center j + 1 + (active (center j + 1)).toNat)
(hops address : ℕ) (first : center 0 ≤ address) (last : address < center hops) :
active address = true ↔
∃! j, j < hops ∧ address = center j + 1 ∧ center (j + 1) = center j + 2 := by sorrySource
Combinatorial scheduling for a sparse single-work-head sampler.