def sq_ok
import bend-collections-laws-math@1.0.0.0/src/math/generic.bend as Genericimport Base
import bend-collections-laws-math@1.0.0.0/src/math/num.bend as N
158def sq_ok(~T: Data, ~test: N.Test<T> -> Bool, more: Bool, +b: T, +bok: Bool) -> Bool:
159 match more:
160 case False{}:
161 bok
162 case True{}:
163 Bool.and(bok, Bool.not(test(N.MulOver{b, b})))
Uses (4)
Used by (9)
- bend-collections-laws-math@1.0.0.0/src/math/generic:pow_go
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:powsim
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:powsim
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/float:pow_bin
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/float:sq_ok_eq
- …