ff-IEEE-754
repository URL pending
Scope
ff-ieee-754 formalizes binary IEEE 754 encodings and their mathematical meanings in safe cubical Agda. Its format layer describes parameterized binary interchange formats, their sign, exponent, and trailing-significand fields, and the corresponding bit-vector operations. Classification and representation modules distinguish zeros, subnormals, normals, infinities, and quiet or signaling NaNs while recording evidence about their bit patterns. Exact and finite-decoding modules relate encodings to signed rational values and connect the implemented decoder with declarative decoding specifications. Range, representability, rational-order, and rounding modules develop the finite value bounds and the selection rules needed to state rounding behavior and exception outcomes.
Most important results
The library provides an exact decoder from binary encodings to semantic IEEE values and proves that its output satisfies a case-by-case decoding specification. It proves the soundness of exponent and full-value classification, linking computed classes to structural evidence about the encoded fields. It establishes representability and ordering facts for landmark values including the least positive subnormal, the normal boundary, and the maximum finite magnitude across the standard binary formats. Its rounding specification covers exact results, nearest-even and nearest-away choices, directed rounding, overflow to infinity, tininess, and the associated exception flags.
Library modules
19 checked modules
Select a module to inspect its generated Agda source view.