Order of positive Posit encodings #
Regime order and exponent/fraction-tail order imply that unsigned codes below the sign mask are strictly ordered by their exact rational meanings. Crossing a variable-length regime boundary changes how many bits remain for exponent and fraction, so ordinary fixed-field lexicographic reasoning is not enough.
The theorem justifies native unsigned comparison for positive finite posits and supports the signed order development without decoding both operands again.
The exact rational lookup maps the zero code to rational zero.
A positive code below the sign mask denotes its exponent/fraction tail scaled by the regime power.
The exponent factor 4 is the Posit Standard (2022)'s regime step 2 ^ exponentBits.
Appending a zero low bit while increasing the posit width preserves the exact finite value.
This is the even half of the standard's (n + 1)-bit rounding construction: an n-bit code U
is embedded as U0, while the adjacent boundary is U1. The theorem holds for every valid static
width, including the zero code.
Within one regime block, increasing a positive unsigned code strictly increases its exact value.
Division by the trailing-field modulus yields equal regime prefixes; taking remainders removes them. Code order is then exactly order of the bounded exponent/fraction remainder, whose rational interpretation is strictly monotone.
Every positive unsigned code below the sign mask denotes a strictly positive rational.
Strictly increasing regime values strictly separate the corresponding positive codes.
Unsigned posit codes below the sign mask are strictly ordered by their exact rational meanings.
This is the width-independent ordering theorem used by bisection, rounding, comparison, and every certified execution backend.
Exact rational lookup is strictly monotone on the complete nonnegative finite code interval.
On nonnegative finite codes, rational-value comparison is exactly unsigned-code comparison.
Equality of exact nonnegative finite values is equality of their unsigned posit codes.