def Intn.lt

bend-collections-laws-crypto@1.0.0.0 · spec/math/random.bend:146

import bend-collections-laws-crypto@1.0.0.0/spec/math/random.bend as Random
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W
import bend-collections-laws-crypto@1.0.0.0/src/math/random/rand.bend as R

146def Intn.lt(~S: Data, ~next: S -> W.U64 & S, +s: S, +n: Nat, +hn: {Nat.is_lt(0n, n) == True{} : Bool}, +hw: {C.fits(64n, n) == True{} : Bool}) -> Type:
147  {Nat.is_lt(R.fst(Nat, S, R.intn(~S, ~next, s, n)), n) == True{} : Bool}

Uses (8)

Used by (0)

No other definition uses this definition.