Halt-test verdict correspondence #
The halt-test machine compares the state tape against the description
tape's second field — exactly the qhF field that parseSyms decodes as
the halt state. This file proves the comparison agrees with the abstract
halt check of the interpreted machine (decodeDesc α).toTM:
- a running state tape (
w-bit encoding ofq < 2^w) matches the field iffqis the decoded halt state (well-formed fields decode byNat.toBits/Nat.fromBits; malformed-width fields never match, and the decoded sentinel2^wis unreachable); - after a default transition the state tape holds the field verbatim, and the interpreted machine sits exactly at its (clamped) halt state.
A blank-free Γw list is the symbol image of its own bits.
The description tape's second field (the qhalt field), as scanned by the
halt-test machine and decoded by parseSyms.
Equations
- Complexity.TM.UTMBody.qhaltField dSyms = (Complexity.takeField (Complexity.takeField dSyms).2).1
Instances For
The qhalt field of a decoded description determines its halt state:
fieldNat if the width matches, the sentinel 2^w otherwise.
The decoded width is the first field's length.
Running-state verdict: for q < 2^w (with w the decoded width),
the state tape's w-bit encoding of q equals the qhalt field iff the
interpreted machine's state q is its halt state.