Sequential composition Turing machine with short-circuit reject
OpenCookLevin.seqCompose_machine_splitcontrol-flowsequential-compositionshort-circuitturing-machine
Given two multi-tape Turing machines and with tape counts and alphabet sizes , there exists a sequential composition machine with tapes and alphabet size satisfying that splits into two execution regimes:
- Short-circuit Rejection: If rejects () on within steps, halts and writes to the verdict tape in steps:
- Sequential Continuation: If accepts () within steps, executes on for steps, producing 's verdict at time :
This isolates the machine construction and state-transition control flow for sequential boolean conjunction.
Preamble
import Definitions.Def_CookLevin_Cost
Formal statement
namespace CookLevin
theorem seqCompose_machine_split
(M1 M2 : Machine) (k1 k2 G1 G2 : Nat) :
∃ (M : Machine) (k G : Nat),
TuringMachine k G M ∧
(∀ (xs ws : List Symbol) (t1 : Nat),
DecidesIn M1 k1 xs ws t1 false →
DecidesIn M k xs ws t1 false) ∧
(∀ (xs ws : List Symbol) (t1 t2 : Nat) (b2 : Bool),
DecidesIn M1 k1 xs ws t1 true →
DecidesIn M2 k2 xs ws t2 b2 →
DecidesIn M k xs ws (t1 + t2) b2) := by sorry
end CookLevinSource