def up64_okg
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64isq.bend as W64isqimport Base
import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as X
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as WU
51def up64_okg(+n: WU.U64, +r: U32, +m: U32) -> Bool:
52 Bool.and(U32.is_lt(r, m), Bool.not(X.sq_over(n, U32.add(r, 1))))