A FastAPI-based server to interact with the Lean Theorem Prover.
Project description
Lean Server Package
This package contains the core lean-server application, a FastAPI-based server that provides a REST API for interacting with the Lean prover.
📖 Overview
The server is designed to be run inside the Docker environment provided at the root of this monorepo. It exposes endpoints to perform proof checking and other Lean-related tasks.
The main API endpoint is:
POST /prove/check: Accepts aproofand an optionalconfigto run a proof.
⚙️ Configuration
The server's behavior can be configured via config.yaml. Key settings include:
- Server host and port.
- Lean process configuration.
- Proof checking timeouts.
🚀 Running the Server
This package is intended to be run within the development container.
-
Navigate to the Dev Container: Follow the instructions in the root README to set up the development environment.
-
Install Dependencies: In the container's terminal, install the package in editable mode:
uv pip install -e .
(Note: The root setup installs this automatically).
-
Start the Server: The
pyproject.tomlfile defines a script entry point. You can start the server with the following command:lean-server
By default, it should be available at
http://localhost:8000.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lmms_lean_server-0.0.1.dev3.tar.gz.
File metadata
- Download URL: lmms_lean_server-0.0.1.dev3.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc5cbe0cda95873a0001c0fc4933425f0fb962c645f51e0d61fd366fb5c7c11d
|
|
| MD5 |
dc895cfde2df74ad744d161275bba6a2
|
|
| BLAKE2b-256 |
6ee821663580104ac291d7b7f998d73d133106548303bc5535c091ac0b4d76ce
|
File details
Details for the file lmms_lean_server-0.0.1.dev3-py3-none-any.whl.
File metadata
- Download URL: lmms_lean_server-0.0.1.dev3-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cac59afd6456da27afed0abdcad95de0130917aeb385e831ffe84db0314e551
|
|
| MD5 |
ba2dc2da39d6396148565bc858bdf679
|
|
| BLAKE2b-256 |
4faeaa21db41a42a57a63d08f865b109e1165bd40dabef7a715deea889088afd
|