Skip to content

EllbellCode/IsabeLLM

Repository files navigation

IsabeLLM

IsabeLLM is a tool that integrates a Large Language Model with the theorem prover Isabelle via an API.

Installation

  1. Scala configuration

    Install SDKMAN:

    curl -s "https://get.sdkman.io" | bash
    source .bashrc

    Install JAVA 11 and scala build tool (sbt):

    sdk install java 11.0.11-open
    sdk install sbt
  2. Python configuration

    Install python:

    sudo apt install python3 python3-pip -y

    Install virtual environment:

    sudo apt install python3-venv -y

    Create and activate a virtual environment:

    python3 -m venv myenv
    source venv/bin/activate
  3. API configuration

    Intall the openai library for python:

    pip install openai

    Setup a free OpenRouter account a create a new api key. Export your api key:

    export aikey="<YOUR API KEY>"
  4. Clone project and make sure it compiles

    git clone https://github.com/EllbellCode/IsabeLLM.git
    cd IsabeLLM

    Then compile the project:

    sbt compile
  5. Configure Isabelle

    Download and install isabelle2022 in the parent directory

    cd ~
    wget https://isabelle.in.tum.de/dist/Isabelle2022_linux.tar.gz
    tar -xzf Isabelle2022_linux.tar.gz
    alias isabelle=~/Isabelle2022/bin/isabelle

    Add the name of your theory files to the ROOT file

  6. Run IsabeLLM

    sbt run

About

LLM interface for the Isabelle theorem prover

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages