Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ Generic interface for hooking up to any Interactive Theorem Prover (ITP) and col
pip install itp-interface
```

2. Run the following command to prepare the REPL for Lean 4. (The default version is 4.7.0-rc2. You can change the version by setting the `LEAN_VERSION` environment variable. If no version is set, then 4.7.0-rc2 is used.)
2. Run the following command to prepare the REPL for Lean 4. The default version is 4.7.0-rc2. You can change the version by setting the `LEAN_VERSION` environment variable. If no version is set, then 4.7.0-rc2 is used. However, the itp-interface supports up to Lean 4.17.0.
>NOTE: The Lean 4 version must match the version of the Lean 4 project you are working with.
```bash
export LEAN_VERSION="4.15.0"
export LEAN_VERSION="4.7.0-rc2"
install-lean-repl
# ^^ Change the LEAN_VERSION to the version of Lean 4 you are working with.
# ^^^ Example: export LEAN_VERSION="4.15.0" to use Lean 4.15.0
# itp-interface supports up to Lean 4.17.0
```

3. Run the following command to build the REPL for Lean 4. Make sure that `lean --version` returns the correct version before running the command below. If not then check if `$HOME/.elan/bin` is in your path. Recommended to run `source $HOME/.elan/env` before running the command below.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires = [
build-backend = "hatchling.build"
[project]
name = "itp_interface"
version = "1.1.7"
version = "1.1.8"
authors = [
{ name="Amitayush Thakur", email="amitayush@utexas.edu" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/itp_interface/main/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def install_lean_repl():
elan_url = "https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh"
os.system(f"curl -sSL {elan_url} | sh")
print("[OK] .elan installed")
lean_repo = "leanprover-community/lean"
lean_repo = "leanprover/lean4"
# Create a temporary script to run
shell_code = f"""
source $HOME/.elan/env
Expand Down