Counting accepted tape splices forces long crossing records
ProvedPvsNP.DiagonalWorkClock.accepted_diagonal_clockcomplexity-theoryformal-verification
Consider accepting one-tape runs indexed by a finite nonempty family A. At every selected work-tape edge, patching the two opposite half-tapes of diagonal inputs indexed by a and b produces their mixed input. Suppose mixed inputs are identified by their ordered pairs, every accepted mixed input belongs to a finite decoded code set, and a single list records all selected edge crossings of each actual run. If the square of the number of diagonal inputs is at least four times the product of the code count and the number of padded records of length r, then some diagonal run takes at least half the product of the number of selected edges and r steps.
Preamble
import Definitions.Def_SingleTapeWorkBoundary set_option autoImplicit false open PvsNP.WorkBoundarySplice
Formal statement
theorem PvsNP.DiagonalWorkClock.accepted_diagonal_clock {A Q Γ E Code Word : Type}
[Fintype A] [Nonempty A] [Fintype Q] [Fintype Code]
[Fintype E] [DecidableEq E]
(M : Machine Q Γ) (wanted : Q → Prop) (cut : E → ℤ)
(start : A → A → Config Q Γ) (position : ℤ)
(sameHead : ∀ a b, (start a b).head = position)
(mixed : ∀ e a b, patch (cut e) (rightOf (cut e) position) (start a a) (start b b) = start a b)
(events : A → List (E × Q)) (time : A → ℕ)
(run : ∀ a e, Run M (cut e) wanted (start a a) ((events a).filterMap (fun event => if event.1 = e then some event.2 else none)) (time a))
(bounded : ∀ a, (events a).length ≤ time a)
(word : A × A → Word) (unique : Function.Injective word) (decode : Code → Word)
(sound : ∀ e a b rs ticks, Run M (cut e) wanted (start a b) rs ticks →
∃ c, decode c = word (a,b))
(r : ℕ) (capacity : 4*((Fintype.card Q+1)^r * Fintype.card Code) ≤ Fintype.card A^2) :
∃ a, Fintype.card E*r ≤ 2*time a := by sorrySource
Counting record fibers by Cauchy-Schwarz and Hennie’s work-tape splicing argument, doi:10.1016/S0019-9958(65)90399-2.