-
Notifications
You must be signed in to change notification settings - Fork 120
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
Lean: Supporting enums with number conversions #927
Conversation
@@ -160,6 +160,7 @@ let rec doc_typ ctx (Typ_aux (t, _) as typ) = | |||
if provably_nneg ctx low then string "Nat" else string "Int" | |||
| Typ_var kid -> doc_kid ctx kid | |||
| Typ_app (id, _) -> doc_id_ctor id | |||
| Typ_exist (_, _, typ) -> doc_typ ctx typ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the first two components?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the first one is k_ids, and the second is n_constraints on these k_ids
It's quantifiers on the output values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I think it's safe to ignore the constraints and leave the k_id
s implicit for now
@javra I forgot that this commit was also needed to replace |
e8f29e9
to
53c1a35
Compare
No description provided.