Skip to content
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

Integrate atomic type constraints with unification #17

Open
michaelballantyne opened this issue Sep 20, 2021 · 0 comments
Open

Integrate atomic type constraints with unification #17

michaelballantyne opened this issue Sep 20, 2021 · 0 comments

Comments

@michaelballantyne
Copy link
Owner

It should help us avoid some occurs checks. Consider:

(define-relation (foo x y)
  (symbolo x)
  (== x y))

In the case where y is a very large list, we'll do the unification and the expensive occurs check before rechecking the symbolo constraint and discovering it is not satisfied. If we integrate atomic type constraints with unification and the substitution, the failure can be discovered immediately during unification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant