Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.BlockComputation.QueryReplayAccess

Native extraction of a local replay result #

RawResult stores the finite control and output tags, binary head residues and the explicit local tape lists. Its type is independent of the runtime block width. rawResult is computed in linear encoded-state space; casting its residues and decoding its cells gives precisely the existing semantic result at positive widths. The original input pointer zero represents the blank left boundary, whose residue is width - 1, rather than zero.

@[reducible, inline]

Runtime-width local data, with the input head indexed by none.

A work-head residue, with zero as the guarded zero-width result.

The original input uses physical coordinates with a blank boundary at zero.

Extract returned local data without a width-indexed runtime type.

Interpret explicit returned data at a positive block width.

@[simp]
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.workResidue_cast (width position : ℕ) [NeZero width] :
↑(workResidue width position) = ↑position
@[simp]
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.inputResidue_cast (width position : ℕ) [NeZero width] :
↑(inputResidue width position) = ↑(↑position - 1)
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.toView_rawResult {k : ℕ} {Q : Type} (s : Config k Q) (width : ℕ) [NeZero width] (hwidth : s.width = width) :

Native result extraction agrees with the existing semantic view, including both input boundaries and every explicitly stored work-window cell.

The guarded work residue never exceeds the runtime block width.

The guarded input residue never exceeds the runtime block width.

Finite tags, binary residues and explicit lists, without a runtime-width finite lookup.

Uniform native extraction of the state-returning local replay result.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.length_encRawResult_le {k : ℕ} {Q : Type} [Finite Q] (s : Config k Q) (hcells : ∀ (h : Fin k), (s.cells h).length ≤ 3 * s.width) (hcodes : ∀ (h : Fin k), ∀ n ∈ s.cells h, n ≤ 2) :

Returned data fits in linear local-window space. Its type and encoding do not contain the original input, and all head residues are bounded by the runtime width.