TorchLean API

FloatLib.Floats.Formats.Block.Configured.Conversion.Proof

Shared-scale block conversion proofs #

The principal result proves that direct block conversion satisfies the lane-wise nearest-even QuantizesAt relation at the caller-supplied shared exponent.

@[simp]
theorem FloatLib.Floats.ExecFloat.SharedScale.Conversion.run_finite {lanes : } (exponent : ) (exact : Vector lanes) :
run exponent (Numerics.NumericalValue.finite exact) = have rounded := quantizeAt exponent exact; ConversionOutcome.success rounded (status exact rounded)

Finite vectors are quantized lane-wise at the explicitly supplied exponent.

@[simp]

The generic shared-scale block has no infinity encoding.

@[simp]

The generic shared-scale block has no exceptional encoding.

The direct configured block converter satisfies the lane-wise relational specification.

@[simp]

The installed decoder exposes the exact decoded block.

@[simp]

The explicit exponent supplied to conversion is stored exactly.