Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.BlockComputation.ScheduleReadPort

Native provider-port readers #

After locating a previous provider interval, the reader computes the target block's port from streamed positive and negative digit counts. The optional provider port has exactly the meaning of the functional assembler's portMap. Tape count and column offset remain fixed parameters; the schedule, target interval and port are binary runtime data.

Read a target block's port in another interval's window from streamed digit counts.

theorem Turing.MultiTapePTM.BlockComputation.ScheduleRead.val_port_eq_portOfNum (k c σ i δ j : ℕ) :
↑(port k c (σ, i, δ, j)) = portOfNum k σ c i j δ

The streamed port agrees with the existing numeric port convention.

The selected port is computed in native space linear in actual binary input storage.

Locate the last earlier provider, returning its port or absence for a blank target block.

Native optional provider ports include the predecessor search and use only actual binary argument storage. A missing predecessor remains absent.

theorem Turing.MultiTapePTM.BlockComputation.ScheduleRead.providerPort_eq_portMap {k q : ℕ} (σ : ℕ) (i : Fin q) (h : Fin k) (δ : Fin 3) :
providerPort k (↑h + 1) (σ, ↑i, ↑δ) = QueryReplay.Providers.portMap (scheduleOfNat k q σ) i h δ

The native optional port is exactly the one supplied to the functional entering-window assembler by the same numbered schedule.

Compute every fixed work-head/neighbor port from the actual binary schedule and interval.

All provider ports can be computed natively; their fixed family size depends only on the simulated machine's number of work tapes.

The complete native provider map is the existing functional assembler's map.