TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Configured.Operations.Proof

Packing correctness for configured standard operations #

Every theorem states that decoding a configured result recovers the single descriptor-model operation used to compute it. Status-bearing operations preserve all five indicators exactly.

The arithmetic properties are proved for the descriptor-model operations. These theorems transport their results through the storage codec, giving the same equations for values and exception flags with every storage plan.

@[simp]

Decoding configured IEEE remainder gives the descriptor-model remainder.

@[simp]

Decoding configured remainder preserves both its value and all IEEE status indicators.

@[simp]

Decoding configured integral rounding gives integral rounding in the descriptor model.

@[simp]

Decoding configured power-of-two scaling gives descriptor-model scaling.

@[simp]

Configured power-of-two scaling preserves the descriptor-model value and IEEE status.

@[simp]

Decoding configured logB gives the descriptor-model leading binary exponent.

@[simp]

Decoding configured sign copying gives descriptor-model sign copying.

@[simp]

Decoding configured absolute value gives descriptor-model absolute value.

@[simp]

Decoding the configured upward neighbor gives the descriptor-model upward neighbor.

@[simp]

Decoding the configured downward neighbor gives the descriptor-model downward neighbor.

@[simp]

Decoding configured minNum gives descriptor-model minNum.

@[simp]

Decoding configured maxNum gives descriptor-model maxNum.