def Max.agrees
bend-collections-laws-crypto@1.0.0.0 · spec/math/generic.bend:193
import bend-collections-laws-crypto@1.0.0.0/spec/math/generic.bend as Generic
import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/num.bend as N
import bend-collections-laws-crypto@1.0.0.0/src/math/generic.bend as G
193def Max.agrees(~T: Data, ~op: N.Op<T> -> T, ~test: N.Test<T> -> Bool, ~val: T -> Nat, ~of: Nat -> T, +a: T, +b: T) -> Type:
194 {G.max(~T, ~op, ~test, a, b) == of(Nat.max(val(a), val(b))) : T}