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

Allow introducing semantic rules in kprove #4772

Merged
merged 5 commits into from
Mar 24, 2025

Conversation

ehildenb
Copy link
Member

Part of: runtimeverification/kontrol#977

Currently, kprove does not allow including new semantic rules in the definition that is being proven, only claims and simplification rules. This change allows the user to set a flag --allow-new-rules which disables this check. The intention is for it to be used with --dry-run, so that kprove ... can be used just to parse some modules basically.

In pyk, we add --allow-new-rules to KProve.parse_module(...) invocation, so that it can parse new modules that introduce semantic rules. This enables us to use those new rules in the haskell backend booster when doing proofs with Kontrol, which is key to loading loop invariants dynamically to support runtimeverification/kontrol#977.

@ehildenb ehildenb self-assigned this Mar 15, 2025
@ehildenb ehildenb changed the title Allow new new semantic rules in kprove with appropriate flag Allow introducing semantic rules in kprove Mar 15, 2025
@ehildenb
Copy link
Member Author

I was waiting for more features to emerge that I need, but I think this will do for now!

@ehildenb ehildenb marked this pull request as ready for review March 20, 2025 22:13
@automergerpr-permission-manager automergerpr-permission-manager bot merged commit a2a6d9c into develop Mar 24, 2025
18 checks passed
@automergerpr-permission-manager automergerpr-permission-manager bot deleted the allow-new-rules-kprove branch March 24, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants