Encodings shared by universal multi-tape machines #
This module contains the low-level encodings of deterministic universal-machine symbols, transition keys and actions. It is intentionally independent of the universal interpreter's complexity proofs so other finite machine descriptions can reuse the same encoded words and generated projection certificates.
Main definitions #
Turing.MultiTapeTM.Universal.eSym: optional natural-number symbols in unary.Turing.MultiTapeTM.Universal.eKey: deterministic transition keys as framed fields.Turing.MultiTapeTM.Universal.eAct: deterministic actions as framed fields.
Main results #
The enc_structure declarations generate the scoped projection and constructor certificates used
by the universal interpreter's complexity proofs.
References #
These encodings are extracted unchanged from the deterministic universal-machine development.
theorem Turing.MultiTapeTM.Universal.eKey_work_polyTime {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Key} :
ComputableInPolyTime g✝ encIn✝ eKey → ComputableInPolyTime (fun (c : γ✝) => (g✝ c).work) encIn✝ (encList eSym)
theorem Turing.MultiTapeTM.Universal.eKey_mk_deg :
theorem Turing.MultiTapeTM.Universal.eKey_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 : γ → ℕ} {x1 : γ → Option ℕ} {T1 S1 : γ → ℕ} {x2 : γ → List (Option ℕ)} {T2 S2 : γ → ℕ} (h0 : ComputableInO x0 encIn encUnary T0 S0) (h1 : ComputableInO x1 encIn eSym T1 S1) (h2 : ComputableInO x2 encIn (encList eSym) T2 S2) :
theorem Turing.MultiTapeTM.Universal.eKey_input_polyTime {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Key} :
ComputableInPolyTime g✝ encIn✝ eKey → ComputableInPolyTime (fun (c : γ✝) => (g✝ c).input) encIn✝ eSym
theorem Turing.MultiTapeTM.Universal.eKey_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget x0 : γ → ℕ} {x1 : γ → Option ℕ} {x2 : γ → List (Option ℕ)} (h0 : ComputableInSpace x0 encIn encUnary budget) (h1 : ComputableInSpace x1 encIn eSym budget) (h2 : ComputableInSpace x2 encIn (encList eSym) budget) :
theorem Turing.MultiTapeTM.Universal.eKey_input_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Key} :
ComputableInSpace g✝ encIn✝ eKey S✝ → ComputableInSpace (fun (c : γ✝) => (g✝ c).input) encIn✝ eSym S✝
theorem Turing.MultiTapeTM.Universal.eKey_mk_polyTime {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → ℕ} {x1 : γ → Option ℕ} {x2 : γ → List (Option ℕ)} (h0 : ComputableInPolyTime x0 encIn encUnary) (h1 : ComputableInPolyTime x1 encIn eSym) (h2 : ComputableInPolyTime x2 encIn (encList eSym)) :
theorem Turing.MultiTapeTM.Universal.eKey_state_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Key} :
ComputableInSpace g✝ encIn✝ eKey S✝ → ComputableInSpace (fun (c : γ✝) => (g✝ c).state) encIn✝ encUnary S✝
theorem Turing.MultiTapeTM.Universal.eKey_state_polyTime {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Key} :
ComputableInPolyTime g✝ encIn✝ eKey → ComputableInPolyTime (fun (c : γ✝) => (g✝ c).state) encIn✝ encUnary
theorem Turing.MultiTapeTM.Universal.eKey_work_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Key} :
ComputableInSpace g✝ encIn✝ eKey S✝ → ComputableInSpace (fun (c : γ✝) => (g✝ c).work) encIn✝ (encList eSym) S✝
@[reducible, inline]
An action on a work tape.
theorem Turing.MultiTapeTM.Universal.eAct_inputTape_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Act} :
ComputableInSpace g✝ encIn✝ eAct S✝ → ComputableInSpace (fun (c : γ✝) => (g✝ c).inputTape) encIn✝ encSign S✝
theorem Turing.MultiTapeTM.Universal.eAct_workTapes_polyTime {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Act} :
ComputableInPolyTime g✝ encIn✝ eAct → ComputableInPolyTime (fun (c : γ✝) => (g✝ c).workTapes) encIn✝ (encList eTA)
theorem Turing.MultiTapeTM.Universal.eAct_output_inO :
ComputableInO Act.output eAct eSym (fun (a : Act) => (eAct a).length) fun (a : Act) => (eAct a).length
theorem Turing.MultiTapeTM.Universal.eAct_mk_polyTime {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → SignType} {x1 : γ → List (Option (Option ℕ) × SignType)} {x2 x3 : γ → Option ℕ} (h0 : ComputableInPolyTime x0 encIn encSign) (h1 : ComputableInPolyTime x1 encIn (encList eTA)) (h2 : ComputableInPolyTime x2 encIn eSym) (h3 : ComputableInPolyTime x3 encIn eSym) :
ComputableInPolyTime (fun (x : γ) => { inputTape := x0 x, workTapes := x1 x, output := x2 x, state := x3 x }) encIn eAct
theorem Turing.MultiTapeTM.Universal.eAct_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → SignType} {x1 : γ → List (Option (Option ℕ) × SignType)} {x2 x3 : γ → Option ℕ} (h0 : ComputableInSpace x0 encIn encSign budget) (h1 : ComputableInSpace x1 encIn (encList eTA) budget) (h2 : ComputableInSpace x2 encIn eSym budget) (h3 : ComputableInSpace x3 encIn eSym budget) :
ComputableInSpace (fun (x : γ) => { inputTape := x0 x, workTapes := x1 x, output := x2 x, state := x3 x }) encIn eAct
budget
theorem Turing.MultiTapeTM.Universal.eAct_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → SignType} {T0 S0 : γ → ℕ} {x1 : γ → List (Option (Option ℕ) × SignType)} {T1 S1 : γ → ℕ} {x2 : γ → Option ℕ} {T2 S2 : γ → ℕ} {x3 : γ → Option ℕ} {T3 S3 : γ → ℕ} (h0 : ComputableInO x0 encIn encSign T0 S0) (h1 : ComputableInO x1 encIn (encList eTA) T1 S1) (h2 : ComputableInO x2 encIn eSym T2 S2) (h3 : ComputableInO x3 encIn eSym T3 S3) :
theorem Turing.MultiTapeTM.Universal.eAct_inputTape_polyTime {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Act} :
ComputableInPolyTime g✝ encIn✝ eAct → ComputableInPolyTime (fun (c : γ✝) => (g✝ c).inputTape) encIn✝ encSign
theorem Turing.MultiTapeTM.Universal.eAct_workTapes_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Act} :
ComputableInSpace g✝ encIn✝ eAct S✝ → ComputableInSpace (fun (c : γ✝) => (g✝ c).workTapes) encIn✝ (encList eTA) S✝
theorem Turing.MultiTapeTM.Universal.eAct_state_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Act} :
ComputableInSpace g✝ encIn✝ eAct S✝ → ComputableInSpace (fun (c : γ✝) => (g✝ c).state) encIn✝ eSym S✝
theorem Turing.MultiTapeTM.Universal.eAct_state_polyTime {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Act} :
ComputableInPolyTime g✝ encIn✝ eAct → ComputableInPolyTime (fun (c : γ✝) => (g✝ c).state) encIn✝ eSym
theorem Turing.MultiTapeTM.Universal.eAct_inputTape_inO :
ComputableInO Act.inputTape eAct encSign (fun (a : Act) => (eAct a).length) fun (a : Act) => (eAct a).length
theorem Turing.MultiTapeTM.Universal.eAct_output_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Act} :
ComputableInSpace g✝ encIn✝ eAct S✝ → ComputableInSpace (fun (c : γ✝) => (g✝ c).output) encIn✝ eSym S✝
theorem Turing.MultiTapeTM.Universal.eAct_output_polyTime {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Act} :
ComputableInPolyTime g✝ encIn✝ eAct → ComputableInPolyTime (fun (c : γ✝) => (g✝ c).output) encIn✝ eSym