Correctness of shared-scale blocks #
The direct vector kernel implements contextual quantization, and the format satisfies the generic block-scaled representation capability.
@[simp]
theorem
FloatLib.Floats.Formats.Block.represents_iff
{lanes : ℕ}
(code : Numerics.FormatCode (SharedScale lanes))
(value : Vector ℚ lanes)
:
The common format represents exactly its vector-valued block denotation.
theorem
FloatLib.Floats.Formats.Block.quantizesAt_quantizeAt
{lanes : ℕ}
(exponent : ℤ)
(input : Vector ℚ lanes)
:
QuantizesAt exponent input (quantizeAt exponent input)
The direct vector kernel satisfies the contextual relational specification.
quantizeAt implements shared-scale contextual quantization.
The shared binary scale is strictly positive.