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

Lean: Supporting enums with number conversions #927

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

lfrenot
Copy link
Collaborator

@lfrenot lfrenot commented Jan 30, 2025

No description provided.

@@ -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
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

Copy link
Collaborator

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_ids implicit for now

@lfrenot lfrenot requested a review from bacam January 30, 2025 11:21
@lfrenot
Copy link
Collaborator Author

lfrenot commented Jan 30, 2025

@javra I forgot that this commit was also needed to replace arg# with arg_

Copy link

github-actions bot commented Jan 30, 2025

Test Results

   12 files  ±0     24 suites  ±0   0s ⏱️ ±0s
  759 tests ±0    759 ✅ ±0  0 💤 ±0  0 ❌ ±0 
2 503 runs  ±0  2 503 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 53c1a35. ± Comparison against base commit e7f1262.

♻️ This comment has been updated with latest results.

@bacam bacam merged commit cafe946 into rems-project:sail2 Jan 30, 2025
3 checks passed
@lfrenot lfrenot deleted the lean/id-exists branch January 30, 2025 13:37
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

Successfully merging this pull request may close these issues.

4 participants