Generic format properties #
The Flocq-style generic format describes representability through a radix and a canonical exponent function, before choosing a concrete FIX, FLX, or FLT family. This module develops the closure and representation facts needed by later rounding theory.
The layer is mathematical rather than executable: it gives binary-interchange and other format implementations a common real-valued specification against which their exact integer algorithms can be proved.
Magnitude is invariant under negation.
Negation negates the canonical scaled mantissa.
Zero belongs to every valid generic format.
Generic formats are closed under negation.
A value is representable exactly when its negation is representable.
A value is representable exactly when its absolute value is representable.
A radix power is representable whenever its canonical exponent is no larger than its exponent.
A mantissa/exponent representation is generic when its stored exponent is at least the canonical exponent selected for its value.
A positive representable value uses a canonical exponent strictly below its magnitude.
Representability of β^e forces its canonical exponent to be at most e.
If β^e is representable, the exponent selected for the bin below it is at most e.
A value representable with fexp₁ remains representable with fexp₂ when the second canonical
exponent is no larger at that value's magnitude. The condition is local because representability
of x only depends on the exponent selected at magnitude x.
Pointwise-smaller exponent selection defines a containing generic format.
No generic-format value lies strictly between consecutive points on its canonical grid.
Every generic-format value has a canonical mantissa/exponent representation.
The real value of a canonical representation belongs to its generic format.