Independent replacements in an accepting one-pass run share a single code capacity
ProvedPvsNP.OnlineJointHybrid.joint_hybrid_capacitycomplexity-theoryformal-verification
Suppose every length-N terminal accepting word has a description in a finite code type. A fixed-length diagnostic prefix identifies each anchor. At each successive time window, the anchor has a family of distinct equal-length input blocks from which the machine reaches the same prescribed work configuration. It follows that the sum over anchors of the products of the window family sizes is at most the cardinality of the code type.
Preamble
import Definitions.Def_JointInputBlockRun
set_option autoImplicit false
open PvsNP PvsNP.OnlineJointHybrid PvsNP.WorkBoundarySplice PvsNP.OnlineWindowIO
variable {Q A : Type}
Formal statement
theorem PvsNP.OnlineJointHybrid.joint_hybrid_capacity {M : OnlineMachine Q A} {G Code : Type}
[Fintype G] [Fintype Code] {n : ℕ}
(Choice : G → Fin n → Type) [∀ g i, Fintype (Choice g i)]
(start : Config Q A) (pre : G → List Bool) (preLen : ℕ)
(preLength : ∀ g, (pre g).length = preLen) (identifies : Function.Injective pre)
(configs : G → Fin (n+1) → Config Q A) (preClock : G → ℕ)
(preRun : ∀ g, BlockRun M start (pre g) (configs g 0) (preClock g))
(blk : ∀ g i, Choice g i → List Bool)
(blkLen : G → Fin n → ℕ)
(fixed : ∀ g i v, (blk g i v).length = blkLen g i)
(distinct : ∀ g i, Function.Injective (blk g i))
(clock : ∀ g i, Choice g i → ℕ)
(piece : ∀ g i v, BlockRun M (configs g i.castSucc) (blk g i v)
(configs g i.succ) (clock g i v))
(trailer : G → List Bool) (finish : G → Config Q A) (trailerClock : G → ℕ)
(postRun : ∀ g, OnlineRun M (configs g (Fin.last n),trailer g) (finish g,[]) (trailerClock g))
(N : ℕ) (total : ∀ g, preLen + (∑ i, blkLen g i) + (trailer g).length = N)
(Accept : Q → Prop) (accepts : ∀ g, Accept (finish g).state)
(halts : ∀ g, onlineStep M (finish g,[]) = none) (decode : Code → List Bool)
(sound : ∀ w z t, w.length = N → OnlineRun M (start,w) z t → onlineStep M z = none →
Accept z.1.state → ∃ c, decode c = w) :
(∑ g, ∏ i, Fintype.card (Choice g i)) ≤ Fintype.card Code := by sorrySource
Exact run concatenation and finite cardinality. The fixed-region hybrid method is motivated by recent one-work-tape lower bound work.