The project uses MCP servers configured in .mcp.json:
- lean-lsp-mcp: Lean LSP integration for incremental checking, goal display, diagnostics, search, etc.
Requires Python and uv. The server is run via uvx (no separate install step). The project also needs the Lean REPL package — make sure REPL is listed as a dependency in analysis/lakefile.lean with moreLeanArgs := #["-DautoImplicit=false"] and moreServerOptions := #[⟨autoImplicit, false⟩]`.
The .mcp.json at the repo root configures the server with --repl mode:
{
"mcpServers": {
"lean-lsp": {
"type": "stdio",
"command": "uvx",
"args": ["lean-lsp-mcp", "--repl"],
"env": {}
}
}
}Install the lean4-skills plugin for guided proving, review, golf, and other Lean workflows:
claude plugin marketplace add cameronfreer/lean4-skills
claude plugin install lean4CLAUDE.md— main project instructions (proof style, workflow, conventions)TACTICS.md— tactic pitfall log
# From repo root
./build.sh
# Or from analysis/ directory
lake exe cache get && lake build
# Build a single file
cd analysis && lake build Analysis.Section_6_1