isabelle-client
is a TCP client for Isabelle server. For more information about the server see part 4 of the Isabelle system manual.
The best way to install this package is to use pip
:
Another option is to use Anaconda:
One can also download and run the client together with Isabelle in a Docker contanier:
from isabelle_client import get_isabelle_client, start_isabelle_server
# start Isabelle server
server_info, _ = start_isabelle_server()
# create a client object
isabelle = get_isabelle_client(server_info)
# send a theory file from the current directory to the server
response = isabelle.use_theories(
theories=["Example"], master_dir=".", watchdog_timeout=0
)
# shut the server down
isabelle.shutdown()
For more details, follow the usage example from documentation, run the script, or use isabelle-client
from a notebook, e.g. with Binder (Binder might fail with 'Failed to create temporary user for ...' error which is well known and related neither to isabelle-client
nor to the provided Dockerfile
. If that happens, try to run Docker as described in the section above).
More documentation can be found here.
There are Python clients to other interactive theorem provers, for example:
Modules helping to inetract with Isabelle server from Python are parts of the Proving for Fun project.
There are also clients to Isabelle server in other programming languages, e.g. this one in Rust.
If you’re writing a research paper, you can cite the Isabelle client using the following DOI. You can also cite Isabelle 2021 (and the earlier version of the client) with this DOI. There also is a somewhat more complete (but unpublished) pre-print.
Please follow the contribution guide while adhering to the code of conduct.