Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.BlockComputation

Functional computation on HPV time blocks #

A guessed movement schedule determines a bounded-fan-in computation: each interval reads its predecessor's control record and the last providers of its three-block windows. Its gate replays one interval and checks the movement of every head, including the input head. Failure propagates through the mandatory predecessor edge, so a successful final value validates every earlier movement label.

The definitions use the existing tape windows and configuration embedding. They describe pure semantics with the original input shared by the local replays; they do not certify native input access, graph construction or a space bound.

Main definitions #

Main results #

The window reconstruction proof follows the block-network proof by Samuel Schlesinger.

References #

theorem Turing.MultiTapeTM.stepCoins_ofDeterministic {k : ℕ} {State : Type} {input : List Bool} (M : MultiTapeTM k Bool State) (coins : List Bool) (c : Cfg k Bool State input) :

Replaying fixed coins in the deterministic embedding is the original native run.

@[reducible, inline]

One interval's leaving control record and window contents. Failure is represented by an outer Option, rather than identifying it with any valid tape contents.

def Turing.MultiTapePTM.BlockComputation.initialView {k : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (b : ℕ) :
View k State b

The source value contains the initial control and blank work tapes.

def Turing.MultiTapePTM.BlockComputation.enteringWindow {k q : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (b : ℕ) (σ : Schedule k q) (i : Fin q) (providers : Fin k → Fin 3 → Option (View k State b)) :
Fin k → Fin 3 → ZMod b → Option Bool

A window block is obtained from its last provider; a block never seen before is blank.

noncomputable def Turing.MultiTapePTM.BlockComputation.gate {k q : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (input : List Bool) (b : ℕ) (σ : Schedule k q) (i : Fin q) (previous : Option (View k State b)) (providers : Fin k → Fin 3 → Option (View k State b)) :
Option (View k State b)

The local gate has one control dependency and 3*k window dependencies. All failed inputs propagate. The replay checks the movement labels of all work heads and the input head.

@[irreducible]
noncomputable def Turing.MultiTapePTM.BlockComputation.value {k q : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (input : List Bool) (b : ℕ) (σ : Schedule k q) :
ℕ → Option (View k State b)

The value after n intervals. Each recursion follows either the preceding interval or an older provider. No configuration outside the dependency values is consulted by a local gate.

theorem Turing.MultiTapePTM.BlockComputation.gate_none {k q : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (input : List Bool) (b : ℕ) (σ : Schedule k q) (i : Fin q) (providers : Fin k → Fin 3 → Option (View k State b)) :
gate machine input b σ i none providers = none

The dependency supplying the control record is present even if no work block is needed.

theorem Turing.MultiTapePTM.BlockComputation.value_succ_eq_none {k q : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (input : List Bool) (b : ℕ) (σ : Schedule k q) {n : ℕ} (h : value machine input b σ n = none) :
value machine input b σ (n + 1) = none

Once an interval fails, the mandatory control dependency propagates failure.

noncomputable def Turing.MultiTapePTM.BlockComputation.boundary {k q : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (input : List Bool) (b n : ℕ) :
Cfg k Bool State input

The true run at an interval boundary, with one fixed false coin per step.

noncomputable def Turing.MultiTapePTM.BlockComputation.actualSchedule {k q : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (input : List Bool) (b : ℕ) :

The true movement schedule for the fixed-coin replay.

def Turing.MultiTapePTM.BlockComputation.Prefix {k q : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (input : List Bool) (b : ℕ) (σ : Schedule k q) (n : ℕ) :

Every guessed label before this boundary agrees with the true replay.

noncomputable def Turing.MultiTapePTM.BlockComputation.trueView {k q : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (input : List Bool) (b : ℕ) (σ : Schedule k q) :
ℕ → View k State b

The true value left by an interval, retaining its own window rather than the next window.

theorem Turing.MultiTapePTM.BlockComputation.value_eq_some_iff {k q : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (input : List Bool) (b : ℕ) [NeZero b] (σ : Schedule k q) {n : ℕ} (hn : n ≤ q) (v : View k State b) :
value machine input b σ n = some v ↔ Prefix machine input b σ n ∧ v = trueView machine input b σ n

A successful interval value is exactly the true leaving view, and validates every movement label in its prefix. In particular, success at the root validates all earlier labels.

theorem Turing.MultiTapePTM.BlockComputation.value_final_eq_some_iff {k q : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (input : List Bool) (b : ℕ) [NeZero b] (σ : Schedule k q) (v : View k State b) :
value machine input b σ q = some v ↔ actualSchedule machine input b = σ ∧ v = trueView machine input b σ q

At the final boundary, every guessed label has been validated.

theorem Turing.MultiTapePTM.BlockComputation.value_final_eq_none_iff {k q : ℕ} {State : Type} (machine : MultiTapePTM k Bool State) (input : List Bool) (b : ℕ) [NeZero b] (σ : Schedule k q) :
value machine input b σ q = none ↔ actualSchedule machine input b ≠ σ

A wrong complete movement guess fails at the final boundary.

theorem Turing.MultiTapePTM.BlockComputation.boundary_ofDeterministic {k q : ℕ} {State : Type} (input : List Bool) (b : ℕ) (M : MultiTapeTM k Bool State) {n : ℕ} (hn : n ≤ q) :

The fixed-coin boundaries of a deterministic embedding are the native machine boundaries.