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.
One fixed-head digit-count step uses native space linear in its stored state.
theorem Turing.MultiTapePTM.BlockComputation.ScheduleRead.read_inSpace (k c δ : ℕ) :
MultiTapeTM.ComputableInSpace (read k c δ) encState MultiTapeTM.encNat fun (a : ℕ × ℕ) => (encState a).length
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.
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.