def rp62

bend-collections-laws-math@1.0.0.0 · proofs/math/typed/f64mulp.bend:74

import bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64mulp.bend as F64mulp
import Base
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as C
import bend-collections-laws-math@1.0.0.0/spec/math/f64.bend as SF
import bend-collections-laws-math@1.0.0.0/spec/math/w64.bend as SW
import bend-collections-laws-math@1.0.0.0/src/math/f64.bend as F
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as WU

74# SoftFloat's rp62(s, e, sig) for sig in [2^61, 2^63) is round(s, sig, e - 2180)
75def rp62(+s: Bool, +e: Nat, +sig: WU.U64, +x: Nat, +hx: {Nat.add(x, 2180n) == e : Nat}, +hx1: {Nat.is_le(1n, x) == True{} : Bool}, +h61: {C.fits(61n, SW.value(sig)) == False{} : Bool}, +h63: {C.fits(63n, SW.value(sig)) == True{} : Bool}) -> {F.rp62(s, e, sig) == SF.round(s, SW.value(sig), x) : F.F64}:
76  rp62_g(1n, {==}, s, e, sig, x, hx, hx1, h61, h63, 1073741824, {==})

Uses (11)

Used by (2)