def ilog
import bend-collections-laws-math@1.0.0.0/src/math/natural.bend as Naturalimport Base
270def ilog(+n: Nat, +b: Nat) -> Result<&2, &2, MathError, Nat>:
271 ilog_ok(n, b, Bool.or(Nat.is_eq(n, 0n), Nat.is_lt(b, 2n)))
Uses (7)
Used by (12)
- bend-collections-laws-math@1.0.0.0/spec/math/generic:Ilog.agrees
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/logs:ilog_done
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/proof:ilog_value
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/logs:ilog_small_base
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/logs:ilog_zero
- …