{"id":30118320,"url":"https://github.com/evolvinglmms-lab/lean-runner","last_synced_at":"2025-08-10T11:25:46.851Z","repository":{"id":308465447,"uuid":"1031117659","full_name":"EvolvingLMMs-Lab/lean-runner","owner":"EvolvingLMMs-Lab","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-07T05:40:26.000Z","size":1015,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-07T06:17:48.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://evolvinglmms-lab.github.io/lean-runner/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EvolvingLMMs-Lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-03T03:41:34.000Z","updated_at":"2025-08-07T05:40:12.000Z","dependencies_parsed_at":"2025-08-07T06:17:55.072Z","dependency_job_id":null,"html_url":"https://github.com/EvolvingLMMs-Lab/lean-runner","commit_stats":null,"previous_names":["evolvinglmms-lab/lmms-lean-runner","evolvinglmms-lab/lean-runner"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/EvolvingLMMs-Lab/lean-runner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvolvingLMMs-Lab%2Flean-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvolvingLMMs-Lab%2Flean-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvolvingLMMs-Lab%2Flean-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvolvingLMMs-Lab%2Flean-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvolvingLMMs-Lab","download_url":"https://codeload.github.com/EvolvingLMMs-Lab/lean-runner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvolvingLMMs-Lab%2Flean-runner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269714544,"owners_count":24463387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-10T11:25:46.236Z","updated_at":"2025-08-10T11:25:46.838Z","avatar_url":"https://github.com/EvolvingLMMs-Lab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ca href=\"https://lean-runner.vercel.app/\"\u003e\n    \u003cpicture\u003e\n        \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs/assets/logo/logo-wt-dark.webp\"\u003e\n        \u003cimg alt=\"Lean Runner Logo\" src=\"docs/assets/logo/logo-wt.webp\"\u003e\n    \u003c/picture\u003e\n\u003c/a\u003e\n\n[![Documentation](https://img.shields.io/badge/Documentation-purple?style=flat-square\u0026logo=materialformkdocs)](https://lean-runner.vercel.app/)\n[![Lean Server](https://img.shields.io/pypi/v/lean-server?label=Lean%20Server\u0026style=flat-square\u0026color=orange\u0026logo=pypi)](https://pypi.org/project/lean-server/)\n[![Lean Runner](https://img.shields.io/pypi/v/lean-runner?label=Lean%20Runner\u0026style=flat-square\u0026color=orange\u0026logo=pypi)](https://pypi.org/project/lean-runner/)\n[![Docker](https://img.shields.io/badge/Hub-blue?label=Docker\u0026style=flat-square\u0026logo=docker\u0026logoColor=white)](https://hub.docker.com/r/pufanyi/lean-server)\n\n[![Python3.12](https://img.shields.io/badge/Python-3.12-blue?style=flat-square\u0026logo=python\u0026logoColor=white)](https://www.python.org/downloads/release/python-3120/)\n[![Lean 4](https://img.shields.io/badge/Lean-4-purple?style=flat-square\u0026logo=lean\u0026logoColor=white)](https://lean-lang.org/doc/reference/4.22.0-rc4/releases/v4.22.0/)\n[![Mathlib](https://img.shields.io/badge/Mathlib-v4.22.0--rc4-purple?style=flat-square)](https://github.com/leanprover-community/mathlib4/releases/tag/v4.22.0-rc4)\n[![FastAPI](https://img.shields.io/badge/FastAPI-green?style=flat-square\u0026logo=fastapi\u0026logoColor=white)](https://fastapi.tiangolo.com)\n[![License](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)](LICENSE)\n\n---\n\n\u003c/div\u003e\n\n## Why Lean-Runner?\n\n- **🚀 Plug \u0026 Play**: Get started in minutes with Docker's one-click server setup. Our intuitive client abstracts away complex implementation details, letting you focus on what matters—your Lean proofs.\n\n- **⚡ High Performance**: Leverages REPL-based atomized execution with fully asynchronous, multi-threaded architecture to maximize CPU utilization and throughput.\n\n- **🛡️ Robust \u0026 Reliable**: Persistent SQLite logging ensures your work is never lost. Built-in crash recovery and automatic retry mechanisms eliminate the frustration of interrupted workflows.\n\n- **🔄 Flexible Access Patterns**: Choose between synchronous and asynchronous clients depending on your use case—from interactive development to large-scale batch processing.\n\n- **🧠 Smart Caching**: Intelligent content-based hashing ensures identical Lean code is processed only once, dramatically reducing computation time for repeated operations.\n\n- **📊 Data Export \u0026 Visualization (Soon)**: Easily export data in various formats (Hugging Face, JSON, XML, Arrow, Parquet) and visualize queries with a simple CLI.\n\n## Getting Started\n\nCheck the [quick start](https://lean-runner.vercel.app/quick-start/) guide for detailed instructions on how to get started with Lean-Runner.\n\n## Architecture\n\nLean-Runner leverages a powerful Server-Client architecture that smartly places all the complex configuration on the server side, while keeping the client implementation elegantly minimal. We've packaged the entire server using [Docker](https://www.docker.com/), making deployment incredibly straightforward and hassle-free.\n\n![](docs/assets/imgs/overview.webp)\n\n## Project Structure\n\n```text\nlean-runner/\n├── packages/\n│   ├── server/             # FastAPI server implementation\n│   │   └── lean_server/\n│   │       ├── app/        # API endpoints and server setup\n│   │       ├── proof/      # Lean proof execution logic\n│   │       ├── manager/    # Proof job management\n│   │       ├── config/     # Configuration files and loading\n│   │       ├── database/   # SQLite persistence layer\n│   │       └── utils/      # Utility functions\n│   └── client/             # Python client libraries\n│       └── lean_runner/\n│           ├── client/     # Sync and async client implementations\n│           └── proof/      # Proof data protocol\n├── playground/             # Lean workspace with dependencies\n└── demo/                   # Example scripts and test files\n```\n\n\n## Contributing\n\nContributions are welcome! Please feel free to submit issues and pull requests.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Citation\n\n```bibtex\n@misc{fanyi2025leanrunner,\n  title={Lean-Runner: Deploying High-Performance Lean 4 Server in One Click},\n  author={Fanyi Pu, Oscar Qian, Jinghao Guo, Bo Li},\n  year={2025},\n  publisher={GitHub},\n  howpublished={\\url{https://github.com/EvolvingLMMs-Lab/lean-runner}},\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolvinglmms-lab%2Flean-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevolvinglmms-lab%2Flean-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolvinglmms-lab%2Flean-runner/lists"}