def cadd
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
55def cadd(~T: Data, ~op: N.Op<T> -> T, ~test: N.Test<T> -> Bool, +a: T, +b: T) -> Maybe<&2, T>:
56 fits(T, test(N.AddOver{a, b}), op(N.Add{a, b}))
Uses (5)
Used by (5)
- bend-collections-laws-math@1.0.0.0/src/math/generic:sum_go
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:cadd_rel
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:sal
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:cadd_rel
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:sal