def root_ok
import bend-collections-laws-math@1.0.0.0/proofs/math/natural/roots.bend as Rootsimport Base
import bend-collections-laws-math@1.0.0.0/src/math/natural.bend as M
136# the answer r: r^k <= n < (r + 1)^k, through root_le
137def root_ok(+n: Nat, +k: Nat, +r: Nat) -> Type:
138 {M.root_le(n, k, r) == True{} : Bool} & {M.root_le(n, k, 1n+r) == False{} : Bool}
Uses (4)
Used by (7)
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/roots:iroot_k_ok
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/roots:done_ok
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/roots:ok_le
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/roots:ok_lt
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/roots:root_top
- …