Real-valued posit rounding specification #
The exact rational posit rounding specification has a noncomputable interpretation in ℝ. This
interpretation belongs to the semantic proof layer: executable arithmetic continues to use the
rational, dyadic, native-word, and fixed-limb kernels.
The real specification lets refinement theorems state correctness against conventional analytic
operations such as Real.sqrt, without adding real-number evaluation to a runtime dependency.
Real value of the posit word with unsigned code code.
The intended domain is code < format.signMaskNat. In general the code is reduced modulo the
format's modulus before decoding; zero and NaR map to zero, and other words retain their sign.
Instances For
For a nonnegative target, the greatest code whose real denotation does not exceed it.
Instances For
Exact smallest positive real value of a posit format.
Instances For
Exact appended-bit rounding threshold interpreted in the reals.
Instances For
Round a real to a nonnegative posit code, sending nonpositive targets to zero.
Instances For
Model-valued rounding of a nonnegative real target.
Instances For
Round a signed real by the standard whole-word negation symmetry.
Instances For
Real lower-code search agrees with rational lower-code search after exact coercion.
Real lower-code search is monotone in its target.
The minimum positive value has lower code one.
Interior positive rounding selects either its lower code or its immediate successor.
An interior target below its appended-bit boundary selects the lower code.
An interior target above its appended-bit boundary selects the successor code.
A saturated interior lower code is already the final rounded code.
Exact real-valued positive rounding is monotone.
Real rounding agrees with rational rounding after exact coercion.
Model-valued real rounding agrees with rational rounding after exact coercion.