~/bend-docscommunity

proofs/math/random/proof_float.bend source

proofs/math/random/proof_float.bend on the hub · documented module

import Baseimport ../../../spec/lib/common.bend as Cimport ../../../src/math/u64.bend as Wimport ../../../spec/math/w64.bend as SWimport ../../../spec/math/random.bend as SRMimport ./float.bend as FLimport ../../../spec/math/f64.bend as SF# Entry point: `bend proofs/math/random/proof_float.bend` checks the Float64# clauses of spec/math/random.bend, under the clause's name, for every input# (and every source, relation and element type where the clause is a# template). No holes, no axioms. The other clauses are checked by# proofs/math/random/proof.bend, proofs/math/random/proof_draws.bend,# proofs/math/random/proof_pcg.bend, so each root only re-checks the lemma# files it needs.def Float64.value(+x: W.U64, +n: Nat, +hn: {C.low(53n, SW.value(x)) == n : Nat}, +xv: Nat, +hx: {Nat.sub(SF.zb(), 53n) == xv : Nat}) -> SRM.Float64.value(x, n, hn, xv, hx):  FL.value(x, n, hn, xv, hx)def Float64.lt_one(+x: W.U64) -> SRM.Float64.lt_one(x):  FL.lt_one(x)