Direct unary comparison and bit-access frontends #
These canonical interfaces use direct unary iteration (ComputableInPolyTime.iterate): unary
subtraction iterates predecessor, unary-to-binary conversion iterates the binary successor, and
indexed access iterates the word tail before using the existing head codec. No higher tidy calculus
supplies a plain primitive.
Compare computed unary values, with both operand encodings fixed.
Strictly compare computed unary values, with both operand encodings fixed.
Convert a unary natural to its binary encoding.
Read a bit at a unary index with a fixed fallback. Fixing the raw encoding avoids guessing a list-encoding instance during compositional proof search.
Read the bit of a computed binary number at a computed unary position.
Read the bit of a computed unary number at a computed unary position.