Subtraction and comparison in binary #
Truncated subtraction b - a iterates the predecessor a times, counting in binary. It takes time
linear in the value a and work space linear in the lengths of the binary encodings. The order
a < b tests whether b - a is zero.
Main results #
Turing.MultiTapeTM.ComputableTidilyInO.natSub: truncated subtraction in binary.Turing.MultiTapeTM.ComputableTidilyInO.natLt: the strict order in binary.
Truncated subtraction in binary, b - a from (a, b).
The strict order in binary.