TorchLean API

FloatLib.Floats.Formats.DecimalInterchange.Conversion.Binary.SpecialProof

Binary conversion of zeros and NaNs #

The zero theorem includes all status flags. The NaN field theorems establish the stored sign, all-ones exponent and quiet-bit-plus-payload fraction independently of any destination width.

@[simp]

Zero magnitude cannot overflow in any rounding direction.

@[simp]

Every decimal zero cohort converts to the source-signed binary zero with clear status.

@[simp]

NaN conversion preserves the sign bit for every destination width.

@[simp]

The encoded NaN exponent is all ones.

@[simp]

The quiet bit is set and the remaining fraction bits contain the selected payload.

@[simp]

The binary NaN constructed by conversion is classified as NaN on IEEE destinations.

The highest fraction bit is one, so the constructed NaN is quiet.