lean-interact 0.6.2__tar.gz → 0.6.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lean_interact-0.6.2 → lean_interact-0.6.3}/.github/workflows/update-changelog.yml +5 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/PKG-INFO +2 -2
- {lean_interact-0.6.2 → lean_interact-0.6.3}/README.md +1 -1
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/changelog.md +23 -15
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/index.md +1 -1
- {lean_interact-0.6.2 → lean_interact-0.6.3}/pyproject.toml +2 -2
- {lean_interact-0.6.2 → lean_interact-0.6.3}/src/lean_interact/utils.py +1 -1
- {lean_interact-0.6.2 → lean_interact-0.6.3}/uv.lock +1 -1
- {lean_interact-0.6.2 → lean_interact-0.6.3}/.devcontainer/devcontainer.json +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/.github/workflows/ci.yml +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/.github/workflows/docs.yml +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/.github/workflows/publish-to-pypi.yml +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/.gitignore +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/LICENSE +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/.nojekyll +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/api/config.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/api/interface.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/api/server.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/api/sessioncache.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/api/utils.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/contributing.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/examples.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/installation.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/troubleshooting.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/update_changelog.py +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/user-guide/basic-usage.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/user-guide/custom-lean-configuration.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/user-guide/getting-started.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/docs/user-guide/tactic-mode.md +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/examples/beq_plus.py +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/examples/proof_generation_and_autoformalization.py +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/examples/type_check.py +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/mkdocs.yml +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/src/lean_interact/__init__.py +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/src/lean_interact/config.py +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/src/lean_interact/interface.py +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/src/lean_interact/server.py +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/src/lean_interact/sessioncache.py +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/tests/test_concurrency.py +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/tests/test_server.py +0 -0
- {lean_interact-0.6.2 → lean_interact-0.6.3}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lean-interact
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.3
|
|
4
4
|
Summary: LeanInteract is a Python package that allows you to interact with the Lean theorem prover.
|
|
5
5
|
Author-email: Auguste Poiroux <auguste.poiroux@epfl.ch>
|
|
6
6
|
License: MIT License
|
|
@@ -51,7 +51,7 @@ Description-Content-Type: text/markdown
|
|
|
51
51
|
- **🔗 Interactivity**: Execute Lean code and files directly from Python.
|
|
52
52
|
- **🚀 Ease of Use**: LeanInteract abstracts the complexities of Lean setup and interaction.
|
|
53
53
|
- **💻 Cross-platform**: Works on Windows, macOS, and Linux operating systems.
|
|
54
|
-
- **🔧 Compatibility**: Supports all Lean versions between `v4.7.0-rc1` and `v4.
|
|
54
|
+
- **🔧 Compatibility**: Supports all Lean versions between `v4.7.0-rc1` and `v4.22.0-rc2`.
|
|
55
55
|
- We backport the latest features of Lean REPL to older versions of Lean (see [fork](https://github.com/augustepoiroux/repl)).
|
|
56
56
|
- **📦 Temporary Projects**: Easily instantiate temporary Lean environments.
|
|
57
57
|
- Useful for experimenting with benchmarks depending on [Mathlib](https://github.com/leanprover-community/mathlib4) like [ProofNet#](https://huggingface.co/datasets/PAug/ProofNetSharp) and [MiniF2F](https://github.com/yangky11/miniF2F-lean4).
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- **🔗 Interactivity**: Execute Lean code and files directly from Python.
|
|
14
14
|
- **🚀 Ease of Use**: LeanInteract abstracts the complexities of Lean setup and interaction.
|
|
15
15
|
- **💻 Cross-platform**: Works on Windows, macOS, and Linux operating systems.
|
|
16
|
-
- **🔧 Compatibility**: Supports all Lean versions between `v4.7.0-rc1` and `v4.
|
|
16
|
+
- **🔧 Compatibility**: Supports all Lean versions between `v4.7.0-rc1` and `v4.22.0-rc2`.
|
|
17
17
|
- We backport the latest features of Lean REPL to older versions of Lean (see [fork](https://github.com/augustepoiroux/repl)).
|
|
18
18
|
- **📦 Temporary Projects**: Easily instantiate temporary Lean environments.
|
|
19
19
|
- Useful for experimenting with benchmarks depending on [Mathlib](https://github.com/leanprover-community/mathlib4) like [ProofNet#](https://huggingface.co/datasets/PAug/ProofNetSharp) and [MiniF2F](https://github.com/yangky11/miniF2F-lean4).
|
|
@@ -2,13 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
This page documents the notable changes to LeanInteract.
|
|
4
4
|
|
|
5
|
+
## v0.6.2 (June 30, 2025)
|
|
6
|
+
|
|
7
|
+
## What's Changed
|
|
8
|
+
|
|
9
|
+
- Add support for Lean v4.21.0
|
|
10
|
+
|
|
11
|
+
**Full Changelog**: <https://github.com/augustepoiroux/LeanInteract/compare/v0.6.1...v0.6.2>
|
|
12
|
+
|
|
5
13
|
## v0.6.1 (June 24, 2025)
|
|
6
14
|
|
|
7
15
|
## What's Changed
|
|
8
16
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
- Fix Lean version inference for `LocalProject` and `GitProject` by @augustepoiroux in <https://github.com/augustepoiroux/LeanInteract/pull/26>
|
|
18
|
+
- Fix `ResourceWarning` issues when killing the REPL
|
|
19
|
+
- Improve memory monitoring in `AutoLeanServer`
|
|
12
20
|
|
|
13
21
|
**Full Changelog**: <https://github.com/augustepoiroux/LeanInteract/compare/v0.6.0...v0.6.1>
|
|
14
22
|
|
|
@@ -16,10 +24,10 @@ This page documents the notable changes to LeanInteract.
|
|
|
16
24
|
|
|
17
25
|
## What's Changed
|
|
18
26
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
- Support for local / custom REPL + Lean versions up to v4.21.0-rc3 by @augustepoiroux in <https://github.com/augustepoiroux/LeanInteract/pull/21>
|
|
28
|
+
- Separate the session cache logic from `AutoLeanServer` by @sorgfresser in <https://github.com/augustepoiroux/LeanInteract/pull/18>
|
|
29
|
+
- Add documentation by @augustepoiroux in <https://github.com/augustepoiroux/LeanInteract/pull/19>
|
|
30
|
+
- Add support for modern Python Path by @augustepoiroux in <https://github.com/augustepoiroux/LeanInteract/pull/20>
|
|
23
31
|
|
|
24
32
|
**Full Changelog**: <https://github.com/augustepoiroux/LeanInteract/compare/v0.5.3...v0.6.0>
|
|
25
33
|
|
|
@@ -27,8 +35,8 @@ This page documents the notable changes to LeanInteract.
|
|
|
27
35
|
|
|
28
36
|
## What's Changed
|
|
29
37
|
|
|
30
|
-
|
|
31
|
-
|
|
38
|
+
- Add optional build boolean for LocalProject by @sorgfresser in <https://github.com/augustepoiroux/LeanInteract/pull/16>
|
|
39
|
+
- Slightly improve sorry detection in `lean_code_is_valid` by checking `message` instead of just `sorries` in REPL output.
|
|
32
40
|
|
|
33
41
|
**Full Changelog**: <https://github.com/augustepoiroux/LeanInteract/compare/v0.5.2...v0.5.3>
|
|
34
42
|
|
|
@@ -42,9 +50,9 @@ Introduce compatibility with Lean v4.19.0
|
|
|
42
50
|
|
|
43
51
|
## What's Changed
|
|
44
52
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
53
|
+
- Add fix for non-respected timeout by @augustepoiroux in <https://github.com/augustepoiroux/LeanInteract/pull/13>
|
|
54
|
+
- Query Lake cache for all Project types by @habemus-papadum in <https://github.com/augustepoiroux/LeanInteract/pull/10>
|
|
55
|
+
- Bump REPL version to v1.0.7 fixing `"auxiliary declaration cannot be created when declaration name is not available"` in tactic mode for Lean <= v4.18.0 <https://github.com/leanprover-community/repl/issues/44#issuecomment-2814069261>
|
|
48
56
|
|
|
49
57
|
**Full Changelog**: <https://github.com/augustepoiroux/LeanInteract/compare/v0.5.0...v0.5.1>
|
|
50
58
|
|
|
@@ -52,9 +60,9 @@ Introduce compatibility with Lean v4.19.0
|
|
|
52
60
|
|
|
53
61
|
## What's Changed
|
|
54
62
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
63
|
+
- Make LeanInteract cross-platform by @augustepoiroux in <https://github.com/augustepoiroux/LeanInteract/pull/4>
|
|
64
|
+
- Fix infotree parsing issue by @sorgfresser in <https://github.com/augustepoiroux/LeanInteract/pull/1>
|
|
65
|
+
- Implement `async_run` + make calls to the REPL thread-safe by @augustepoiroux in <https://github.com/augustepoiroux/LeanInteract/pull/2>
|
|
58
66
|
|
|
59
67
|
## v0.4.1 (April 18, 2025)
|
|
60
68
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
- **🔗 Interactivity**: Execute Lean code and files directly from Python
|
|
13
13
|
- **🚀 Ease of Use**: LeanInteract abstracts the complexities of Lean setup and interaction
|
|
14
14
|
- **💻 Cross-platform**: Works on Windows, macOS, and Linux operating systems
|
|
15
|
-
- **🔧 Compatibility**: Supports all Lean versions between `v4.7.0-rc1` and `v4.
|
|
15
|
+
- **🔧 Compatibility**: Supports all Lean versions between `v4.7.0-rc1` and `v4.22.0-rc2`
|
|
16
16
|
- We backport the latest features of Lean REPL to older versions of Lean (see [fork](https://github.com/augustepoiroux/repl)).
|
|
17
17
|
- **📦 Temporary Projects**: Easily instantiate temporary Lean environments
|
|
18
18
|
- Useful for experimenting with benchmarks depending on [Mathlib](https://github.com/leanprover-community/mathlib4) like [ProofNet#](https://huggingface.co/datasets/PAug/ProofNetSharp) and [MiniF2F](https://github.com/yangky11/miniF2F-lean4)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "lean-interact"
|
|
3
|
-
version = "0.6.
|
|
3
|
+
version = "0.6.3"
|
|
4
4
|
description = "LeanInteract is a Python package that allows you to interact with the Lean theorem prover."
|
|
5
5
|
keywords = ["Lean", "theorem proving", "autoformalization", "REPL"]
|
|
6
6
|
license = { file = "LICENSE" }
|
|
@@ -14,7 +14,7 @@ dependencies = [
|
|
|
14
14
|
"psutil>=6.1.0",
|
|
15
15
|
"pydantic>=2.11.1",
|
|
16
16
|
"requests>=2.32.3",
|
|
17
|
-
"rich>=13.9.4"
|
|
17
|
+
"rich>=13.9.4"
|
|
18
18
|
]
|
|
19
19
|
|
|
20
20
|
[build-system]
|
|
@@ -22,7 +22,7 @@ logger.addHandler(handler)
|
|
|
22
22
|
ROOT_DIR = Path(__file__).resolve().parent
|
|
23
23
|
DEFAULT_CACHE_DIR = ROOT_DIR / "cache"
|
|
24
24
|
DEFAULT_REPL_GIT_URL = "https://github.com/augustepoiroux/repl"
|
|
25
|
-
DEFAULT_REPL_VERSION = "v1.0.
|
|
25
|
+
DEFAULT_REPL_VERSION = "v1.0.11"
|
|
26
26
|
|
|
27
27
|
os.makedirs(DEFAULT_CACHE_DIR, exist_ok=True)
|
|
28
28
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lean_interact-0.6.2 → lean_interact-0.6.3}/examples/proof_generation_and_autoformalization.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|