def Ilog.done
import bend-collections-laws-crypto@1.0.0.0/spec/math/natural.bend as Naturalimport 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>}>