Certificates of matched runs #
A run of an automaton on tapes and inputs is certified by its states, the positions of the heads,
and the contents of the tapes (Tape.Good). The certificate of a run is unique, and it exists if
and only if the run is matched (Tape.Good.matched, Tape.exists_good).
For the matrix-product path expansion originally named prod_ofFn_apply in Nc.RunGood, reuse
Matrix.list_prod_ofFn_apply from CslibFrontier.Foundations.LinearAlgebra.Matrix.ListProd
(together with List.map_ofFn).
From VP ≠ VNP over every field [Ant26], module Nc.RunGood.
Main definitions #
Tape.Ch.start: channels whose head positions start at0.Tape.Good: local consistency conditions on a matched-run certificate.Tape.place0: initial position of each channel in a run.
Main results #
Tape.Good.place,Tape.Good.place_last,Tape.Good.place_zero,Tape.Good.contents: uniqueness of the certificate positions and tape contents for a given runo.Tape.Good.matched: every valid certificate witnesses a matched run.Tape.exists_good: every matched run admits a valid certificate whenN + t < M.
Local certificate conditions for a matched run: emitted letters o, states q, head
positions P, tape contents c, and one-hot input code x.
- first : q 0 = i
The run begins at state
i. The run ends at state
e.Starting channels begin at position
0.At step
τ, channelz's head advances if and only ifo τemits onz.Consecutive input channels are linked by
1for the separator marker.- write (s : S) (b : Bool) (τ : Fin t) (γ : Γ) : o τ = some (Ch.tp s b, γ) → c s (P (Ch.tp s b) τ.castSucc) = some γ
Each write/read on tape
sagrees withc s. Tape cells beyond the final head position of side
(s, b)are blank (none).- read (j : Fin n) (τ : Fin t) (γ : Γ) : o τ = some (Ch.inp j, γ) → ∃ (h : ↑(P (Ch.inp j) τ.castSucc) < N), x (⟨↑(P (Ch.inp j) τ.castSucc), h⟩, some γ) = true
Each input emission agrees with the one-hot code
x. - sep (j : Fin n) : ∃ (h : ↑(P (Ch.inp j) (Fin.last t)) < N), x (⟨↑(P (Ch.inp j) (Fin.last t)), h⟩, none) = true
At the end of input
j,xholds thenoneseparator.