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

Logical negation #1317

Open
andrew-johnson-4 opened this issue Mar 5, 2025 · 1 comment
Open

Logical negation #1317

andrew-johnson-4 opened this issue Mar 5, 2025 · 1 comment

Comments

@andrew-johnson-4
Copy link
Owner

let f(x: A+Not<B>): Nil;
@andrew-johnson-4
Copy link
Owner Author

andrew-johnson-4 commented Mar 5, 2025

  1. Implement in unify as a "rejection"
  2. consider, what does "returning a negation" mean?
  3. consider, what does "accepting a function with a negation in domain or range" mean?
  4. consider, what does "returning a function with a negation in domain or range" mean?

I think that is all cases.

Question: covariance / contravariance is implemented during unification, so would this mean only case 1 needs to be implemented?

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