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

NBE: mantain shape of primops to read them back them properly #3196

Merged
merged 4 commits into from
Jan 27, 2024

Conversation

mtzguido
Copy link
Member

Fixes #3185.

In that issue, a primop was encoded to a Lam node with a set of binders
of unit type (essentially eta-expanding it), which caused a failure in
reading it back. This patch introduces a new shape for an encoded lambda
which is a partially applied primop, so reading it back becomes trivial,
and does not require an eta.

cc @amosr , maybe you can give it a spin on the rest of your development?

Fixes FStarLang#3185.

In that issue, a primop was encoded to a Lam node with a set of binders
of unit type (essentially eta-expanding it), which caused a failure in
reading it back. This patch introduces a new shape for an encoded lambda
which is a partially applied primop, so reading it back becomes trivial,
and does not require an eta.
@mtzguido mtzguido changed the title NBE: mantain shape of primops to resugar them properly NBE: mantain shape of primops to read them back them properly Jan 25, 2024
@amosr
Copy link
Contributor

amosr commented Jan 26, 2024

Thanks Guido! This resolves the issue for me - I no longer need to eta-expand before running nbe

@mtzguido mtzguido enabled auto-merge January 27, 2024 02:15
@mtzguido mtzguido merged commit 4f802b4 into FStarLang:master Jan 27, 2024
2 checks passed
@mtzguido mtzguido deleted the 3185 branch January 27, 2024 02:25
@mtzguido
Copy link
Member Author

Thanks for checking!

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.

NBE: eta expansion generates ill-typed terms
2 participants