Core command construction for sequential composition machine
OpenCookLevin.seqCompose_machine_corecommand-constructioncontrol-flowsequential-compositionturing-machine
Given constituent machines and dimensions satisfying , and , , there exists a list of commands such that every command is well-formed under TuringCommand k M.length G cmd and satisfies the two execution regimes:
- If decides within steps, halts with within steps.
- If decides within steps and decides within steps, halts with within steps.
Preamble
import Definitions.Def_CookLevin_Cost
Formal statement
namespace CookLevin
theorem seqCompose_machine_core
(M1 M2 : Machine) (k1 k2 G1 G2 : Nat) (k G : Nat)
(hk : 2 ≤ k ∧ k ≥ max k1 k2) (hG : 4 ≤ G ∧ G ≥ max G1 G2) :
∃ (M : Machine),
(∀ cmd ∈ M, TuringCommand k M.length G cmd) ∧
(∀ (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