runtimeverification / runtimeverification/haskell-backend
[K-Improvement] Add `preserves-definedness` attribute for semantic rules
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 224
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
@ehildenb suggested a while ago we try https://github.com/runtimeverification/haskell-backend/issues/3175, and after the discussion here it looks like it's the way to go, especially for semantics which contain large maps/sets.
I think we need to do the following:
- Frontend: add a
preserves-definednessattribute for semantic rules. - Backend: add
kore-rule-definednesswhich computes#Ceil(RHS)without any of the conditions present in#Ceil(LHS)(which has to be computed as well). - Frontend: integrate
kore-rule-definednessintokompile - Backend: check definedness of the first configuration, after that if a configuration comes from the application of a definedness preserving rule, then
#Ceil(term)(and of all of its subterms) can be simplified to#Top.
I've been thinking what the best way to integrate kore-rule-definedness and the frontend would be, and I think that kore-rule-definedness should be part of the kore-rpc-server. The reason is that this way we can avoid having to re-load the definition in the backend every call. kompile could spawn a kore server and run the command for every rule in definition, and add the appropriate information to each rule. Thoughts?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing discussion and the issue's proposed kore-rpc-server and kompile integration. Trace how semantic rules are handled in the frontend and backend, then determine how kore-rule-definedness should be computed and consumed. Done means the preserves-definedness attribute, rule-definedness computation, kompile integration, and backend simplification behavior all work together.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100