Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.BlockComputation.QueryReplaySupplierBounds

Every-clock storage bound for the checked gate supplier #

Rejected initialization retains only a slice of one actual assignment word. Accepted initialization has canonical three-block windows and hence satisfies the native replay bound at every clock. Scheduling context is charged explicitly; the original input remains on the query input. The result holds for every numeric schedule and interval, without a promise that metadata denotes a correct schedule.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.length_previous_label_le {k s : ℕ} (limit counter stride b : ℕ) :
(Assignments.labels k { limit := limit, counter := counter, stride := stride, width := Encoding.width k s b }).previous.length ≤ Encoding.width k s b

The actual previous-label slice never exceeds the requested label width.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.length_runFrom_prepareWords_le {k s : ℕ} {Q : Type} [Finite Q] (M : MultiTapeTM k Bool Q) (e : Q ≃ Fin s) (w : List Bool) (b : ℕ) [NeZero b] (σ i t : ℕ) (words : Assignments.Words k) :
match ScheduleRead.origin k 0 (σ, i) with | (positive, negative) => (CheckedGate.encState ((CheckedGate.machine M e).runFrom w (prepareWords e { inputLength := w.length, blockWidth := b, schedule := σ, interval := i, words := words }) t)).length ≤ words.previous.length + 1 + (2 * (Gate.encContext (positive, negative, ScheduleRead.fullrow k (σ, i))).length + 2 + 1024 * (k + 1) * (b + w.length.log2 + Nat.card (Option Q) + Nat.card MultiTapeNTM.ChoiceTable.OutputTrack + 1))

Native supplier storage from explicit label words is bounded at every clock, including rejected words and clocks after halting. The previous word's length pays for the rejection branch.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.length_runFrom_prepare_le {k s : ℕ} {Q : Type} [Finite Q] (M : MultiTapeTM k Bool Q) (e : Q ≃ Fin s) (w : List Bool) (b : ℕ) [NeZero b] (σ i limit counter stride t : ℕ) :
match ScheduleRead.origin k 0 (σ, i) with | (positive, negative) => (CheckedGate.encState ((CheckedGate.machine M e).runFrom w (prepare e { inputLength := w.length, blockWidth := b, schedule := σ, interval := i, limit := limit, counter := counter, stride := stride }) t)).length ≤ Encoding.width k s b + 1 + (2 * (Gate.encContext (positive, negative, ScheduleRead.fullrow k (σ, i))).length + 2 + 1024 * (k + 1) * (b + w.length.log2 + Nat.card (Option Q) + Nat.card MultiTapeNTM.ChoiceTable.OutputTrack + 1))

Native supplier storage is bounded at every clock, including rejected assignments and clocks after halting. The extra label-width term pays for the rejection branch.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.halted_runFrom_prepareWords {k s : ℕ} {Q : Type} (M : MultiTapeTM k Bool Q) (e : Q ≃ Fin s) (w : List Bool) (N b σ i : ℕ) (words : Assignments.Words k) :
(CheckedGate.machine M e).halted ((CheckedGate.machine M e).runFrom w (prepareWords e { inputLength := N, blockWidth := b, schedule := σ, interval := i, words := words }) b) = true

Every call prepared from explicit label words is halted by its requested replay duration. Rejected words halt immediately, while successful initialization uses the existing replay counter.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.halted_runFrom_prepare {k s : ℕ} {Q : Type} (M : MultiTapeTM k Bool Q) (e : Q ≃ Fin s) (w : List Bool) (N b σ i limit counter stride : ℕ) :
(CheckedGate.machine M e).halted ((CheckedGate.machine M e).runFrom w (prepare e { inputLength := N, blockWidth := b, schedule := σ, interval := i, limit := limit, counter := counter, stride := stride }) b) = true

Every prepared local call is halted by its requested replay duration. Rejected labels halt immediately, while successful initialization uses the existing replay counter.