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

Unable to run claims with kevm prove #2367

Closed
lucasmt opened this issue Mar 22, 2024 · 2 comments · Fixed by runtimeverification/k#4172
Closed

Unable to run claims with kevm prove #2367

lucasmt opened this issue Mar 22, 2024 · 2 comments · Fixed by runtimeverification/k#4172
Assignees
Labels
bug Something isn't working engagement Related to an ongoing engagement

Comments

@lucasmt
Copy link
Contributor

lucasmt commented Mar 22, 2024

I have a lemmas.k file with a LEMMAS module and a LEMMAS-SPEC module with a claim claim-1. I'm trying to run this claim with the commands

kevm kompile-spec lemmas.k --target haskell --main-module LEMMAS --syntax-module LEMMAS -o kompiled
kevm prove lemmas.k --claim LEMMAS-SPEC.claim-1 --definition kompiled

but I get the error ValueError: Claim labels not found: ['LEMMAS.LEMMAS-SPEC.claim-1']. In other words, it automatically prefixes the claim label with the main module LEMMAS, which is incorrect because the claim is in the LEMMAS-SPEC module. It's not even possible for the claim to be in the main module because in this case kevm kompile-spec fails with the error message Claims are not allowed in the definition.

kevm prove used to have a --spec-module option, but it no longer seems to accept it, so I don't know how else to specify the spec module.

@PetarMax
Copy link
Contributor

I would classify this as high priority, since we do need it for ongiong engagements and standard testing.

@anvacaru anvacaru self-assigned this Apr 11, 2024
@PetarMax
Copy link
Contributor

In pyk version 0.1.696 we have an update_args static method for KDefinitionOptions here, which has --spec-module. We also have update_args for all subclasses of Options.

In pyk version 0.1.697, KDefinitionOptions disappears entirely.

In pyk version 0.1.712, KDefinitionOptions makes a comeback, but without the update_args static method (here). No subclass of Options has update_args anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working engagement Related to an ongoing engagement
Projects
None yet
4 participants