Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.BlockComputation.ScheduleReadCorrect

Correctness of streaming schedule digit counts #

The streamed counter agrees with the existing numeric schedule semantics digitCount. Its remaining suffix never exceeds the original schedule number, and its counter never exceeds the number of processed rows, including when the schedule number is zero.

theorem Turing.MultiTapePTM.BlockComputation.ScheduleRead.iterate_fst (k c δ σ i : ℕ) :
((step k c δ)^[i] (σ, 0)).1 = σ / 3 ^ ((k + 1) * i)

The remaining schedule is the original number with exactly i rows discarded. This identity specifies the stream; its runtime implementation does not construct the power.

theorem Turing.MultiTapePTM.BlockComputation.ScheduleRead.iterate_snd (k c δ σ i : ℕ) :
((step k c δ)^[i] (σ, 0)).2 = digitCount k σ c δ i

Counting streamed rows gives the existing schedule digit count.

Streamed counting uses the library's existing numeric schedule interpretation.

Discarding rows cannot enlarge the stored schedule number.

The counter grows by at most one per processed row.