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

FStar.Witnessed.Core: mark witnessed argument as @@@unused #3002

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mtzguido
Copy link
Member

@mtzguido mtzguido commented Aug 3, 2023

This allows to user a witnessed token in recursive definitions in non-strictly positive positions. The justification is 1) that this token is really just a unit, it's the axiom that gives it any interesting behavior, and
2) that this token cannot be used except through an effectful operation.

So it should be safe to mark it its type argument @@@unused.

This allows to user a witnessed token in recursive definitions in
non-strictly positive positions. The justification is
1) that this token is really just a unit, it's the axiom that gives it
any interesting behavior, and
2) that this token cannot be used except through an effectful operation.

So it should be safe to mark it its type argument @@@unused.
mtzguido added a commit to mtzguido/steel that referenced this pull request Aug 3, 2023
This depends on FStarLang/FStar#3002, and allows to use locks and
invariants in non-strictly-positive positions of recursive definitions.
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.

None yet

1 participant