Single-rounding semantics of posit algebraic functions #
The finite-input theorems identify the exact expression before rounding, including irrational square roots. Exceptional-input theorems give the NaR rules from the Posit Standard (2022), §5.1.
theorem
FloatLib.Floats.Formats.Posit.Model.fMM_eq_roundRat
{format : Format}
(left right third : Model format)
{a b c : ℚ}
(hleft : left.toRat? = some a)
(hright : right.toRat? = some b)
(hthird : third.toRat? = some c)
:
Finite fused triple multiplication rounds the exact three-factor rational product once.