Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.BlockComputation.ScheduleReadSpace

Native space bounds for streamed schedule digit counts #

The number of tapes, head offset and queried digit are fixed parameters. The schedule number and interval count are binary runtime inputs. Reading rows repeatedly divides by the fixed row radix; the state retains only the unread suffix and one count. In particular, it does not build a list of intervals or a power with runtime exponent.

The unread suffix and binary count use their actual storage.

One fixed-head digit-count step uses native space linear in its stored state.

Counting a fixed schedule digit uses space linear in the binary schedule and interval count, including when the schedule is zero and the interval count is very large.

Positive and negative movement counts give the signed block origin without storing an integer whose magnitude is charged separately.

Native signed-origin preparation keeps both binary counts within the input budget.

theorem Turing.MultiTapePTM.BlockComputation.ScheduleRead.origin_sub_eq_scheduleBlock {k q : ℕ} (σ i : ℕ) (hi : i ≤ q) (head : Option (Fin k)) :
match origin k ↑((finSuccEquiv k).symm head) (σ, i) with | (positive, negative) => ↑positive - ↑negative = scheduleBlock (scheduleOfNat k q σ) i head

The two prepared counters represent the functional schedule's exact block origin.