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

Audit KORE axioms #4133

Open
tothtamas28 opened this issue Mar 26, 2024 · 1 comment
Open

Audit KORE axioms #4133

tothtamas28 opened this issue Mar 26, 2024 · 1 comment

Comments

@tothtamas28
Copy link
Contributor

tothtamas28 commented Mar 26, 2024

Related:

In ModuleToKORE, a large chunk of code (as well as time executing that code) is spent generating axioms expressing certain algebraic properties of sorts and symbols. The backends then parse these axioms, and either filter them out based on the corresponding attribute without any further processing, or pattern match them to extract some information (see the K Attributes spreadsheet).

In the former case, we can just not generate the axiom. In the latter, we can introduce an attribute on the sort or symbol that encodes the desired property in a more structured and concise way.


Axiom Source Axiom attribute Source attribute Comment
Subsort sort subsort{_,_}() none
Overload symbol symbol-overload{}() none
Associativity symbol assoc{}() assoc{}()
Commutativity symbol comm{}() comm{}() Not generated
Idempotency symbol idem{}() idem{}()
Unit symbol unit{}() unit{}()
Functional symbol functional{}() functional{}()
No-confusion symbol constructor{}() constructor{}()
No-junk symbol constructor{}() constructor{}()
Non-executable symbol ? non-executable{}()? Not generated
@Baltoli
Copy link
Collaborator

Baltoli commented Mar 26, 2024

We should document precisely what algebraic properties we are asserting in each of these cases; there's a broader question about what KORE for rewriting vs. KORE for proving / theory is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants