Direct unary comparison and bit-access frontends #
These canonical interfaces retain the original word folds: unary subtraction folds predecessor, unary-to-binary conversion folds the binary successor, and indexed access folds 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.