
Lean4 Tools
Add Lean 4 language-server support in Claude Code when you write or check formal proofs in .lean projects.
Overview
lean4-tools is a plugin marketplace for the Build phase that adds Lean 4 language-server integration for theorem proving in Claude Code.
What is this marketplace?
- Registers Lean 4 LSP via lake serve for .lean files
- Maps .lean extension to the lean language id in Claude Code
- Targets theorem proving and Mathlib-style development workflows
- Single focused lean4 plugin (v1.0.0) in the marketplace bundle
- strict:false allows flexible local marketplace installation
- Marketplace lists 1 plugin: lean4 (v1.0.0)
- LSP command: lake serve --
- Extension mapping: .lean → lean
Community signal: 1 GitHub stars.
What problem does it solve?
Claude Code does not understand Lean 4 projects out of the box, so proof work feels disconnected from agent-assisted editing.
Who is it for?
Builders already using Lean 4 who want Claude Code to load Lean LSP for formal verification sessions.
Skip if: Teams with no Lean toolchain or anyone who only needs generic Python/TypeScript LSP setups.
What do I get? / Deliverables
After adding the marketplace, .lean files get LSP-backed support so agents and the editor can work inside your Lean 4 codebase.
- lean4 plugin registered with Lean LSP command and .lean mapping
- Agent-ready editing context for theorem-proving repositories
Plugins in this marketplace
1 plugin — install individually after you add the marketplace.
Recommended Marketplaces
Journey fit
Formal verification work happens while building and iterating on code, not during early idea or launch tasks. The marketplace ships an LSP plugin wired to lake serve, which is agent/editor tooling rather than a standalone app feature.
How it compares
LSP plugin marketplace entry, not a standalone proof automation skill.
Common Questions / FAQ
Who is Lean4 Tools for?
It is for developers and researchers who prove theorems in Lean 4 and use Claude Code as their primary agent IDE.
When should I use Lean4 Tools?
Use it when you start or maintain a Lean 4 repo and want lake-based LSP wired into Claude Code for .lean files.
How do I add Lean4 Tools to my agent?
Register the Beneficial-AI-Foundation lean4-claude-plugin marketplace in Claude Code, then enable the lean4 plugin so lake serve runs as the Lean language server.