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! macro specialized for booleans #1269

Open
W95Psp opened this issue Jan 23, 2025 · 0 comments
Open

fstar! macro specialized for booleans #1269

W95Psp opened this issue Jan 23, 2025 · 0 comments
Labels

Comments

@W95Psp
Copy link
Collaborator

W95Psp commented Jan 23, 2025

Currently we have:

  • hax_lib::fstar! that returns unit (computationally irrelevant F* code)
  • fstar! in the context of a computationally irrelevant code (e.g. in a req/ens clause), that can return any type

We can't have a polymorphic fstar! accessible in any context, because we'd need to return any type, that is we'd need to panic.

For now, we would like to have a fstar_bool!, a specialized, safe version of fstar!.
We could also have an polymorphicfstar_or_default! over types T: Default, that is defined as T::default().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants