Skip to content

Refactor constraints to syntactic form (Cstr) - #70

Merged
nilehmann merged 5 commits into
mainfrom
push-moqvlmkvsvlt
Jul 18, 2026
Merged

Refactor constraints to syntactic form (Cstr)#70
nilehmann merged 5 commits into
mainfrom
push-moqvlmkvsvlt

Conversation

@nilehmann

Copy link
Copy Markdown
Collaborator

No description provided.

@petros-marko petros-marko left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

I see what you mean about Refinement.instNu... Could we avoid it if Cstr binders were not named?

@nilehmann

Copy link
Copy Markdown
Collaborator Author

I tried locally nameless, but that was worse because bound variables in types were being opened with free variables, so they had to be closed again to put them in the constraint. I think Refinement.instNu could be removed if we add an extra hypothesis to theorems requiring closed terms or if the vcgen ensured closed terms.

What I don't understand is why this didn't cause a problem before

@petros-marko

Copy link
Copy Markdown
Collaborator

I tried locally nameless, but that was worse because bound variables in types were being opened with free variables, so they had to be closed again to put them in the constraint. I think Refinement.instNu could be removed if we add an extra hypothesis to theorems requiring closed terms or if the vcgen ensured closed terms.

What I don't understand is why this didn't cause a problem before

I mean, since it's already written, is it worth to change it and add these hypotheses? even as is it's much closer to what's in the paper.

@nilehmann

Copy link
Copy Markdown
Collaborator Author

Can we merge this @petros-marko @jam-khan ?

@petros-marko

Copy link
Copy Markdown
Collaborator

Can we merge this @petros-marko @jam-khan ?

It's a yes from me 👍🏽

@jam-khan

Copy link
Copy Markdown
Owner

Can we merge this @petros-marko @jam-khan ?

Yes, looks good to me as well!

@nilehmann
nilehmann merged commit c937558 into main Jul 18, 2026
3 checks passed
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.

3 participants