Isabelle REPL client
Project description
Isabelle REPL
Unofficial support for Isabelle's Read-Eval-Print-Loop.
- Python Client, easy for Machine Learning.
- Full support for all Isabelle commands
- Tracing proof state and output panel for each step of evaluation.
- Plugin: inserting Isabelle/ML code to collect any data you want directly from Isabelle's internal representations.
- Socket based remote communication
- Concurrency
Installation
Ensuring <ISABELLE-BASE-DIRECTORY>/bin
is in your $PATH
environment
isabelle components -u <THE-BASE-DIRECTORY-OF-OUR-PROGRAM>
pip install IsaREPL
Start up the REPL server
# merely an example:
./repl_server.sh 127.0.0.1:6666 HOL ./tmp
Run ./repl_server.sh
to see the full explanation of the arguments and options.
Example Clients
Every interface of our client is will documented (it is highly recommended to read our source). Some examples are given in the example folder.
# Run an example
./examples/example_eval.py 127.0.0.1:6666
Notes
Documents
All documents are given as docstrings attaching to Python client interfaces, see the source.
Concurrency
This REPL supports concurrent evaluation of multiple files. However, to ensure proper error tracking and result tracing, it disables Isabelle's concurrency between commands within a single theory file. While Isabelle typically executes by
commands asynchronously (continuing to the next command before completion), this REPL enforces synchronous evaluation. Each command must complete before the next begins, allowing for accurate capture and reporting of any failures.
Sledgehammer (via our auto_sledgehamemr
wrapper, see example) is still concurrent.
Communication Protocol
It is possible to implement a client in other languages. However, the document for the communication protocol is not provided and I refer you to read our source code, as it should be simple enough.
Contribution
Feel free to open any GitHub issue if you have any feature requests.
I am not a professional python developer, so contribution is highly welcome to enrich the client's features.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file isarepl-0.2.0.tar.gz
.
File metadata
- Download URL: isarepl-0.2.0.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac205100ed14b64609072a11e9e7654e32998b7bd73b7ea4ec1a00b816b45ee4 |
|
MD5 | 6cdee8065cfe12e9729eb695d64ca151 |
|
BLAKE2b-256 | 9663c304fefa7d65402e4fae47d6e84abcf376ef4292cdc5599d8fa10dc61cb4 |
File details
Details for the file IsaREPL-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: IsaREPL-0.2.0-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ef231765730acfcd1b69b1eb6299369c421c3e87d01971938b0509dfd93b141 |
|
MD5 | 7068bbfd29d5ad19c97d09165a8aa298 |
|
BLAKE2b-256 | b6ceeb385e29bea44ffcb0b1bc173e00da0bb8b2351481807b021000ba4687d3 |