def ilog_value
import bend-collections-laws-math@1.0.0.0/proofs/math/natural/logs.bend as Logsimport Base
import bend-collections-laws-math@1.0.0.0/src/math/natural.bend as M
74# the value ilog(n, b) returns for n >= 1, b >= 2
75def ilog_value(+np: Nat, +bq: Nat) -> Nat:
76 M.ilog_go(1n+np, 1n+np, 2n+bq, 0n, 1n, Nat.is_le(1n, Nat.div(1n+np, 2n+bq)))
Uses (4)
Used by (6)
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/logs:ilog_bounds
- 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:lt_pow_succ_ilog
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/logs:pow_ilog_le
- …