Consensys / corset

4 stars 11 forks source link

Missing `:binary` Types in Stdlib #58

Closed DavePearce closed 4 months ago

DavePearce commented 5 months ago

Looks like there are some missing :binary constraints in the standard library. For example:

(defpurefun ((~and :@bool) a b) (~ (and a b)))

This should have type :binary@bool because ~ guarantees the result is either 0 or 1.