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

CBPV type system basics and renamer #49

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kozross
Copy link
Member

@kozross kozross commented Mar 4, 2025

Partially-addresses #9 and #41 . This produces a basic implementation of a CBPV type system with polymorphism, analogous to System F. To assist in hash consing, we use a similar DeBruijn-like system for type abstractions, but extend it to allow us to have 'denser' levels than a single variable at a time. We also provide a renamer, allowing us to 'fix' the abstractions in a way that makes type checking and other manipulations easier.

We also provide some tests to ensure the renamer works as we expect.

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

Successfully merging this pull request may close these issues.

1 participant