Repo for proving Lean theorems via a web interface.
live_prover is a web-based tool for interactively proving theorems using Lean. This repository contains the source code for the web interface and backend integration with Lean.
This project implements the Lean web interface discussed in the paper: Enhancing Neural Theorem Proving through Data Augmentation and Dynamic Sampling Method.
- Interactive Lean theorem proving in the browser
- Syntax highlighting and error reporting
- Real-time feedback from Lean
- Proof search using fixed and dynamic tactic sampling methods
- REST API endpoints for proof search and tactic generation
- Lean installed locally
Clone the repository:
git clone https://github.com/rahul3613/leanprover_web.git
cd leanprover_webInstall Python dependencies:
pip install -r requirements.txtStart the Flask server:
python server.pyThe web interface will be available at http://localhost:5001/project/ds-prover/.
- Write Lean code in the editor on the web interface.
- Submit to see proof verification and feedback.
-
POST /project/ds-prover/prove/
Parameters:statement(string),model,sampling
Returns: Proof result and details. -
POST /project/ds-prover/generate/
Parameters:goal(string),num_samples,model
Returns: Generated tactics.
For more details, see the related paper: https://arxiv.org/abs/2312.14188