Configured posit conversion proofs #
The conversion relation specifies finite results through real posit rounding and the complete decoded model. Its implementation proof uses the rational-to-real rounding bridge and codec inverse laws. The exponent size is fixed at two bits by the Posit Standard (2022), so width is the only descriptor parameter.
Conversion to an equally wide or wider descriptor appends zero bits to the source word. The configured results follow from exact model widening and the codec inverse laws. Complete decoding and default conversion preserve zero and NaR as well as finite values.
Appending zero bits preserves the complete configured observation, including zero and NaR.
Finite conversion follows real posit rounding, with exact status for the delivered model.
The real rounder uses the standard appended-bit boundary, minPos underflow, and maxPos saturation. Model equality retains the complete word. Infinity and exceptional observations obey their explicit policies. This proof-facing relation needs no real-number evaluation at runtime.
Instances For
Finite observations use the exact arbitrary-width posit rounder.
Infinity observations are handled only by the explicit posit infinity policy.
Exceptional observations are handled only by the explicit posit exceptional policy.
The real rounding bridge and the codec inverse law establish the finite contract.
Real rounding plus the codec law determines the complete original outcome and status.
The installed exact decoder is the public configured posit decoder.
Default conversion maps either infinity to NaR, as required by Posit Standard (2022), §6.5.
Default conversion maps exceptional observations to NaR, including IEEE NaNs and posit NaR.
Quantizing a decoded finite source into a wider codec appends exactly the additional zero bits. The statement concerns the successful value, not the conversion status.
Default conversion into a wider codec returns the source word with appended zero bits. This includes the unique zero and NaR words; the default exceptional-value policy preserves NaR.