def root_ok

bend-collections-laws-math@1.0.0.0 · proofs/math/natural/roots.bend:136

import bend-collections-laws-math@1.0.0.0/proofs/math/natural/roots.bend as Roots
import 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)