Pyk RPC prover not interpreting K funcitonal claims as equality proofs

Open
#4,211 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
compilers, tooling

Research direction

Start by inspecting the JSON produced by kprove --dry-run --emit-json ... and determine whether the frontend adds an inferred K cell to functional claims. Trace how the Pyk RPC prover classifies those claims versus reachability queries. Done means functional claims become equality predicates simplified to #Top, while reachability queries retain their existing behavior.

Written by the indexing model from the issue text.

Description

pyk

Currently, we are using kprove --dry-run --emit-json ... to read in specifications for the pyk RPC prover. This is good because we get access to the parser, but it also makes it so that we are not able to tell whether something is a functional claim or not. For functional claims, we want to build equality predicates instead, and simplify those to #Top. Currently, instead it discharges them like reachability queries (which is more similar to an implication check than a conditional equality check).

I'm not sure if this can be fixed without modifying the frontend. For example, we made need to add an argument to kprove --dry-run --emit-json ... that says: --no-infer-k-cell ..., which leaves a given proof alone if there is no K cell attached to it.

I need to inspect the generated JSON more to determine if the frontend is adding this inferred K cell or not.

Dominant language
Python
Stars
591
Forks
163
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from runtimeverification/k

All issues in runtimeverification/k

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.