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

Refinement with ID declared later in letrec causes internal error #1700

Open
jpolitz opened this issue Aug 20, 2023 · 0 comments
Open

Refinement with ID declared later in letrec causes internal error #1700

jpolitz opened this issue Aug 20, 2023 · 0 comments

Comments

@jpolitz
Copy link
Member

jpolitz commented Aug 20, 2023

Both of these programs (with rec or letrec) cause an internal error.

image

image

rec n :: Number%(is-zero) = 10
rec is-zero = lam(x): x == 0 end


letrec n :: Number%(is-zero) = 10,
  is-zero = lam(x): x == 0 end:
  n
end

The expected behavior is this error:

image

Probably refinements assuming the IDs are safe letrec IDs when they are not guaranteed to be.

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

No branches or pull requests

1 participant