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

Parameterized Module Type Error #1241

Closed
michaelabernardo opened this issue Jul 20, 2021 · 3 comments
Closed

Parameterized Module Type Error #1241

michaelabernardo opened this issue Jul 20, 2021 · 3 comments

Comments

@michaelabernardo
Copy link

Hi there!

I have a module kind of like this:

module test where

parameter

  a : Z b

  type b : #
  type constraint (fin b, b >= 1)

and I get this error:

[error] at test.cry:1:1--8:34:
  Failed to validate user-specified signature.
    in the definition of 'test::a', at test.cry:5:3--5:4,
    we need to show that
      for any type test::b
      the following constraints hold:
        • fin test::b
            arising from
            use of partial type function Cryptol::Z
            at test.cry:5:7--5:10
        • test::b >= 1
            arising from
            use of partial type function Cryptol::Z
            at test.cry:5:7--5:10

I'm not sure how to fix it. It worked in older versions of Cryptol.

@michaelabernardo
Copy link
Author

(Cryptol version 2.11.0.99)

@robdockins
Copy link
Contributor

Looks like the same as #1240?

@michaelabernardo
Copy link
Author

My bad! Sorry about that!

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

2 participants