Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Halting.SMNBounds

Encoded size of the s-m-n construction #

The existing description transformation Turing.MultiTapeTM.Universal.hardwire d p builds the prefix p into the description d. This module accounts for the size of the description it constructs. The exact decomposition follows its writing, copying, rewinding and redirected transition tables; the arithmetic endpoint is quadratic in the framed encoding of (d, p).

These are rigorous lengths in Turing.MultiTapeTM.Universal.eDesc. That encoding uses unary state and symbol numbers, so the bounds are model-dependent code lengths, not implementation byte counts or tight estimates for another compiler. The transformation itself is offline: its polynomial-time uniformity is Turing.MultiTapeTM.Universal.computableInPolyTime_hardwire, while the compiler's runtime is not charged to a hardwired program unless another construction executes the compiler.

Main definitions #

This module adds no representation: it measures the existing Turing.MultiTapeTM.Universal.hardwire construction with Turing.MultiTapeTM.Universal.descLen, which is exactly the length of eDesc.

Main results #

References #

There are three writing transitions for the marker and for each prefix bit.

The input-copying table has transitions for the two bits and the final blank.

The rewinding table has transitions for a blank, the two bits and the marker.

The exact encoded length of a hardwired description, split into the preparation tables and the redirected source table. Each table is measured by its actual framed encoding.

The encoded hardwired description has quadratic size in the encoded source description and the prefix. The constant 2500 is a proved coarse upper bound, not a tightness claim. Both sides use the library's unary eDesc coding, not an implementation-size estimate.