def Ilog.done

bend-collections-laws-crypto@1.0.0.0 · spec/math/natural.bend:227

import bend-collections-laws-crypto@1.0.0.0/spec/math/natural.bend as Natural
import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/natural.bend as M

227# a positive argument and a base of at least 2 always have a logarithm
228def Ilog.done(+np: Nat, +bq: Nat) -> Type:
229  Sigma<&1, &1, Nat, r => {M.ilog(1n+np, 2n+bq) == Done{r} : Result<&2, &2, M.MathError, Nat>}>

Uses (5)

Used by (1)