-
Notifications
You must be signed in to change notification settings - Fork 63
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
Cryptol-saw-core translator produces ill-typed terms from polymorphic recursive functions #1318
Comments
It looks well-typed to me. I think the problem is just expecting it to have |
I believe that the primitive
I think the type error message is really complaining about the argument to |
Indeed, changing the type of
The more general type is absolutely necessary if we want to be able to handle polymorphic recursion. |
Old type: primitive fix : (a : sort 0) -> (a -> a) -> a; New type: primitive fix : (a : sort 1) -> (a -> a) -> a; Fixes #1318.
This problem was discovered as a test suite failure in #1317, which bumps
cryptol
to include the newsortBy
function in the Cryptol prelude. Here's a self-contained example that you can do from the REPL:The text was updated successfully, but these errors were encountered: