runtimeverification / runtimeverification/evm-semantics
Default Behavior for Lemma File and Module Import in Kontrol
Nobody has claimed this yet.
- Dominant language
- KCL
- Stars
- 591
- Forks
- 156
- Avg merge
- 2h 19m
- Merged PRs (30d)
- 1
Description
I propose a default setting enhancement for lemma files and module imports for the kontrol build command.
Current Requirement:
If a user wants to include project-specific lemmas, he must explicitly specify the lemmas file and module import on each build, like so:
kontrol build --require lemmas.k --module-import CronTwoTest:CRON-TWO-LEMMAS
Proposed Default Behavior:
The new behavior turns this configuration into a convention:
- We let
--requiredefault toproject-lemmas.k. - We let
--module-importdefault toPROJECT-LEMMAS. - We auto-create
project-lemmas.kwith an emptyPROJECT-LEMMASmodule if not present. (Maybe we could even add a simple lemma here, so users have a template to start from). - We emit a warning/error if
PROJECT-LEMMASmodule is missing (e.g. because a user deleted it).
This simplifies the process, benefiting users by reducing repetitive command-line specifications.
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 at the kontrol build command and inspect how --require and --module-import are currently handled. Use the proposed project-lemmas.k file and PROJECT-LEMMAS module behavior as the acceptance criteria: defaults should work without repeated flags, the file should be created when absent, and missing modules should produce a warning or error.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100