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

Simplify positive intersection co-occurrences too #102

Open
LPTK opened this issue Apr 21, 2022 · 0 comments
Open

Simplify positive intersection co-occurrences too #102

LPTK opened this issue Apr 21, 2022 · 0 comments

Comments

@LPTK
Copy link
Contributor

LPTK commented Apr 21, 2022

The following is currently not simplified:

class Some[A]
//│ Defined class Some

def f: (Some['A] & 'this) -> (Some['A] & 'this)
//│ f: (Some['A] & 'this) -> (Some['A] & 'this)
//│  = <missing implementation>

But we could simplify it to (Some['A] & 'this) -> 'this because 'this always co-occurs with Some['A] negatively.

We could also probably do the same for unions, though it would be less straightforward to implement since we put types in DNF, not CNF.

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

No branches or pull requests

1 participant