Skip to content

copilot-theorem: README mentions inexisting Driver.hs, lightProver #452

@ivanperez-keera

Description

@ivanperez-keera

Description

copilot-theorem's README mentions a file Driver.hs that is not part of the library:

As an example, the following prover is used in Driver.hs:

and later

Some examples are in the examples folder. The Driver.hs contains the main function to run any example. 

It also says that there are two provers: one based on Kind2, and one called lightProver. The latter no longer exists, but we do have a What4 module now.

These mentions should be adjusted or removed.

Type

  • Bug: incorrect documentation.

Additional context

None.

Requester

  • Max Fan (NASA)

Method to check presence of bug

Running a search through the tree brings up several mentions:

$ grep -nIHre 'Driver.hs'
copilot-theorem/README.md:205:As an example, the following prover is used in `Driver.hs`:
copilot-theorem/README.md:254:Some examples are in the *examples* folder. The `Driver.hs` contains the `main`
copilot-theorem/README.md:257:by changing one *import* directive in `Driver.hs`.
$ grep -nIHre 'lightProver'
copilot-theorem/README.md:79:prove (lightProver def) (check "gt0") spec
copilot-theorem/README.md:82:where `lightProver def` stands for the *light prover* with default
copilot-theorem/README.md:150:`lightProver :: Options -> Prover` function which builds a prover from a record
copilot-theorem/README.md:209:  lightProver def {onlyBmc = True, kTimeout = 5}
$ grep -nIHre '\<Light\>' | grep -ve 'XML'
copilot-theorem/README.md:71:  the `Copilot.Theorem.Light` and `Copilot.Theorem.Kind2` module.
copilot-theorem/README.md:123:Two provers are provided by default: `Light` and `Kind2`.
copilot-theorem/README.md:149:The *light prover* is defined in `Copilot.Theorem.Light`. This module exports the
copilot-theorem/README.md:399:#### The Light prover
copilot-theorem/README.md:402:basic *k-induction* algorithm [1]. The `Light` directory contains three files:

Expected result

The output of the above grep commands should be empty, indicating that that inexisting file/modules/functions are not mentioned.

Desired result

The output of the above grep commands should be empty, indicating that that inexisting file/modules/functions are not mentioned.

Proposed solution

The claims should be adjusted to match the existing file tree, modules and exports, either by updating the references to point to their current locations, or by removing the claims altogether.

Further notes

None.

Metadata

Metadata

Assignees

Labels

CR:Status:ClosedAdmin only: Change request that has been completedCR:Type:BugAdmin only: Change request pertaining to error detected

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions