Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.BlockComputation.QueryReplaySupplierChunk

Packed numeric answers from returned replay states #

The supplier retains a binary chunk width and requested chunk index beside the checked local replay state. Its query machine is silent: the interpolation caller extracts one numeric answer from the returned state, rather than storing a callee output stream. Extraction reads only a slice of the already paid Boolean gate result, including a zero-padded final partial chunk.

@[reducible, inline]

Runtime chunk width and requested chunk index.

@[reducible, inline]

Retained packed-answer metadata and the actual checked replay state.

Binary metadata has its actual encoded storage charge.

Replay on the same original input, retaining packed-answer metadata without an output stream. Actual input-dependent initial states are supplied by the caller.

Extract one numeric packed chunk from the returned checked gate state. Reading a partial final chunk implicitly pads the missing high bits with zero.

Retained numeric metadata and checked replay storage are both charged explicitly.

Queries are delegated to the checked original-input replay.

The query-machine finish stream is empty, because the caller consumes answer instead.

Packed-answer extraction uses native space linear in the actual returned-state storage. Neither the chunk width nor its offset causes allocation of its numeric magnitude.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.SupplierChunk.runFrom_eq {k s : ℕ} {Q : Type} (M : MultiTapeTM k Bool Q) (e : Q ≃ Fin s) (w : List Bool) (context : Context) (q : CheckedGate.State k Q) (t : ℕ) :
(machine M e).runFrom w (context, q) t = (context, (CheckedGate.machine M e).runFrom w q t)

Retained answer metadata does not change physical replay transitions.