-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unification should schedule and normalize constraints #172
Labels
Comments
Current output with
|
Requires #170 to be implemented first. From the error message it is also clear that the substitution is only recorded in the subst data structure, but not applied to the remaining constraints: The error message would say "Cannot automatically decide whether Nat and True.ite(Type, Nat, Bool) unify" otherwise. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following example should typecheck, but it doesn't:
The tricky bit is that we get the following constraint:
which can be decomposed into two constraints:
which can be solved if done in the correct order and by interleaving normalization with unification.
The text was updated successfully, but these errors were encountered: