Correctness of direct arbitrary-width exact-dyadic posit arithmetic #
The direct-packing kernels agree with the rational specification. Addition, subtraction,
multiplication, square root, and FMA are related through the exact-dyadic implementation.
Division uses the quotient-prefix refinement directly. Executable definitions are in
Direct.Runtime.
theorem
FloatLib.Floats.Formats.Posit.Model.DirectDyadicArithmetic.add_eq_dyadic
{format : Format}
(left right : Model format)
:
Direct arbitrary-width addition equals the shared exact-dyadic implementation.
theorem
FloatLib.Floats.Formats.Posit.Model.DirectDyadicArithmetic.sub_eq_dyadic
{format : Format}
(left right : Model format)
:
Direct arbitrary-width subtraction equals the shared exact-dyadic implementation.
theorem
FloatLib.Floats.Formats.Posit.Model.DirectDyadicArithmetic.mul_eq_dyadic
{format : Format}
(left right : Model format)
:
Direct arbitrary-width multiplication equals the shared exact-dyadic implementation.
theorem
FloatLib.Floats.Formats.Posit.Model.DirectDyadicArithmetic.sqrt_eq_dyadic
{format : Format}
(value : Model format)
:
Direct arbitrary-width square root equals squared-boundary rounding.
theorem
FloatLib.Floats.Formats.Posit.Model.DirectDyadicArithmetic.fma_eq_dyadic
{format : Format}
(left right addend : Model format)
:
Direct arbitrary-width FMA equals the shared exact-dyadic implementation.