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

Remove type arguments and type abstractions from Nodes #1512

Closed
lukaszcz opened this issue Sep 5, 2022 · 0 comments · Fixed by #1655
Closed

Remove type arguments and type abstractions from Nodes #1512

lukaszcz opened this issue Sep 5, 2022 · 0 comments · Fixed by #1655
Assignees
Labels
core Related to JuvixCore

Comments

@lukaszcz
Copy link
Collaborator

lukaszcz commented Sep 5, 2022

This should also adjust the types stored in the Infos and InfoTable, removing quantification over types and replacing all type variables with the dynamic type (see PR #1508).

For example,

\A : Type \f : ((B : Type) -> A -> B -> Pair A B) \x : A { f A x x }

should be transformed to

\f : (* -> * -> Pair * *) \x : * { f x x }

This transformation is a special case of a broader "runtime-irrelevance analysis" we might want to have later with dependent types.

Notes

@lukaszcz lukaszcz added pending-review core Related to JuvixCore labels Sep 5, 2022
@lukaszcz lukaszcz added this to the 0.3 milestone Sep 5, 2022
@janmasrovira janmasrovira self-assigned this Sep 28, 2022
@lukaszcz lukaszcz assigned lukaszcz and unassigned janmasrovira Dec 6, 2022
@lukaszcz lukaszcz changed the title JuvixCore transformation: Remove type arguments and type abstractions from Nodes Remove type arguments and type abstractions from Nodes Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to JuvixCore
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants