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

Remove snap_ty type from the prelude #1362

Open
jhjourdan opened this issue Feb 17, 2025 · 0 comments
Open

Remove snap_ty type from the prelude #1362

jhjourdan opened this issue Feb 17, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@jhjourdan
Copy link
Collaborator

The snap_ty 't type is just isomorphic to 't, so there is no need to keep this type. Creusot should just remove this from generated files, and make inner and new the identity.

Expected outcomes:

  • SMT solvers do not need to instantiate new_spec and inner_spec. These types create a trivial matching loop.
  • One fewer polymorphic type that Why3 will not need to encode.
@jhjourdan jhjourdan added the enhancement New feature or request label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant