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: pc_no_wildcard test fails #1153

Open
protoben opened this issue Mar 11, 2025 · 0 comments
Open

Lean: pc_no_wildcard test fails #1153

protoben opened this issue Mar 11, 2025 · 0 comments
Labels
Lean Issues with Sail to Lean translation

Comments

@protoben
Copy link
Collaborator

The pc_no_wildcard Lean test fails with the following message:

Warning: Required literal pc_no_wildcard.sail:14.5-8:
14 |    (0b1, _)          => 2,
   |     ^-^
   |
Sail cannot simplify the above pattern match:
This bitvector pattern literal must be kept, as it is required for Sail to show that the surrounding pattern match is complete.
When translated into prover targets (e.g. Lem, Coq) without native bitvector patterns, they may be unable to verify that the match covers all possible cases.

Type error:
pc_no_wildcard.sail:6.13-39:
6 |register R : (bits(1), option(bits(2))) = (0b0, None())
  |             ^------------------------^
  | Unsupported register type
@protoben protoben added the Lean Issues with Sail to Lean translation label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lean Issues with Sail to Lean translation
Projects
None yet
Development

No branches or pull requests

1 participant