-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] constraint-based unification #111
Comments
In the following example, function my_cons(
implicit A: Type,
implicit B: (A) -> Type,
x: A,
y: B(x),
): exists (x: A) B(x) {
return cons(x, y)
}
check my_cons("ratatouille", "baguette"): Pair(String, String) during unify B(x) = String but only after the outer unification (during unfiy exists (x: A) B(x) = Pair(String, String) We know: {
B: (_) => String
} |
Solution 1: During |
I think this is called "constraint-based unification". We might read some papers about this. |
Maybe learn from: https://en.wikipedia.org/wiki/Constraint_logic_programming |
Yes, it is :) |
cons
The text was updated successfully, but these errors were encountered: