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

Automatically generated val sigelt does not elaborate #9

Open
gebner opened this issue Oct 6, 2023 · 1 comment
Open

Automatically generated val sigelt does not elaborate #9

gebner opened this issue Oct 6, 2023 · 1 comment

Comments

@gebner
Copy link
Collaborator

gebner commented Oct 6, 2023

From FStar.Buffer.fst:

val contains #a h (b: buffer a) : GTot Type0
let contains #a h (b:buffer a) : GTot Type0 = HS.contains h b.content

In the above, the type of the argument h is unconstrained in the val, so we get an error. (NB, this is a definition and not a lemma.)

@gebner
Copy link
Collaborator Author

gebner commented Oct 10, 2023

Another related way in which this can fail is by missing universe level instantiations, i.e., that a Type might implicitly become a Type0 in a let-definition.

let big_or' #a (f: (a -> Type)) (l: list a) : Type = map_op' l_or f l False
// ^^ Type actually means Type0 here

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