TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Configured.Conversion.Proof

Configured binary-interchange conversion proofs #

Configured conversion inherits the descriptor's default IEEE nearest-value contract and preserves the complete outcome for every context.

It is the final transport layer between descriptor-level conversion semantics and the public packed carrier. Storage selection is intentionally absent from the statement: any configured backend must decode to the same converted value and status, so changing from a native word to arbitrary-width storage cannot change the numerical contract.

@[simp]

Finite observations are handled by the configured binary finite quantizer.

@[simp]

Infinity observations are handled only by the explicit infinity policy.

@[simp]

Exceptional observations are handled only by the explicit exceptional policy.

The configured carrier inherits the descriptor's nearest-value and complete-outcome clauses.

The semantic contract retains the exact configured word and every status field.

A successful default IEEE conversion satisfies the nearest-value predicate after decoding.

@[simp]

The installed exact decoder is the public signed-rational decoder.

A default-context finite conversion is the canonical nearest-even rational rounder applied to the sign bit and magnitude of the signed rational.

The delivered value is Model.roundRat. For conventional IEEE destinations and finite results, Model.toReal_roundRatScaled_eq_roundAt relates that rounder to nearest-even rounding over .

Converting an exact negative zero preserves its sign when the destination supports negative zero.

For an encoding with one unsigned zero, zero true is that encoding's positive zero, so the statement also covers FNUZ destinations.