Skip to content

Conversation

@Stevengre
Copy link
Contributor

No description provided.

…dd-module rules

When converting KRule to Kore axioms via add-module, variables that appear
in RHS but not in LHS (existential variables) were not being wrapped with
\exists quantifiers. This caused a structural difference compared to rules
generated by kompile.

This change adds two helper functions:
- _collect_evars: collects all EVar instances from a Kore pattern
- _add_exists_quantifiers: wraps RHS with \exists for each existential var

The transformation is applied after krule_to_kore in _load_extra_module_rules.
Copy link
Collaborator

@dkcumming dkcumming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is all good, I am not familiar with your work for this though

@automergerpr-permission-manager automergerpr-permission-manager bot merged commit 14a8e4a into master Jan 22, 2026
7 checks passed
@automergerpr-permission-manager automergerpr-permission-manager bot deleted the jh/add-exists-quantifiers branch January 22, 2026 08:03
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.

3 participants