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

Use bound vars internally #499

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

Conversation

Nadrieril
Copy link
Member

@Nadrieril Nadrieril commented Dec 16, 2024

In #492, I decided to use Free vars for the type-level variables bound in the signature and Bound variables for those bound in an inner binder. After trying to implement the next PR that requires some non-trivial binder handling, this turned out to be a pain.

In this PR, I use Bound variables everywhere inside charon. I restore the "Free for signature-bound vars" usage in a micro-pass done at the end.

There is still one different with what was done before this PR: ImplElem::Ty contains a bbinder that used to be refered to using Free variables ad now uses `Boundè variables to avoid substitution mistakes.

@Nadrieril Nadrieril force-pushed the use-bound-vars-internally branch from 6843f31 to c4230ce Compare December 20, 2024 09:27
@Nadrieril Nadrieril force-pushed the use-bound-vars-internally branch from c4230ce to a3a0149 Compare December 20, 2024 11:37
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