Created
October 21, 2018 18:52
-
-
Save KKostya/f9822b5f4eba30e1a1abd9d9d5c06ea2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type t = A | B | C | |
let sum = (f) => f(A) + f(B) + f(C) | |
instance( (f) => f(A) > 0 && f(B) > 0 && sum(f) == 42 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instance (after 0 steps, 0.011s): | |
let f = function | |
| C -> 40 | |
| _ -> 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment